first commit
This commit is contained in:
12
templates/common/secret-certificate-password.yaml
Normal file
12
templates/common/secret-certificate-password.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
{{- 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 }}
|
||||
Reference in New Issue
Block a user