Skip to content

Commit 0231dfa

Browse files
committed
Allow the Operator lease duration and renewal timeout to be configured in the Helm chart
1 parent 0e51e93 commit 0231dfa

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

helm-charts/coherence-operator/templates/deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,12 @@ spec:
189189
{{- end }}
190190
{{- range .Values.cipherDenyList }}
191191
- --cipher-deny-list={{ . }}
192+
{{- end }}
193+
{{- if .Values.leaderElectionDuration }}
194+
- --leader-election-duration={{ .Values.leaderElectionDuration | quote }}
195+
{{- end }}
196+
{{- if .Values.leaderElectionRenewTimeout }}
197+
- --leader-election-renew-timeout={{ .Values.leaderElectionRenewTimeout | quote }}
192198
{{- end }}
193199
command:
194200
- "/files/runner"

helm-charts/coherence-operator/values.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,34 @@ allowCoherenceJobs: true
225225
# The CRDs must be manually installed before the Operator can be installed.
226226
installCrd: true
227227

228+
# The list of allowed TLS cipher suite names.
228229
cipherAllowList: []
229230

231+
# The list of disallowed TLS cipher suite names.
230232
cipherDenyList: []
231233

234+
# This value is used to set the `GODEBUG` environment variables.
235+
# The `fips` value is unset by default, if set it must be one of the values, "off", "on" or "only".
236+
# If `fips` is set to any other value, the chart will fail to install.
232237
fips:
238+
239+
# The value that the Operator will use for the leadership lease duration.
240+
# This is a string value that should be a valid Go Duration string.
241+
#
242+
# The default value is 30 seconds. The only reason to change this is in some environments
243+
# that may be particularly slow and would need a larger value due to loss of leadership issues
244+
#
245+
# Normally this will be a number of seconds. For example, 30 seconds is "30s" and
246+
# there would not be any reason to have values in minutes or hours.
247+
leaderElectionDuration:
248+
249+
# The value that the Operator will use for the leadership lease renewal timeout.
250+
# This is a string value that should be a valid Go Duration string.
251+
#
252+
# The default value is 20 seconds. The only reason to change this is in some environments
253+
# that may be particularly slow and would need a larger value due to loss of leadership issues
254+
#
255+
# Normally this will be a number of seconds. For example, 30 seconds is "30s" and
256+
# there would not be any reason to have values in minutes or hours.
257+
leaderElectionRenewTimeout:
258+

0 commit comments

Comments
 (0)