Skip to content

Commit 2b48fce

Browse files
Merge pull request #2954 from Nordix/fix/rbac
🐛 Add missing RBAC permissions for metal3clustertemplates
2 parents 1118959 + 4e945f2 commit 2b48fce

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

config/rbac/role.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ rules:
108108
- infrastructure.cluster.x-k8s.io
109109
resources:
110110
- metal3clusters
111+
- metal3clustertemplates
111112
- metal3dataclaims
112113
- metal3datas
113114
- metal3datatemplates

controllers/metal3cluster_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ type Metal3ClusterReconciler struct {
6767

6868
// +kubebuilder:rbac:groups=infrastructure.cluster.x-k8s.io,resources=metal3clusters,verbs=get;list;watch;create;update;patch;delete
6969
// +kubebuilder:rbac:groups=infrastructure.cluster.x-k8s.io,resources=metal3clusters/status,verbs=get;update;patch
70+
// +kubebuilder:rbac:groups=infrastructure.cluster.x-k8s.io,resources=metal3clustertemplates,verbs=get;list;watch;create;update;patch;delete
7071
// +kubebuilder:rbac:groups=cluster.x-k8s.io,resources=clusters;clusters/status,verbs=get;list;watch
7172

7273
// Reconcile reads that state of the cluster for a Metal3Cluster object and makes changes based on the state read

0 commit comments

Comments
 (0)