add secrets helm template

This commit is contained in:
welld1
2020-06-02 21:12:56 -04:00
parent 5fa5f5e5c1
commit ac450483b3
5 changed files with 34 additions and 31 deletions

View File

@@ -7,9 +7,9 @@ metadata:
spec:
tls:
- hosts:
- {{ .Values.host }}
- {{ required "A valid .Values.host entry required!" .Values.host }}
rules:
- host: {{ .Values.host }}
- host: {{ required "A valid .Values.host entry required!" .Values.host }}
http:
paths:
- backend:

View File

@@ -0,0 +1,10 @@
{{ if .Values.secrets }}
apiVersion: v1
kind: Secret
metadata:
name: pgadmin
type: generic
data:
PGADMIN_DEFAULT_EMAIL: {{ "postgres" | b64enc | quote }}
PGADMIN_DEFAULT_PASSWORD: {{ randAlphaNum 64 | b64enc | quote }}
{{ end }}