15 lines
642 B
YAML
15 lines
642 B
YAML
{{- 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 }}
|