diff --git a/freeleaps/helm-pkg/authentication/templates/authentication/deployment.yaml b/freeleaps/helm-pkg/authentication/templates/authentication/deployment.yaml index 2f33800b..214924f8 100644 --- a/freeleaps/helm-pkg/authentication/templates/authentication/deployment.yaml +++ b/freeleaps/helm-pkg/authentication/templates/authentication/deployment.yaml @@ -107,11 +107,12 @@ spec: key: {{ $key | snakecase | upper }} {{- end }} # inject from secret created by FreeleapsSecret object + {{ $targetSecretName := .Values.authentication.secrets.target.name }} {{- range .Values.authentication.secrets.data }} - name: {{ .key | snakecase | upper }} valueFrom: secretKeyRef: - name: {{ .Values.authentication.secrets.target.name }} + name: {{ $targetSecretName }} key: {{ .key }} {{- end }} {{- if .Values.logIngest.enabled }}