Skip to content

Commit

Permalink
Fix configmap
Browse files Browse the repository at this point in the history
  • Loading branch information
elnappo committed Mar 30, 2019
1 parent 1feb1c3 commit cb9dc5c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions chart/templates/configmap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ kind: ConfigMap
metadata:
name: {{ include "project-novis.fullname" . }}
data:
DJANGO_DEBUG: false
DJANGO_DEBUG: "false"
DJANGO_PRODUCTION: {{ .Values.django.production | quote }}
DJANGO_SENTRY_ENVIRONMENT: {{ .Values.application.track | quote }}
{{- if .Values.ingress.enabled -}}
{{- if .Values.ingress.enabled }}
DJANGO_ALLOWED_HOSTS: {{ .Values.ingress.host | quote }}
{{ else }}
{{- else }}
DJANGO_ALLOWED_HOSTS: "*"
{{ end }}
{{- end }}
12 changes: 6 additions & 6 deletions chart/templates/secret.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ metadata:
type: Opaque
data:
DATABASE_URL: {{ .Values.django.databaseURL | b64enc | quote }}
{{ if .Values.django.secretKey }}
{{- if .Values.django.secretKey }}
DJANGO_SECRET_KEY: {{ .Values.django.secretKey | b64enc | quote }}
{{ else }}
{{- else }}
DJANGO_SECRET_KEY: {{ randAlphaNum 128 | b64enc | quote }}
{{ end }}
{{- end }}
DJANGO_SUPERUSER_EMAIL: {{ .Values.django.superuser.email | b64enc | quote }}
{{ if .Values.django.superuser.password }}
{{- if .Values.django.superuser.password }}
DJANGO_SUPERUSER_PASSWORD: {{ .Values.django.superuser.password | b64enc | quote }}
{{ else }}
{{- else }}
DJANGO_SUPERUSER_PASSWORD: {{ randAlphaNum 16 | b64enc | quote }}
{{ end }}
{{- end }}
DJANGO_SENTRY_DSN: {{ .Values.django.sentry.dsn | b64enc | quote }}
DJANGO_EMAIL_HOST_PASSWORD: {{ .Values.django.email.password | b64enc | quote }}

0 comments on commit cb9dc5c

Please sign in to comment.