Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion helm/templates/config/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ data:
DJANGO_ALLOWED_HOST: {{ .Values.env.DJANGO_ALLOWED_HOST | quote }}
APP_HTTP_PROTOCOL: {{ .Values.env.APP_HTTP_PROTOCOL | quote }}

# Email
DEFAULT_FROM_EMAIL: {{ required "env.DEFAULT_FROM_EMAIL" .Values.env.DEFAULT_FROM_EMAIL | quote }}
EMAIL_USE_TLS: {{ required "env.EMAIL_USE_TLS" .Values.env.EMAIL_USE_TLS | quote }}

{{- if .Values.redis.enabled }}
# Celery
CELERY_REDIS_URL: "redis://{{ printf "%s-master" (include "common.names.fullname" .Subcharts.redis) }}:6379/0"
Expand All @@ -34,7 +38,7 @@ data:
# Sentry
SENTRY_TRACES_SAMPLE_RATE: {{ .Values.env.SENTRY_TRACES_SAMPLE_RATE | quote }}
SENTRY_PROFILE_SAMPLE_RATE: {{ .Values.env.SENTRY_PROFILE_SAMPLE_RATE | quote }}

# Vector Database
{{- if .Values.redis.enabled }}
QDRANT_DB_HOST: {{ include "qdrant.fullname" .Subcharts.qdrant | quote }}
Expand Down
7 changes: 7 additions & 0 deletions helm/templates/config/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ stringData:

# Sentry
SENTRY_DSN: {{ .Values.secrets.SENTRY_DSN }}

# Email
EMAIL_HOST: {{ required "secrets.EMAIL_HOST" .Values.secrets.EMAIL_HOST | quote }}
EMAIL_PORT: {{ required "secrets.EMAIL_PORT" .Values.secrets.EMAIL_PORT | quote }}
EMAIL_HOST_USER: {{ required "secrets.EMAIL_HOST_USER" .Values.secrets.EMAIL_HOST_USER | quote }}
EMAIL_HOST_PASSWORD: {{ required "secrets.EMAIL_HOST_PASSWORD" .Values.secrets.EMAIL_HOST_PASSWORD | quote }}

# OpenAI
OPENAI_API_KEY: {{ .Values.secrets.OPENAI_API_KEY }}

Expand Down
10 changes: 9 additions & 1 deletion helm/values-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ env:
AWS_S3_REGION: us-east-x
S3_STATIC_BUCKET_NAME: bucket-x-static
S3_MEDIA_BUCKET_NAME: bucket-x-media

# email
DEFAULT_FROM_EMAIL: test@test.com
EMAIL_USE_TLS: true

SENTRY_DEBUG: false
secrets:
DJANGO_SECRET_KEY: test
Expand All @@ -43,3 +46,8 @@ secrets:
# S3
AWS_S3_ACCESS_KEY_ID: access-key
AWS_S3_SECRET_ACCESS_KEY: access-secret
# email
EMAIL_HOST: test.com
EMAIL_PORT: 443
EMAIL_HOST_USER: test
EMAIL_HOST_PASSWORD: test
9 changes: 9 additions & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,10 @@ env:
S3_STATIC_BUCKET_NAME:
S3_MEDIA_BUCKET_NAME:

# email
EMAIL_USE_TLS: true
DEFAULT_FROM_EMAIL:

secrets:
DJANGO_SECRET_KEY:
# Database (required if postgresql.enabled if false)
Expand All @@ -193,3 +197,8 @@ secrets:
# S3
AWS_S3_ACCESS_KEY_ID:
AWS_S3_SECRET_ACCESS_KEY:
# email
EMAIL_HOST:
EMAIL_PORT:
EMAIL_HOST_USER:
EMAIL_HOST_PASSWORD:
Loading