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 }}
|
key: {{ $key | snakecase | upper }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
# inject from secret created by FreeleapsSecret object
|
# inject from secret created by FreeleapsSecret object
|
||||||
{{- range .Values.secrets.data }}
|
{{- range .Values.authentication.secrets.data }}
|
||||||
- name: {{ .key | snakecase | upper }}
|
- name: {{ .key | snakecase | upper }}
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ .Values.secrets.target.name }}
|
name: {{ .Values.authentication.secrets.target.name }}
|
||||||
key: {{ .key }}
|
key: {{ .key }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.logIngest.enabled }}
|
{{- if .Values.logIngest.enabled }}
|
||||||
|
|||||||
@ -5,14 +5,14 @@ metadata:
|
|||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
spec:
|
spec:
|
||||||
secretStoreRef:
|
secretStoreRef:
|
||||||
kind: {{ .Values.secrets.secretStoreRef.kind }}
|
kind: {{ .Values.authentication.secrets.secretStoreRef.kind }}
|
||||||
name: {{ .Values.secrets.secretStoreRef.name }}
|
name: {{ .Values.authentication.secrets.secretStoreRef.name }}
|
||||||
target:
|
target:
|
||||||
name: {{ .Values.secrets.target.name }}
|
name: {{ .Values.authentication.secrets.target.name }}
|
||||||
creationPolicy: {{ .Values.secrets.target.creationPolicy }}
|
creationPolicy: {{ .Values.authentication.secrets.target.creationPolicy }}
|
||||||
refreshInterval: {{ .Values.secrets.refreshInterval }}
|
refreshInterval: {{ .Values.authentication.secrets.refreshInterval }}
|
||||||
data:
|
data:
|
||||||
{{- range .Values.secrets.data }}
|
{{- range .Values.authentication.secrets.data }}
|
||||||
- key: {{ .key }}
|
- key: {{ .key }}
|
||||||
remoteRef:
|
remoteRef:
|
||||||
key: {{ .remoteRef.key }}
|
key: {{ .remoteRef.key }}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user