Skip to content
2 changes: 1 addition & 1 deletion charts/cactus-backend/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: cactus-backend
description: A backend that exposes an API for the Cactus app to use.
type: application
version: 0.5.9
version: 0.5.10
appVersion: "0.2"
maintainers:
- name: dataviruset
Expand Down
2 changes: 1 addition & 1 deletion charts/cactus-parser/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: cactus-parser
description: Used to deploy parsers that load product data from a source when requested from cactus-backend
type: application
version: 0.0.4
version: 0.0.5
appVersion: "0.0"
maintainers:
- name: dataviruset
Expand Down
4 changes: 4 additions & 0 deletions charts/cactus-parser/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ helm uninstall cactus-parser

## Configuration

The default parser is PIDB which requires PostgreSQL but other parsers can also be used as instructed by Auki Labs.

Refer to the [values.yaml](./values.yaml) file for a comprehensive list of configurable parameters and their default values.
If you're using a parser other than the default one, some environment variable may be irrelevant and can be deleted,
such as those for PostgreSQL.

You can specify parameters with `--set key=value` or by providing a custom YAML file:

Expand Down
5 changes: 4 additions & 1 deletion charts/cactus-parser/scripts/pre-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ yq -i '.imagePullSecrets[0].name = "matterless-common-ecr-credentials"' "$(dirna
yq -i '.secrets."cactus-parser".as = "environment"' "$(dirname "$0")/../values.yaml"
yq -i '.secrets."cactus-parser".items[0].key = "POSTGRES_PASSWORD"' "$(dirname "$0")/../values.yaml"
yq -i '.secrets."cactus-parser".items[0].envVarName = "POSTGRES_PASSWORD"' "$(dirname "$0")/../values.yaml"
yq -i '.secrets."cactus-parser".as = "environment"' "$(dirname "$0")/../values.yaml"
yq -i '.secrets."cactus-parser".items[1].key = "AUTH_JWT_PROFILE"' "$(dirname "$0")/../values.yaml"
yq -i '.secrets."cactus-parser".items[1].envVarName = "AUTH_JWT_PROFILE"' "$(dirname "$0")/../values.yaml"
yq -i '.secrets."cactus-parser".items[2].key = "APP_SECRET"' "$(dirname "$0")/../values.yaml"
yq -i '.secrets."cactus-parser".items[2].envVarName = "APP_SECRET"' "$(dirname "$0")/../values.yaml"
yq -i '.secretData.AUTH_JWT_PROFILE = strenv(AUTH_JWT_PROFILE)' "$(dirname "$0")/../values.yaml"
yq -i '.secretData.APP_SECRET = strenv(APP_SECRET)' "$(dirname "$0")/../values.yaml"
yq -i '.envVars.APP_KEY = strenv(APP_KEY)' "$(dirname "$0")/../values.yaml"
Expand Down
6 changes: 3 additions & 3 deletions charts/cactus-parser/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
{{- include "cactus-parser.labels" . | nindent 4 }}
type: Opaque
data:
POSTGRES_PASSWORD: {{ .Values.secretData.POSTGRES_PASSWORD | b64enc | quote }}
REDIS_PASSWORD: {{ .Values.secretData.REDIS_PASSWORD | b64enc | quote }}
{{- range $key, $value := .Values.secretData }}
{{ $key }}: {{ $value | b64enc | quote }}
{{- end }}
{{- end }}

14 changes: 8 additions & 6 deletions charts/cactus-parser/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ monitoring:
useExistingSecret: false
existingSecretName: ""
secretData:
POSTGRES_PASSWORD: cactus-parser # This is the password for the postgres database. This should be a random string.
REDIS_PASSWORD: cactus-parser # This is the password for the redis database. This should be a random string.
POSTGRES_PASSWORD: cactus-parser # Can be commented out if you're not using the default PIDB parser. Otherwise make sure this matches the postgres.auth.password value.
REDIS_PASSWORD: cactus-parser # Can be commented out if you're not using the default PIDB parser. Otherwise make sure this matches the redis.auth.password value.
secrets:
# cactus-parser:
# as: environment
Expand Down Expand Up @@ -177,13 +177,14 @@ persistentVolume:

# https://github.com/bitnami/charts/tree/postgresql/16.7.27/bitnami/postgresql#parameters
postgresql:
# If true, the PostgreSQL dependency is enabled
# If true, the PostgreSQL dependency is enabled.
# You can disable it if you want to use an external database or if you are not using the default PIDB parser.
enabled: true
image:
repository: bitnamilegacy/postgresql
auth:
username: cactus-parser
password: cactus-parser
password: cactus-parser # Make sure this matches the POSTGRES_PASSWORD in the secretData section. Also, don't use the default password in production!
database: cactus-parser
primary:
# resources:
Expand All @@ -201,7 +202,8 @@ postgresql:

# https://github.com/bitnami/charts/tree/redis/22.0.7/bitnami/redis#parameters
redis:
# If true, the Redis dependency is enabled
# If true, the Redis dependency is enabled.
# You can disable it if you want to use an external Redis instance or if you are not using the default PIDB parser.
enabled: false
image:
repository: bitnamilegacy/redis
Expand Down Expand Up @@ -244,7 +246,7 @@ redis:
- FLUSHDB
auth:
enabled: true
password: cactus-parser
password: cactus-parser # Make sure this matches the REDIS_PASSWORD in the secretData section. Also, don't use the default password in production!
fullnameOverride: redis

postgresqlha:
Expand Down