Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #5 from dfds/feature/add-cfg-pkg-role-rolebinding
Browse files Browse the repository at this point in the history
kubebuilder annotations for role and rolebindings
  • Loading branch information
rifisdfds authored Mar 11, 2022
2 parents f013fd2 + c12434a commit f1f5c80
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
52 changes: 52 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,55 @@ rules:
- get
- patch
- update
- apiGroups:
- rbac
resources:
- rolebindings
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- rbac
resources:
- rolebindings/finalizers
verbs:
- update
- apiGroups:
- rbac
resources:
- rolebindings/status
verbs:
- get
- patch
- update
- apiGroups:
- rbac
resources:
- roles
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- rbac
resources:
- roles/finalizers
verbs:
- update
- apiGroups:
- rbac
resources:
- roles/status
verbs:
- get
- patch
- update
6 changes: 6 additions & 0 deletions controllers/namespace_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ type NamespaceReconciler struct {
//+kubebuilder:rbac:groups=rbac,resources=clusterrolebindings,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=rbac,resources=clusterrolebindings/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=rbac,resources=clusterrolebindings/finalizers,verbs=update
//+kubebuilder:rbac:groups=rbac,resources=roles,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=rbac,resources=roles/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=rbac,resources=roles/finalizers,verbs=update
//+kubebuilder:rbac:groups=rbac,resources=rolebindings,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=rbac,resources=rolebindings/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=rbac,resources=rolebindings/finalizers,verbs=update
//+kubebuilder:rbac:groups=aws.crossplane.io,resources=providerconfigs,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=aws.crossplane.io,resources=providerconfigs/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=aws.crossplane.io,resources=providerconfigs/finalizers,verbs=update
Expand Down

0 comments on commit f1f5c80

Please sign in to comment.