Skip to content

Commit d0d5a33

Browse files
committed
bugfix: managed sa addon namespace/name
Signed-off-by: yue9944882 <[email protected]>
1 parent 61c5924 commit d0d5a33

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/addon/agent/addon.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ func (c *clusterGatewayAddonManager) Manifests(cluster *clusterv1.ManagedCluster
5757
managedServiceAccountAddon := &addonv1alpha1.ManagedClusterAddOn{}
5858
if err := c.client.Get(
5959
context.TODO(),
60-
types.NamespacedName{},
60+
types.NamespacedName{
61+
Namespace: cluster.Name,
62+
Name: "managed-serviceaccount",
63+
},
6164
managedServiceAccountAddon); err != nil {
6265
if apierrors.IsNotFound(err) {
6366
return nil, nil

0 commit comments

Comments
 (0)