12 lines
534 B
YAML
12 lines
534 B
YAML
{{- if eq .Values.common.certificate.password "" -}}
|
|
{{- $existingSecret := (lookup "v1" "Secret" .Release.Namespace "certificate-password" ).metadata | required "Secret 'certificate-password' is required. Create it external to helm chart or set common.certificate.password" }}
|
|
{{- else }}
|
|
---
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: certificate-password
|
|
type: "Opaque"
|
|
data:
|
|
password: {{ required "common.certificate.password is required for the secret certificate-password" .Values.common.certificate.password }}
|
|
{{- end }} |