File tree Expand file tree Collapse file tree 3 files changed +22
-0
lines changed Expand file tree Collapse file tree 3 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -111,3 +111,19 @@ just set the value of .Values.harness.configMap.argocd.redisSvc
111
111
{ {- end -} }
112
112
{ {- end -} }
113
113
{ {- end -} }
114
+
115
+
116
+ { {/*
117
+ Renders a value that contains template.
118
+ Usage:
119
+ {{ include " harnesscommon.tplvalues.render" ( dict " value" .Values.path.to.the.Value " context" $) } }
120
+ */}}
121
+ { {- define " harnesscommon.tplvalues.render" -} }
122
+ { {- if typeIs " string" .value } }
123
+ { {- tpl .value .context } }
124
+ { {- else } }
125
+ { {- if .value } }
126
+ { {- tpl (.value | toYaml) .context } }
127
+ { {- end } }
128
+ { {- end } }
129
+ { {- end -} }
Original file line number Diff line number Diff line change 42
42
GITOPS_AGENT_NUM_FETCHERS : " {{ .Values.agent.numFetchers }}"
43
43
GITOPS_AGENT_NUM_PROCESSORS : " {{ .Values.agent.numProcessors }}"
44
44
GITOPS_AGENT_NUM_RESPONDERS : " {{ .Values.agent.numResponders }}"
45
+ {{- include "harnesscommon.tplvalues.render" ( dict "value" .Values.agent.additionalConfig "context" $) | nindent 2}}
45
46
kind : ConfigMap
46
47
metadata :
47
48
labels :
Original file line number Diff line number Diff line change @@ -515,6 +515,11 @@ agent:
515
515
# -- Number of task responders running concurrently for the gitops agent
516
516
numResponders : 1
517
517
518
+ # -- Any additional env variables to be used by the gitops agent can be configured here
519
+ additionalConfig :
520
+ GITOPS_AGENT_MAPPING_TIMEOUT_SECONDS : " 60"
521
+ GITOPS_AGENT_ENABLE_RECONCILE_MEMORY_OPTIMIZATION : " true"
522
+ GITOPS_AGENT_SELF_HEAL_SYNC_FILTER_OUT : " true"
518
523
# # Harness GitOps Agent upgrader
519
524
upgrader :
520
525
# -- Agent upgrader name
You can’t perform that action at this time.
0 commit comments