We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 374da7c commit 3bd4b84Copy full SHA for 3bd4b84
pkg/cmd/accept/exec.go
@@ -100,6 +100,9 @@ func (o *Options) accept(kubeClient *kubernetes.Clientset, clusterClient *cluste
100
if err != nil {
101
return false, fmt.Errorf("fail to get managedcluster %s: %v", clusterName, err)
102
}
103
+ // when a managed cluster registers with hub using awsirsa registration-auth, it will add this annotation
104
+ // to ManagedCluster resource, presense of which is used to decide the requested authentication type.
105
+ // awrirsa authentication doesn't create CSR on hub, hence there is nothing to approve
106
_, hasEksArn := managedCluster.Annotations["agent.open-cluster-management.io/managed-cluster-arn"]
107
108
var approved bool
0 commit comments