diff --git a/packages/apps/nats/templates/nats.yaml b/packages/apps/nats/templates/nats.yaml index 02209377..b05c87b5 100644 --- a/packages/apps/nats/templates/nats.yaml +++ b/packages/apps/nats/templates/nats.yaml @@ -3,7 +3,7 @@ {{- $existingSecret := lookup "v1" "Secret" .Release.Namespace (printf "%s-credentials" .Release.Name) }} {{- $passwords := dict }} -{{- with (index $existingSecret "data") }} +{{- with (dig "data" (dict) $existingSecret) }} {{- range $k, $v := . }} {{- $_ := set $passwords $k (b64dec $v) }} {{- end }}