Skip to content

Commit 2fa7bf1

Browse files
mprahlopenshift-ci[bot]
authored andcommitted
Set the namespace to watch
Relates: https://github.com/stolostron/backlog/issues/25999 Signed-off-by: mprahl <[email protected]>
1 parent c1e3355 commit 2fa7bf1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)