Skip to content

Commit dd034a0

Browse files
zhaohuabingguydc
andauthored
fix: nil leader election (envoyproxy#3096)
Signed-off-by: huabing zhao <zhaohuabing@gmail.com> Co-authored-by: Guy Daich <guy.daich@sap.com>
1 parent 6941624 commit dd034a0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

api/v1alpha1/envoygateway_helpers.go

+3
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ func (e *EnvoyGateway) SetEnvoyGatewayDefaults() {
4646
LeaderElection: DefaultLeaderElection(),
4747
}
4848
}
49+
if e.Provider.Kubernetes.LeaderElection == nil {
50+
e.Provider.Kubernetes.LeaderElection = DefaultLeaderElection()
51+
}
4952
if e.Gateway == nil {
5053
e.Gateway = DefaultGateway()
5154
}

0 commit comments

Comments
 (0)