Skip to content

Commit 3bd4b84

Browse files
Adding comment to describe support for awsira auth
Signed-off-by: Gaurav Jaswal <[email protected]>
1 parent 374da7c commit 3bd4b84

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/cmd/accept/exec.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ func (o *Options) accept(kubeClient *kubernetes.Clientset, clusterClient *cluste
100100
if err != nil {
101101
return false, fmt.Errorf("fail to get managedcluster %s: %v", clusterName, err)
102102
}
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
103106
_, hasEksArn := managedCluster.Annotations["agent.open-cluster-management.io/managed-cluster-arn"]
104107

105108
var approved bool

0 commit comments

Comments
 (0)