mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 00:47:04 +02:00
Co-authored-by: lab-assistant[bot] <180935599+lab-assistant[bot]@users.noreply.github.com>
17 lines
755 B
Smarty
17 lines
755 B
Smarty
{{/*
|
|
Renders the Secret objects required by the chart.
|
|
*/}}
|
|
{{- define "bjw-s.common.render.secrets" -}}
|
|
{{- $rootContext := $ -}}
|
|
|
|
{{- /* Generate named Secrets as required */ -}}
|
|
{{- $enabledSecrets := (include "bjw-s.common.lib.secret.enabledSecrets" (dict "rootContext" $rootContext) | fromYaml ) -}}
|
|
|
|
{{- range $identifier := keys $enabledSecrets -}}
|
|
{{- /* Generate object from the raw secret values */ -}}
|
|
{{- $secretObject := (include "bjw-s.common.lib.secret.getByIdentifier" (dict "rootContext" $rootContext "id" $identifier) | fromYaml) -}}
|
|
|
|
{{- /* Include the Secret class */ -}}
|
|
{{- include "bjw-s.common.class.secret" (dict "rootContext" $rootContext "object" $secretObject) | nindent 0 -}}
|
|
{{- end -}}
|
|
{{- end -}}
|