Skip to content

Commit a224993

Browse files
authored
Init job permissions (#16)
1 parent 5049bbb commit a224993

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

internal/controllers/provider/install/rbac_init.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,16 @@ func newInitClusterRoleMutator(values *Values) resources.Mutator[*rbac.ClusterRo
3939
Resources: []string{"customresourcedefinitions"},
4040
Verbs: []string{"get", "list", "watch", "create", "update", "patch", "delete"},
4141
},
42+
{
43+
APIGroups: []string{""},
44+
Resources: []string{"secrets"},
45+
Verbs: []string{"get", "list", "watch"},
46+
},
47+
{
48+
APIGroups: []string{"clusters.openmcp.cloud"},
49+
Resources: []string{"accessrequests", "clusterrequests"},
50+
Verbs: []string{"get", "list", "watch", "create", "update", "patch", "delete"},
51+
},
4252
},
4353
values.LabelsInitJob(),
4454
nil)

0 commit comments

Comments
 (0)