Skip to content

Commit

Permalink
feat(leo): Add ConfigMap to Leo
Browse files Browse the repository at this point in the history
  • Loading branch information
mjasion committed Aug 10, 2023
1 parent e388207 commit be785b6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
8 changes: 8 additions & 0 deletions charts/studio/templates/configmap-studio-leo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{.Release.Name}}}-studio-leo
data:
{{- with .Values.studioLeo.envVars}}
{{- toYaml . | nindent 2 }}
{{- end }}
7 changes: 5 additions & 2 deletions charts/studio/templates/deployment-studio-leo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -61,6 +62,8 @@ spec:
envFrom:
- secretRef:
name: studio
- configMapRef:
name: {{ .Release.Name }}-studio-leo
{{- if .Values.global.envFromSecret }}
- secretRef:
name: {{ .Values.global.envFromSecret }}
Expand Down

0 comments on commit be785b6

Please sign in to comment.