Add support for extraSecretEnvironmentVars
and plain env:
values #108
2 changed files with 17 additions and 0 deletions
|
@ -60,3 +60,18 @@ Create the name of the service account to use
|
||||||
{{- default "default" .Values.serviceAccount.name }}
|
{{- default "default" .Values.serviceAccount.name }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Inject extra environment populated by secrets, if populated
|
||||||
|
*/}}
|
||||||
|
{{- define "ntfy.extraSecretEnvironmentVars" -}}
|
||||||
|
{{- if .extraSecretEnvironmentVars -}}
|
||||||
|
{{- range .extraSecretEnvironmentVars }}
|
||||||
|
- name: {{ .envName }}
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: {{ .secretName }}
|
||||||
|
key: {{ .secretKey }}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
|
@ -38,6 +38,8 @@ spec:
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default (printf "v%s" .Chart.AppVersion) }}"
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default (printf "v%s" .Chart.AppVersion) }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
args: [ "serve" ]
|
args: [ "serve" ]
|
||||||
|
env:
|
||||||
|
{{- include "ntfy.extraSecretEnvironmentVars" . | nindent 12 }}
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: {{ include "ntfy.fullname" . }}-env
|
name: {{ include "ntfy.fullname" . }}-env
|
||||||
|
|
Loading…
Add table
Reference in a new issue