Skip to content

Commit

Permalink
Add RBAC annotations to Barbican controller
Browse files Browse the repository at this point in the history
This patch adds the missing RBAC annotations to the Barbican controller,
and also updates the role.yaml file to use the file generated by make
manifests.
  • Loading branch information
dmendiza authored and xek committed Nov 9, 2023
1 parent ae45893 commit 8caeec2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
18 changes: 9 additions & 9 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ rules:
- apiGroups:
- barbican.openstack.org
resources:
- barbicans
- barbicankeystonelisteners
verbs:
- create
- delete
Expand All @@ -68,21 +68,21 @@ rules:
- apiGroups:
- barbican.openstack.org
resources:
- barbicans/finalizers
- barbicankeystonelisteners/finalizers
verbs:
- update
- apiGroups:
- barbican.openstack.org
resources:
- barbicans/status
- barbicankeystonelisteners/status
verbs:
- get
- patch
- update
- apiGroups:
- barbican.openstack.org
resources:
- barbicanworkers
- barbicans
verbs:
- create
- delete
Expand All @@ -94,21 +94,21 @@ rules:
- apiGroups:
- barbican.openstack.org
resources:
- barbicanworkers/finalizers
- barbicans/finalizers
verbs:
- update
- apiGroups:
- barbican.openstack.org
resources:
- barbicanworkers/status
- barbicans/status
verbs:
- get
- patch
- update
- apiGroups:
- barbican.openstack.org
resources:
- barbicankeystonelisteners
- barbicanworkers
verbs:
- create
- delete
Expand All @@ -120,13 +120,13 @@ rules:
- apiGroups:
- barbican.openstack.org
resources:
- barbicankeystonelisteners/finalizers
- barbicanworkers/finalizers
verbs:
- update
- apiGroups:
- barbican.openstack.org
resources:
- barbicankeystonelisteners/status
- barbicanworkers/status
verbs:
- get
- patch
Expand Down
9 changes: 9 additions & 0 deletions controllers/barbican_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@ type BarbicanReconciler struct {
//+kubebuilder:rbac:groups=barbican.openstack.org,resources=barbicans,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=barbican.openstack.org,resources=barbicans/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=barbican.openstack.org,resources=barbicans/finalizers,verbs=update
//+kubebuilder:rbac:groups=barbican.openstack.org,resources=barbicanapis,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=barbican.openstack.org,resources=barbicanapis/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=barbican.openstack.org,resources=barbicanapis/finalizers,verbs=update
//+kubebuilder:rbac:groups=barbican.openstack.org,resources=barbicanworkers,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=barbican.openstack.org,resources=barbicanworkers/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=barbican.openstack.org,resources=barbicanworkers/finalizers,verbs=update
//+kubebuilder:rbac:groups=barbican.openstack.org,resources=barbicankeystonelisteners,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=barbican.openstack.org,resources=barbicankeystonelisteners/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=barbican.openstack.org,resources=barbicankeystonelisteners/finalizers,verbs=update
//+kubebuilder:rbac:groups=core,resources=secrets,verbs=get;list;watch;create;update;patch;delete;
//+kubebuilder:rbac:groups=core,resources=configmaps,verbs=get;list;watch;create;update;patch;delete;
//+kubebuilder:rbac:groups=core,resources=services,verbs=get;list;watch;create;update;patch;delete;
Expand Down

0 comments on commit 8caeec2

Please sign in to comment.