Skip to content

Commit

Permalink
[bitnami/argo-cd] Add replica env variables to app controller and server
Browse files Browse the repository at this point in the history
Signed-off-by: Max Nitze <max.nitze@mgm-tp.com>
  • Loading branch information
Max Nitze committed Jul 3, 2024
1 parent 6cd3b6b commit cff50e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bitnami/argo-cd/templates/application-controller/_pod.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ containers:
env:
- name: ARGOCD_APPLICATION_CONTROLLER_NAME
value: {{ include "argocd.application-controller" . }}
{{- if gt .Values.server.replicaCount 1 }}
- name: ARGOCD_CONTROLLER_REPLICAS
value: {{ .Values.controller.replicaCount | quote }}
{{- end }}
{{- if and .Values.redis.enabled (include "argocd.redis.auth.enabled" .) }}
- name: REDIS_PASSWORD
valueFrom:
Expand Down
4 changes: 4 additions & 0 deletions bitnami/argo-cd/templates/server/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ spec:
containerPort: {{ .Values.server.containerPorts.metrics }}
protocol: TCP
env:
{{- if gt .Values.server.replicaCount 1 }}
- name: ARGOCD_API_SERVER_REPLICAS
value: {{ .Values.server.replicaCount | quote }}
{{- end }}
{{- if and .Values.redis.enabled (include "argocd.redis.auth.enabled" .) }}
- name: REDIS_PASSWORD
valueFrom:
Expand Down

0 comments on commit cff50e4

Please sign in to comment.