Skip to content

Commit 8596a85

Browse files
committed
Add CRD RBAC to the awsmachine controller
Signed-off-by: Borja Clemente <[email protected]>
1 parent b721c59 commit 8596a85

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

config/rbac/role.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ rules:
3636
- get
3737
- list
3838
- watch
39+
- apiGroups:
40+
- apiextensions.k8s.io
41+
resources:
42+
- customresourcedefinitions
43+
verbs:
44+
- get
45+
- list
46+
- watch
3947
- apiGroups:
4048
- authentication.k8s.io
4149
resources:

controllers/awsmachine_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ func (r *AWSMachineReconciler) getObjectStoreService(scope scope.S3Scope) servic
152152
// +kubebuilder:rbac:groups="",resources=secrets;,verbs=get;list;watch
153153
// +kubebuilder:rbac:groups="",resources=namespaces,verbs=get;list;watch
154154
// +kubebuilder:rbac:groups="",resources=events,verbs=get;list;watch;create;update;patch
155+
// +kubebuilder:rbac:groups=apiextensions.k8s.io,resources=customresourcedefinitions,verbs=get;list;watch
155156

156157
func (r *AWSMachineReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error) {
157158
log := logger.FromContext(ctx)

0 commit comments

Comments
 (0)