A bit better control of env
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
{{- define "lib.config.env" -}}
|
||||
{{- range $k, $v := .Values.env }}
|
||||
{{- $customName := printf "%s-%s" (include "chart.fullname" $) $k }}
|
||||
{{- if $v.enabled }}
|
||||
---
|
||||
apiVersion: v1
|
||||
{{- if not $v.sensitive }}
|
||||
@ -13,8 +14,10 @@ kind: Secret
|
||||
stringData:
|
||||
{{- end }}
|
||||
{{- range $key, $value := $v.data }}
|
||||
{{- if $value }}
|
||||
{{ $key }}: {{ $value | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
|
||||
{{- end }}
|
||||
{{- end -}}
|
Reference in New Issue
Block a user