mirror of
https://github.com/bitnami/charts.git
synced 2026-08-10 14:15:55 +08:00
* Add Argo CD server Signed-off-by: Miguel A. Cabrera Minagorri <macabrera@bitnami.com> * Add Argo CD application controller Signed-off-by: Miguel A. Cabrera Minagorri <macabrera@bitnami.com> * Add Argo CD repo server component Signed-off-by: Miguel A. Cabrera Minagorri <macabrera@bitnami.com> * Add Dex component Signed-off-by: Miguel A. Cabrera Minagorri <macabrera@bitnami.com> * Fix linter errors Signed-off-by: Miguel A. Cabrera Minagorri <macabrera@bitnami.com> * Change staticasset paths and remove https port from server Signed-off-by: Miguel A. Cabrera Minagorri <macabrera@bitnami.com> * Add README.md and NOTES.txt * Skip the admin password change by creating it automatically Signed-off-by: Miguel A. Cabrera Minagorri <macabrera@bitnami.com> * Remove unneeded comments Signed-off-by: Miguel A. Cabrera Minagorri <macabrera@bitnami.com> * Wait for redis to avoid tokens sync errors Signed-off-by: Miguel A. Cabrera Minagorri <macabrera@bitnami.com> * Add Dex validations and instructions Signed-off-by: Miguel A. Cabrera Minagorri <macabrera@bitnami.com> * Add readme generator metadata Signed-off-by: Miguel A. Cabrera Minagorri <macabrera@bitnami.com> * Fix linter errors Signed-off-by: Miguel A. Cabrera Minagorri <macabrera@bitnami.com> * Address sugestions Signed-off-by: Miguel A. Cabrera Minagorri <macabrera@bitnami.com> * Add Redis image section to the values.yaml file Signed-off-by: Miguel A. Cabrera Minagorri <macabrera@bitnami.com> * Use empty default dex.config Signed-off-by: Miguel A. Cabrera Minagorri <macabrera@bitnami.com> * Add trailing space Signed-off-by: Miguel A. Cabrera Minagorri <macabrera@bitnami.com> * Delete additional applications Signed-off-by: Miguel A. Cabrera Minagorri <macabrera@bitnami.com> * Add http prefix to metrics ports Signed-off-by: Miguel A. Cabrera Minagorri <macabrera@bitnami.com> * Remove additionalProjects and add selfSigned to ingress values Signed-off-by: Miguel A. Cabrera Minagorri <macabrera@bitnami.com> * Execute readme-generator again Signed-off-by: Miguel A. Cabrera Minagorri <macabrera@bitnami.com> * Remove option to deploy as statefulset Signed-off-by: Miguel A. Cabrera Minagorri <macabrera@bitnami.com> * Use xxx.containerPorts instead of xxx.ports Signed-off-by: Miguel A. Cabrera Minagorri <macabrera@bitnami.com> * Do not edit files from other charts * Fix wrong template name Signed-off-by: Miguel A. Cabrera Minagorri <macabrera@bitnami.com> * Add validation and render server configuration from string Signed-off-by: Miguel A. Cabrera Minagorri <macabrera@bitnami.com> * conver to warning the config validation Signed-off-by: Miguel A. Cabrera Minagorri <macabrera@bitnami.com>
55 lines
2.5 KiB
YAML
55 lines
2.5 KiB
YAML
{{- if .Values.config.secret.create }}
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
# Mandatory hardcoded name.
|
|
# Ref: https://github.com/argoproj/argo-cd/blob/master/docs/operator-manual/argocd-secret.yaml
|
|
name: argocd-secret
|
|
namespace: {{ .Release.Namespace | quote }}
|
|
labels: {{- include "common.labels.standard" . | nindent 4 }}
|
|
{{- if .Values.commonLabels }}
|
|
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
# Mandatory label
|
|
# Ref: https://argoproj.github.io/argo-cd/operator-manual/declarative-setup/#atomic-configuration
|
|
app.kubernetes.io/part-of: argocd
|
|
{{- if or .Values.commonAnnotations .Values.config.secret.annotations}}
|
|
annotations:
|
|
{{- if .Values.commonAnnotations }}
|
|
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
{{- if .Values.config.secret.annotations }}
|
|
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
type: Opaque
|
|
data:
|
|
{{- if .Values.config.secret.githubSecret }}
|
|
webhook.github.secret: {{ .Values.config.secret.githubSecret | b64enc }}
|
|
{{- end }}
|
|
{{- if .Values.config.secret.gitlabSecret }}
|
|
webhook.gitlab.secret: {{ .Values.config.secret.gitlabSecret | b64enc }}
|
|
{{- end }}
|
|
{{- if .Values.config.secret.bitbucketServerSecret }}
|
|
webhook.bitbucketserver.secret: {{ .Values.config.secret.bitbucketServerSecret | b64enc }}
|
|
{{- end }}
|
|
{{- if .Values.config.secret.bitbucketUUID }}
|
|
webhook.bitbucket.uuid: {{ .Values.config.secret.bitbucketUUID | b64enc }}
|
|
{{- end }}
|
|
{{- if .Values.config.secret.gogsSecret }}
|
|
webhook.gogs.secret: {{ .Values.config.secret.gogsSecret | b64enc }}
|
|
{{- end }}
|
|
{{- if and .Values.config.secret.argocdServerTlsConfig.key .Values.config.secret.argocdServerTlsConfig.crt }}
|
|
tls.key: {{ .Values.config.secret.argocdServerTlsConfig.key | b64enc }}
|
|
tls.crt: {{ .Values.config.secret.argocdServerTlsConfig.crt | b64enc }}
|
|
{{- end }}
|
|
{{- $password := default (randAlphaNum 10) .Values.config.secret.argocdServerAdminPassword }}
|
|
clearPassword: {{ $password | b64enc }}
|
|
# The password needs to be bcrypt hashed
|
|
admin.password: {{ (split ":" (htpasswd "" $password))._1 | b64enc }}
|
|
admin.passwordMtime: {{ default (date "2006-01-02T15:04:05Z" now) .Values.config.secret.argocdServerAdminPasswordMtime | b64enc }}
|
|
{{- range $key, $value := .Values.config.secret.extra }}
|
|
{{ $key }}: {{ $value | b64enc }}
|
|
{{- end }}
|
|
{{- end }}
|