Skip to content

Commit eb26b4f

Browse files
committed
fix: add ResourceNames to RBAC policy for customresourcedefinitions
1 parent cd8fcd0 commit eb26b4f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

internal/helper/clusteraccess.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,10 @@ func GetOnboardingCluster(ctx context.Context, log logging.Logger, client client
5353
Verbs: []string{"get", "list"},
5454
},
5555
{
56-
APIGroups: []string{"apiextensions.k8s.io"},
57-
Resources: []string{"customresourcedefinitions"},
58-
Verbs: []string{"create", "update", "delete"},
56+
APIGroups: []string{"apiextensions.k8s.io"},
57+
Resources: []string{"customresourcedefinitions"},
58+
Verbs: []string{"create", "update", "delete"},
59+
ResourceNames: []string{"mcpusage"},
5960
},
6061
{
6162
APIGroups: []string{"usage.openmcp.cloud"},

0 commit comments

Comments
 (0)