added option to set admin.password, tls.key and tls.cert in argocd-secret via values (#158)
- Added option to set admin.password, tls.key and tls.cert in argocd-secret via values - Bumped chart version
This commit is contained in:
parent
5330efa6d8
commit
7503f29192
3 changed files with 27 additions and 3 deletions
|
@ -2,7 +2,7 @@ apiVersion: v1
|
|||
appVersion: "1.3.0"
|
||||
description: A Helm chart for ArgoCD, a declarative, GitOps continuous delivery tool for Kubernetes.
|
||||
name: argo-cd
|
||||
version: 1.2.2
|
||||
version: 1.2.4
|
||||
home: https://github.com/argoproj/argo-helm
|
||||
icon: https://raw.githubusercontent.com/argoproj/argo/master/argo.png
|
||||
keywords:
|
||||
|
|
|
@ -11,7 +11,7 @@ metadata:
|
|||
app.kubernetes.io/part-of: argocd
|
||||
app.kubernetes.io/component: {{ .Values.server.name }}
|
||||
type: Opaque
|
||||
{{- if or .Values.configs.secret.githubSecret (or .Values.configs.secret.gitlabSecret .Values.configs.secret.bitbucketSecret) }}
|
||||
{{- if or .Values.configs.secret.githubSecret (or .Values.configs.secret.gitlabSecret .Values.configs.secret.bitbucketSecret .Values.configs.secret.argocdServerAdminPassword .Values.configs.secret.argocdServerTlsConfig) }}
|
||||
# Setting a blank data again will wipe admin password/key/cert
|
||||
data:
|
||||
{{- if .Values.configs.secret.githubSecret }}
|
||||
|
@ -23,5 +23,14 @@ data:
|
|||
{{- if .Values.configs.secret.bitbucketSecret }}
|
||||
bitbucket.webhook.uuid: {{ .Values.configs.secret.bitbucketSecret | b64enc }}
|
||||
{{- end }}
|
||||
{{- if .Values.configs.secret.argocdServerTlsConfig }}
|
||||
tls.key: {{ .Values.configs.secret.argocdServerTlsConfig.key | b64enc }}
|
||||
tls.crt: {{ .Values.configs.secret.argocdServerTlsConfig.crt | b64enc }}
|
||||
{{- end }}
|
||||
|
||||
{{- if .Values.configs.secret.argocdServerAdminPassword }}
|
||||
admin.password: {{ .Values.configs.secret.argocdServerAdminPassword | b64enc }}
|
||||
admin.passwordMtime: {{ date "2006-01-02T15:04:05Z" now | b64enc }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
|
@ -608,3 +608,18 @@ configs:
|
|||
githubSecret: ""
|
||||
gitlabSecret: ""
|
||||
bitbucketSecret: ""
|
||||
|
||||
# Argo TLS Data.
|
||||
argocdServerTlsConfig: {}
|
||||
# key:
|
||||
# crt: |
|
||||
# -----BEGIN CERTIFICATE-----
|
||||
# <cert data>
|
||||
# -----END CERTIFICATE-----
|
||||
# -----BEGIN CERTIFICATE-----
|
||||
# <ca cert data>
|
||||
# -----END CERTIFICATE-----
|
||||
|
||||
# Argo expects the password in the secret to be bcrypt hashed. You can create this hash with
|
||||
# `htpasswd -nbBC 10 "" $ARGO_PWD | tr -d ':\n' | sed 's/$2y/$2a/'`
|
||||
# argocdServerAdminPassword:
|
||||
|
|
Loading…
Reference in a new issue