Skip to content

Commit 05c5e4a

Browse files
committed
Try new way to say install namespace
Signed-off-by: Mike Spreitzer <mspreitz@us.ibm.com>
1 parent 7304a97 commit 05c5e4a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/ocm-status-addon/main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@ func (ac *agentController) runController(ctx context.Context, kubeConfig *rest.C
168168
),
169169
).
170170
WithAgentRegistrationOption(registrationOption).
171+
WithAgentInstallNamespace(func(*addonapiv1alpha1.ManagedClusterAddOn) (string, error) {
172+
return controller.InstallationNamespace, nil
173+
}).
171174
// WithInstallStrategy(addonagent.InstallAllStrategy(controller.InstallationNamespace)).
172175
WithAgentHealthProber(controller.AgentHealthProber()).
173176
BuildTemplateAgentAddon()

0 commit comments

Comments
 (0)