feat(argo-cd): Add "global.env" for all deployed containers (#2096)
* add global env for argo-cd Signed-off-by: Joe Lee <lj_2005@163.com> * update readme Signed-off-by: Joe Lee <lj_2005@163.com> * fix typo Signed-off-by: Joe Lee <lj_2005@163.com> * feat(argo-cd): Add "global.env" for all deployed containers Signed-off-by: Joe Lee <lj_2005@163.com> * update doc Signed-off-by: Joe Lee <lj_2005@163.com> * remove note Signed-off-by: Joe Lee <lj_2005@163.com> * update changes Signed-off-by: Joe Lee <lj_2005@163.com> --------- Signed-off-by: Joe Lee <lj_2005@163.com>
This commit is contained in:
parent
2538371fec
commit
49c2ca2548
10 changed files with 14 additions and 12 deletions
|
|
@ -99,7 +99,7 @@ spec:
|
|||
imagePullPolicy: {{ default .Values.global.image.imagePullPolicy .Values.controller.image.imagePullPolicy }}
|
||||
name: {{ .Values.controller.name }}
|
||||
env:
|
||||
{{- with .Values.controller.env }}
|
||||
{{- with (concat .Values.global.env .Values.controller.env) }}
|
||||
{{- toYaml . | nindent 10 }}
|
||||
{{- end }}
|
||||
- name: ARGOCD_CONTROLLER_REPLICAS
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ spec:
|
|||
{{- toYaml . | nindent 12 }}
|
||||
{{- end }}
|
||||
env:
|
||||
{{- with .Values.applicationSet.extraEnv }}
|
||||
{{- with (concat .Values.global.env .Values.applicationSet.extraEnv) }}
|
||||
{{- toYaml . | nindent 12 }}
|
||||
{{- end }}
|
||||
- name: NAMESPACE
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ spec:
|
|||
{{- range .Values.notifications.extraArgs }}
|
||||
- {{ . | squote }}
|
||||
{{- end }}
|
||||
{{- with .Values.notifications.extraEnv }}
|
||||
{{- with (concat .Values.global.env .Values.notifications.extraEnv) }}
|
||||
env:
|
||||
{{- toYaml . | nindent 12 }}
|
||||
{{- end }}
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ spec:
|
|||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
env:
|
||||
{{- with .Values.repoServer.env }}
|
||||
{{- with (concat .Values.global.env .Values.repoServer.env) }}
|
||||
{{- toYaml . | nindent 10 }}
|
||||
{{- end }}
|
||||
{{- if .Values.openshift.enabled }}
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ spec:
|
|||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
env:
|
||||
{{- with .Values.server.env }}
|
||||
{{- with (concat .Values.global.env .Values.server.env) }}
|
||||
{{- toYaml . | nindent 10 }}
|
||||
{{- end }}
|
||||
- name: ARGOCD_SERVER_INSECURE
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ spec:
|
|||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
env:
|
||||
{{- with .Values.dex.env }}
|
||||
{{- with (concat .Values.global.env .Values.dex.env) }}
|
||||
{{- toYaml . | nindent 10 }}
|
||||
{{- end }}
|
||||
- name: ARGOCD_DEX_SERVER_DISABLE_TLS
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ spec:
|
|||
{{- with .Values.redis.extraArgs }}
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with .Values.redis.env }}
|
||||
{{- with (concat .Values.global.env .Values.redis.env) }}
|
||||
env:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
|
|
@ -92,7 +92,7 @@ spec:
|
|||
value: {{ printf "redis://localhost:%v" .Values.redis.containerPorts.redis }}
|
||||
- name: REDIS_EXPORTER_WEB_LISTEN_ADDRESS
|
||||
value: {{ printf "0.0.0.0:%v" .Values.redis.containerPorts.metrics }}
|
||||
{{- with .Values.redis.exporter.env }}
|
||||
{{- with (concat .Values.global.env .Values.redis.exporter.env) }}
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
ports:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue