Skip to content

Commit ec2a74e

Browse files
authored
fix: leader election config should be in the hubOpts of memberagent (#252)
1 parent 0eaf0b8 commit ec2a74e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/memberagent/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ func main() {
135135
LeaderElection: *enableLeaderElection,
136136
LeaderElectionNamespace: *leaderElectionNamespace,
137137
LeaderElectionID: "3111024923.hub.fleet.azure.com",
138+
LeaderElectionConfig: memberConfig,
138139
Namespace: mcNamespace,
139140
}
140141

@@ -145,7 +146,6 @@ func main() {
145146
HealthProbeBindAddress: *probeAddr,
146147
LeaderElection: hubOpts.LeaderElection,
147148
LeaderElectionNamespace: *leaderElectionNamespace,
148-
LeaderElectionConfig: memberConfig,
149149
LeaderElectionID: "136224848560.member.fleet.azure.com",
150150
}
151151
//+kubebuilder:scaffold:builder

0 commit comments

Comments
 (0)