Parameterize webhook secrets
This commit is contained in:
parent
13aa00e665
commit
ef1142f3c3
1 changed files with 23 additions and 0 deletions
23
charts/argo-cd/templates/argocd-secret.yaml
Executable file
23
charts/argo-cd/templates/argocd-secret.yaml
Executable file
|
@ -0,0 +1,23 @@
|
|||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: {{ include "argo-cd.fullname" . }}-secret
|
||||
labels:
|
||||
app: {{ include "argo-cd.name" . }}-server
|
||||
app.kubernetes.io/name: {{ include "argo-cd.name" . }}-server
|
||||
helm.sh/chart: {{ include "argo-cd.chart" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||
app.kubernetes.io/part-of: {{ include "argo-cd.name" . }}
|
||||
app.kubernetes.io/component: server
|
||||
type: Opaque
|
||||
data:
|
||||
{{- if .Values.config.webhook.githubSecret }}
|
||||
github.webhook.secret: {{ .Values.config.webhook.githubSecret }}
|
||||
{{- end }}
|
||||
{{- if .Values.config.webhook.gitlabSecret }}
|
||||
gitlab.webhook.secret: {{ .Values.config.webhook.gitlabSecret }}
|
||||
{{- end }}
|
||||
{{- if .Values.config.webhook.bitbucketSecret }}
|
||||
bitbucket.webhook.uuid: {{ .Values.config.webhook.bitbucketSecret }}
|
||||
{{- end }}
|
Loading…
Reference in a new issue