first commit
This commit is contained in:
14
templates/valkey/valkey-secret.yaml
Normal file
14
templates/valkey/valkey-secret.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
{{- if .Values.valkey.enabled }}
|
||||
{{- if .Values.common.datagridCredentials.existingSecret -}}
|
||||
{{- $existingSecret := (lookup "v1" "Secret" .Release.Namespace .Values.common.datagridCredentials.name ).metadata | required "Secret .Values.common.datagridCredentials.name is required. Create it external to helm chart or set existingSecret to false" }}
|
||||
{{- else }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: {{ .Values.common.datagridCredentials.name }}
|
||||
type: "Opaque"
|
||||
data:
|
||||
datagrid_password: {{ required "Value datagridPassword is required for the database secret" .Values.common.datagridCredentials.password }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user