From e34a57bef5b82a2c49feb9ca778fa6943bbdebcd Mon Sep 17 00:00:00 2001 From: zhenyus Date: Mon, 18 Aug 2025 15:27:26 +0800 Subject: [PATCH] refactor(authentication): update secret references in deployment and FreeleapsSecret templates - Changed references from .Values.secrets to .Values.authentication.secrets in deployment.yaml and freeleapssecret.yaml to align with the new secret management structure. - This update enhances the clarity and organization of secret management within the authentication module. Signed-off-by: zhenyus --- .../templates/authentication/deployment.yaml | 4 ++-- .../templates/authentication/freeleapssecret.yaml | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/freeleaps/helm-pkg/authentication/templates/authentication/deployment.yaml b/freeleaps/helm-pkg/authentication/templates/authentication/deployment.yaml index 14c37e54..2f33800b 100644 --- a/freeleaps/helm-pkg/authentication/templates/authentication/deployment.yaml +++ b/freeleaps/helm-pkg/authentication/templates/authentication/deployment.yaml @@ -107,11 +107,11 @@ spec: key: {{ $key | snakecase | upper }} {{- end }} # inject from secret created by FreeleapsSecret object - {{- range .Values.secrets.data }} + {{- range .Values.authentication.secrets.data }} - name: {{ .key | snakecase | upper }} valueFrom: secretKeyRef: - name: {{ .Values.secrets.target.name }} + name: {{ .Values.authentication.secrets.target.name }} key: {{ .key }} {{- end }} {{- if .Values.logIngest.enabled }} diff --git a/freeleaps/helm-pkg/authentication/templates/authentication/freeleapssecret.yaml b/freeleaps/helm-pkg/authentication/templates/authentication/freeleapssecret.yaml index 7de96369..0b6aacc0 100644 --- a/freeleaps/helm-pkg/authentication/templates/authentication/freeleapssecret.yaml +++ b/freeleaps/helm-pkg/authentication/templates/authentication/freeleapssecret.yaml @@ -5,14 +5,14 @@ metadata: namespace: {{ .Release.Namespace }} spec: secretStoreRef: - kind: {{ .Values.secrets.secretStoreRef.kind }} - name: {{ .Values.secrets.secretStoreRef.name }} + kind: {{ .Values.authentication.secrets.secretStoreRef.kind }} + name: {{ .Values.authentication.secrets.secretStoreRef.name }} target: - name: {{ .Values.secrets.target.name }} - creationPolicy: {{ .Values.secrets.target.creationPolicy }} - refreshInterval: {{ .Values.secrets.refreshInterval }} + name: {{ .Values.authentication.secrets.target.name }} + creationPolicy: {{ .Values.authentication.secrets.target.creationPolicy }} + refreshInterval: {{ .Values.authentication.secrets.refreshInterval }} data: -{{- range .Values.secrets.data }} +{{- range .Values.authentication.secrets.data }} - key: {{ .key }} remoteRef: key: {{ .remoteRef.key }}