Skip to content

Commit cc37027

Browse files
committed
feat: add flag to helm template & values
Signed-off-by: gjbravi <[email protected]>
1 parent 998c61b commit cc37027

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

helm/aws-load-balancer-controller/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ spec:
170170
{{- if .Values.loadBalancerClass }}
171171
- --load-balancer-class={{ .Values.loadBalancerClass }}
172172
{{- end }}
173+
{{- if .Values.leaseDuration }}
174+
- --leader-election-lease-duration={{ .Values.leaseDuration }}
175+
{{- end }}
173176
{{- if or .Values.env .Values.envSecretName }}
174177
env:
175178
{{- if .Values.env}}

helm/aws-load-balancer-controller/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,5 +424,8 @@ serviceTargetENISGTags:
424424
# Specifies the class of load balancer to use for services. This affects how services are provisioned if type LoadBalancer is used (default service.k8s.aws/nlb)
425425
loadBalancerClass:
426426

427+
# Specifies the duration that non-leader candidates will wait to force acquire leadership. (default 15s)
428+
leaseDuration:
429+
427430
# creator will disable helm default labels, so you can only add yours
428431
# creator: "me"

0 commit comments

Comments
 (0)