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 <zhenyus@mathmast.com>
This commit is contained in:
parent
4da0d64995
commit
e34a57bef5
@ -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 }}
|
||||
|
||||
@ -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 }}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user