Closed bokristoffersson closed 2 years ago
I have a proposal to make this more clean:
curity.config.environmentVariableSecrets
and curity.config.environmentVariableSecret
. .Values.curity.config.environmentVariableSecret
.Values.curity.config. configurationSecret
so that too can be an arrayThis also works, instead of trying to create a new list in _helpers.tpl
{{- range $secret := concat .Values.curity.config.environmentVariableSecrets (list .Values.curity.config.environmentVariableSecret) }}
{{- if $secret }}
- secretRef:
name: {{ $secret | quote}}
{{- end }}
{{- end }}
Using your suggested concat function.
We are storing one set of secrets in git (as sealed secrets) and another set is generated when starting the cluster. This PR enable us to use both secrets as source for environment variables.