Skip to content

Commit 4ea42ff

Browse files
committed
use aks cluster admin role
1 parent 3edc269 commit 4ea42ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/providers/azure.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ type SetUpCmd struct {
3030
AzClient AzClientInterface
3131
}
3232

33-
const AZURE_CONTRIBUTOR_ROLE_ID = "b24988ac-6180-42a0-ab88-20f7382dd24c"
33+
const AKS_CLUSTER_ADMIN_ROLE_ID = "b1ff04bb-8a4e-4dc4-8eb5-8693973ce19b"
3434

3535
func InitiateAzureOIDCFlow(ctx context.Context, sc *SetUpCmd, s spinner.Spinner, gh GhClient) error {
3636
log.Debug("Commencing github connection with azure...")
@@ -56,7 +56,7 @@ func InitiateAzureOIDCFlow(ctx context.Context, sc *SetUpCmd, s spinner.Spinner,
5656
return err
5757
}
5858

59-
if err := sc.AzClient.assignSpRole(ctx, sc.SubscriptionID, sc.ResourceGroupName, sc.spObjectId, AZURE_CONTRIBUTOR_ROLE_ID); err != nil {
59+
if err := sc.AzClient.assignSpRole(ctx, sc.SubscriptionID, sc.ResourceGroupName, sc.spObjectId, AKS_CLUSTER_ADMIN_ROLE_ID); err != nil {
6060
return err
6161
}
6262

0 commit comments

Comments
 (0)