diff --git a/charts/studio/templates/configmap-studio-leo.yaml b/charts/studio/templates/configmap-studio-leo.yaml new file mode 100644 index 00000000..b5a1eecb --- /dev/null +++ b/charts/studio/templates/configmap-studio-leo.yaml @@ -0,0 +1,8 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: {{.Release.Name}}}-studio-leo +data: +{{- with .Values.studioLeo.envVars}} +{{- toYaml . | nindent 2 }} +{{- end }} diff --git a/charts/studio/templates/deployment-studio-leo.yaml b/charts/studio/templates/deployment-studio-leo.yaml index d252f8ae..49bc36ab 100644 --- a/charts/studio/templates/deployment-studio-leo.yaml +++ b/charts/studio/templates/deployment-studio-leo.yaml @@ -14,10 +14,11 @@ spec: template: metadata: annotations: + checksum/configmap-studio-leo: {{ include (print $.Template.BasePath "/configmap-studio-leo.yaml") . | sha256sum }} {{- include "studio.checksum" . | indent 8 }} - {{- with .Values.studioLeo.podAnnotations }} + {{- with .Values.studioLeo.podAnnotations }} {{- toYaml . | nindent 8 }} - {{- end }} + {{- end }} labels: {{- include "studio-leo.selectorLabels" . | nindent 8 }} spec: @@ -61,6 +62,8 @@ spec: envFrom: - secretRef: name: studio + - configMapRef: + name: {{ .Release.Name }}-studio-leo {{- if .Values.global.envFromSecret }} - secretRef: name: {{ .Values.global.envFromSecret }}