Skip to content

Commit

Permalink
fix: nil leader election (envoyproxy#3096)
Browse files Browse the repository at this point in the history
Signed-off-by: huabing zhao <[email protected]>
Co-authored-by: Guy Daich <[email protected]>
  • Loading branch information
zhaohuabing and guydc authored Apr 5, 2024
1 parent 6941624 commit dd034a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/v1alpha1/envoygateway_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ func (e *EnvoyGateway) SetEnvoyGatewayDefaults() {
LeaderElection: DefaultLeaderElection(),
}
}
if e.Provider.Kubernetes.LeaderElection == nil {
e.Provider.Kubernetes.LeaderElection = DefaultLeaderElection()
}
if e.Gateway == nil {
e.Gateway = DefaultGateway()
}
Expand Down

0 comments on commit dd034a0

Please sign in to comment.