Skip to content

Commit

Permalink
fix multicluster leader election regression (istio#47873)
Browse files Browse the repository at this point in the history
* fix multicluster leader election regreession

* add release note

* update

* update
  • Loading branch information
hzxuzhonghu authored Nov 17, 2023
1 parent b71a015 commit cd796e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pilot/pkg/leaderelection/leaderelection.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ func NewPerRevisionLeaderElection(namespace, name, electionID, revision string,
}

func NewLeaderElectionMulticluster(namespace, name, electionID, revision string, remote bool, client kube.Client) *LeaderElection {
return newLeaderElection(namespace, name, electionID, revision, false, true, client)
return newLeaderElection(namespace, name, electionID, revision, false, remote, client)
}

func newLeaderElection(namespace, name, electionID, revision string, perRevision bool, remote bool, client kube.Client) *LeaderElection {
Expand Down
1 change: 1 addition & 0 deletions releasenotes/notes/multicluster-leader-election.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
apiVersion: release-notes/v2kind: bug-fixarea: traffic-managementissue: - 47901releaseNotes: - | **Fixed** multi-cluster leader election cannot prioritize local over remote leader.
Expand Down

0 comments on commit cd796e2

Please sign in to comment.