From 22f6c4aafabd2a0eac4503c02026a7c2dd670905 Mon Sep 17 00:00:00 2001 From: Ryan Zhang Date: Tue, 30 Aug 2022 15:30:55 -0500 Subject: [PATCH] fix namespace --- cmd/memberagent/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/memberagent/main.go b/cmd/memberagent/main.go index c9fb0a4e7..0fbcb9248 100644 --- a/cmd/memberagent/main.go +++ b/cmd/memberagent/main.go @@ -133,8 +133,8 @@ func main() { Port: 8443, HealthProbeBindAddress: *hubProbeAddr, LeaderElection: *enableLeaderElection, - LeaderElectionNamespace: *leaderElectionNamespace, - LeaderElectionID: "3111024923.hub.fleet.azure.com", + LeaderElectionNamespace: mcNamespace, // This requires we have access to resource "leases" in API group "coordination.k8s.io" under namespace $mcHubNamespace + LeaderElectionID: "136224848560.hub.fleet.azure.com", Namespace: mcNamespace, }