зеркало из https://github.com/Azure/ARO-RP.git
add RoleOwner constant
This commit is contained in:
Родитель
f4560deab2
Коммит
a70bd47eeb
|
@ -22,6 +22,7 @@ import (
|
|||
"github.com/Azure/ARO-RP/pkg/util/azureclient/mgmt/authorization"
|
||||
"github.com/Azure/ARO-RP/pkg/util/azureclient/mgmt/features"
|
||||
"github.com/Azure/ARO-RP/pkg/util/clientauthorizer"
|
||||
"github.com/Azure/ARO-RP/pkg/util/rbac"
|
||||
"github.com/Azure/ARO-RP/pkg/util/refreshable"
|
||||
"github.com/Azure/ARO-RP/pkg/util/version"
|
||||
)
|
||||
|
@ -128,7 +129,7 @@ func (d *dev) CreateARMResourceGroupRoleAssignment(ctx context.Context, fpAuthor
|
|||
|
||||
_, err = d.roleassignments.Create(ctx, "/subscriptions/"+d.SubscriptionID()+"/resourceGroups/"+resourceGroup, uuid.NewV4().String(), mgmtauthorization.RoleAssignmentCreateParameters{
|
||||
RoleAssignmentProperties: &mgmtauthorization.RoleAssignmentProperties{
|
||||
RoleDefinitionID: to.StringPtr("/subscriptions/" + d.SubscriptionID() + "/providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635"),
|
||||
RoleDefinitionID: to.StringPtr("/subscriptions/" + d.SubscriptionID() + "/providers/Microsoft.Authorization/roleDefinitions/" + rbac.RoleOwner),
|
||||
PrincipalID: res.Value,
|
||||
},
|
||||
})
|
||||
|
|
|
@ -17,6 +17,7 @@ const (
|
|||
RoleDocumentDBAccountContributor = "5bd9cd88-fe45-4216-938b-f97437e15450"
|
||||
RoleDNSZoneContributor = "befefa01-2a29-4197-83a8-272ff33ce314"
|
||||
RoleNetworkContributor = "4d97b98b-1d4f-4787-a291-c67834d212e7"
|
||||
RoleOwner = "8e3af657-a8ff-443c-a75c-2fe8c4bcb635"
|
||||
RoleReader = "acdd72a7-3385-48ef-bd42-f606fba81ae7"
|
||||
)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче