File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -332,6 +332,7 @@ func getManager(
332332
333333 options .LeaderElectionID = "governance-policy-framework-addon.open-cluster-management.io"
334334 options .HealthProbeBindAddress = healthAddr
335+ options .Namespace = tool .Options .ClusterNamespace
335336
336337 mgr , err := ctrl .NewManager (managedCfg , options )
337338 if err != nil {
@@ -419,6 +420,7 @@ func getHubManager(
419420 options .HealthProbeBindAddress = healthAddr
420421 options .LeaderElectionID = "governance-policy-framework-addon2.open-cluster-management.io"
421422 options .LeaderElectionConfig = managedCfg
423+ options .Namespace = tool .Options .ClusterNamespaceOnHub
422424 options .NewCache = newCacheFunc
423425
424426 // Create a new manager to provide shared dependencies and start components
You can’t perform that action at this time.
0 commit comments