Skip to content

Commit

Permalink
bugfix: managed sa addon namespace/name
Browse files Browse the repository at this point in the history
Signed-off-by: yue9944882 <[email protected]>
  • Loading branch information
yue9944882 committed Mar 29, 2022
1 parent 61c5924 commit d0d5a33
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/addon/agent/addon.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ func (c *clusterGatewayAddonManager) Manifests(cluster *clusterv1.ManagedCluster
managedServiceAccountAddon := &addonv1alpha1.ManagedClusterAddOn{}
if err := c.client.Get(
context.TODO(),
types.NamespacedName{},
types.NamespacedName{
Namespace: cluster.Name,
Name: "managed-serviceaccount",
},
managedServiceAccountAddon); err != nil {
if apierrors.IsNotFound(err) {
return nil, nil
Expand Down

0 comments on commit d0d5a33

Please sign in to comment.