diff --git a/helm/cas-provision/templates/djangoSuperUser.yaml b/helm/cas-provision/templates/djangoSuperUser.yaml new file mode 100644 index 0000000..59d0b70 --- /dev/null +++ b/helm/cas-provision/templates/djangoSuperUser.yaml @@ -0,0 +1,13 @@ +{{- if hasPrefix .Values.namespacePrefixes.obps .Release.Namespace}} +kind: Secret +apiVersion: v1 +metadata: + name: django-superuser + labels: {{ include "cas-provision.labels" . | nindent 4 }} +type: Opaque +stringData: +{{- if hasSuffix "-dev" .Release.Namespace }} + username: {{ .Values.djangoSuperUser.obps.dev.username }} + password: {{ .Values.djangoSuperUser.obps.dev.password }} +{{- end }} +{{- end }}