Skip to content

Commit

Permalink
feat: [CDS-95529]: configure HA mode with env var (#25)
Browse files Browse the repository at this point in the history
Signed-off-by: Mirko Teodorovic <[email protected]>
  • Loading branch information
mteodor authored Apr 24, 2024
1 parent 3911747 commit a2deb03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions templates/gitops-agent/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ data:
GITOPS_ARGOCD_REDIS_HA_PROXY: "{{ .Values.harness.configMap.argocd.redisHaProxy }}"
GITOPS_ARGOCD_APP_CONTROLLER: "{{ .Values.harness.configMap.argocd.controller }}"
GITOPS_ARGOCD_APPSET_CONTROLLER: "{{ .Values.harness.configMap.argocd.applicationSet }}"
GITOPS_AGENT_AVAILABILITY_MODE: "{{ if .Values.agent.highAvailability }}HA{{ else }}NON-HA{{ end }}"
{{- if .Values.agent.proxy.enabled }}
HTTPS_PROXY: {{ .Values.agent.proxy.httpsProxy }}
HTTP_PROXY: {{ .Values.agent.proxy.httpProxy }}
Expand Down
3 changes: 3 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@ agent:
# -- The number of agent pods to run
replicas: 1

# -- Enable High Availability for the GitOps Agent
highAvailability: false

# -- GitOps Agent image
image:
# -- Repository to use for GitOps Agent
Expand Down

0 comments on commit a2deb03

Please sign in to comment.