Skip to content

Commit

Permalink
add rbac permission for configmap
Browse files Browse the repository at this point in the history
Signed-off-by: Adem Baccara <71262172+Adembc@users.noreply.github.com>
  • Loading branch information
Adembc committed Jul 6, 2024
1 parent 08bd18e commit 79970d8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
17 changes: 17 additions & 0 deletions workspaces/controller/config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,24 @@ rules:
- create
- delete
- get
- list
- patch
- update
- apiGroups:
- ""
resources:
- configmaps
verbs:
- get
- list
- apiGroups:
- ""
resources:
- pods
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
Expand All @@ -22,6 +38,7 @@ rules:
- create
- delete
- get
- list
- patch
- update
- apiGroups:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,10 @@ type WorkspaceReconciler struct {
//+kubebuilder:rbac:groups=kubeflow.org,resources=workspacekinds,verbs=list;watch
//+kubebuilder:rbac:groups=kubeflow.org,resources=workspaces/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=kubeflow.org,resources=workspaces/finalizers,verbs=update
// +kubebuilder:rbac:groups=apps,resources=statefulsets,verbs=get;update;patch;create;delete
// +kubebuilder:rbac:groups=core,resources=services,verbs=get;update;patch;create;delete
// +kubebuilder:rbac:groups=apps,resources=statefulsets,verbs=list;get;update;patch;create;delete
// +kubebuilder:rbac:groups=core,resources=pods,verbs=get;list;watch
// +kubebuilder:rbac:groups=core,resources=configmaps,verbs=get;list
// +kubebuilder:rbac:groups=core,resources=services,verbs=list;get;update;patch;create;delete
// +kubebuilder:rbac:groups="networking.istio.io",resources=virtualservices,verbs=get;update;patch;create;delete

func (r *WorkspaceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
Expand Down

0 comments on commit 79970d8

Please sign in to comment.