add admin password and tls values to argocd admin-secret.yaml

This commit is contained in:
Karen Almog 2019-08-19 15:03:08 +02:00
parent 77e638f55d
commit 0320fede59

View file

@ -2,14 +2,29 @@ apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
name: argocd-secret name: argocd-secret
labels: labels:
app.kubernetes.io/name: {{ include "argo-cd.name" . }} app.kubernetes.io/name: {{ include "argo-cd.name" . }}
helm.sh/chart: {{ include "argo-cd.chart" . }} helm.sh/chart: {{ include "argo-cd.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/part-of: {{ include "argo-cd.name" . }} app.kubernetes.io/part-of: {{ include "argo-cd.name" . }}
type: Opaque type: Opaque
data: data:
{{- if .Values.config.admin.password }}
admin.password: {{ .Values.config.admin.password }}
{{- end }}
{{- if .Values.config.admin.passwordMtime }}
admin.passwordMtime: {{ .Values.config.admin.passwordMtime }}
{{- end }}
{{- if .Values.config.server.secretkey }}
server.secretkey: {{ .Values.config.server.secretkey }}
{{- end }}
{{- if .Values.config.tls.crt }}
tls.crt: {{ .Values.config.tls.crt }}
{{- end }}
{{- if .Values.config.tls.key }}
tls.key: {{ .Values.config.tls.key }}
{{- end }}
{{- if .Values.config.webhook.githubSecret }} {{- if .Values.config.webhook.githubSecret }}
github.webhook.secret: {{ .Values.config.webhook.githubSecret }} github.webhook.secret: {{ .Values.config.webhook.githubSecret }}
{{- end }} {{- end }}
@ -18,4 +33,4 @@ data:
{{- end }} {{- end }}
{{- if .Values.config.webhook.bitbucketSecret }} {{- if .Values.config.webhook.bitbucketSecret }}
bitbucket.webhook.uuid: {{ .Values.config.webhook.bitbucketSecret }} bitbucket.webhook.uuid: {{ .Values.config.webhook.bitbucketSecret }}
{{- end }} {{- end }}