Skip to content

Commit 70d1bda

Browse files
authored
Merge pull request #5343 from fabriziopandini/fix-topology-controller-rbac
🐛 Add permission for changing ClusterClass to topology controller
2 parents 304f013 + 1ee0201 commit 70d1bda

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

config/rbac/role.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,12 @@ rules:
6767
resources:
6868
- clusterclasses
6969
verbs:
70+
- create
71+
- delete
7072
- get
7173
- list
74+
- patch
75+
- update
7276
- watch
7377
- apiGroups:
7478
- cluster.x-k8s.io

controllers/topology/cluster_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import (
3939

4040
// +kubebuilder:rbac:groups=infrastructure.cluster.x-k8s.io;bootstrap.cluster.x-k8s.io;controlplane.cluster.x-k8s.io,resources=*,verbs=get;list;watch;create;update;patch;delete
4141
// +kubebuilder:rbac:groups=cluster.x-k8s.io,resources=clusters;clusters/status,verbs=get;list;watch;create;update;patch;delete
42-
// +kubebuilder:rbac:groups=cluster.x-k8s.io,resources=clusterclasses,verbs=get;list;watch
42+
// +kubebuilder:rbac:groups=cluster.x-k8s.io,resources=clusterclasses,verbs=get;list;watch;create;update;patch;delete
4343
// +kubebuilder:rbac:groups=cluster.x-k8s.io,resources=machinedeployments,verbs=get;list;watch;create;update;patch;delete
4444
// +kubebuilder:rbac:groups=apiextensions.k8s.io,resources=customresourcedefinitions,verbs=get;list;watch
4545

0 commit comments

Comments
 (0)