Skip to content

Commit

Permalink
Merge pull request #195 from DharmitD/mcad-roles
Browse files Browse the repository at this point in the history
Add RBAC rules for mcad and ray roles
  • Loading branch information
openshift-merge-robot authored Jul 5, 2023
2 parents 70eab9e + b2a344a commit 543be92
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 22 deletions.
44 changes: 22 additions & 22 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,16 @@ rules:
- seldondeployments
verbs:
- '*'
- apiGroups:
- mcad.ibm.com
resources:
- appwrappers
verbs:
- create
- delete
- get
- list
- patch
- apiGroups:
- monitoring.coreos.com
resources:
Expand All @@ -178,6 +188,18 @@ rules:
- patch
- update
- watch
- apiGroups:
- ray.io
resources:
- rayclusters
- rayjobs
- rayservices
verbs:
- create
- delete
- get
- list
- patch
- apiGroups:
- rbac.authorization.k8s.io
resources:
Expand Down Expand Up @@ -229,25 +251,3 @@ rules:
- '*'
verbs:
- '*'
- apiGroups:
- mcad.ibm.com
resources:
- appwrappers
verbs:
- create
- get
- list
- patch
- delete
- apiGroups:
- ray.io
resources:
- rayclusters
- rayjobs
- rayservices
verbs:
- create
- get
- list
- patch
- delete
2 changes: 2 additions & 0 deletions controllers/dspipeline_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ func (r *DSPAReconciler) buildCondition(conditionType string, dspa *dspav1alpha1
//+kubebuilder:rbac:groups=machinelearning.seldon.io,resources=seldondeployments,verbs=*
//+kubebuilder:rbac:groups=tekton.dev,resources=*,verbs=*
//+kubebuilder:rbac:groups=custom.tekton.dev,resources=pipelineloops,verbs=*
//+kubebuilder:rbac:groups=mcad.ibm.com,resources=appwrappers,verbs=create;get;list;patch;delete
//+kubebuilder:rbac:groups=ray.io,resources=rayclusters;rayjobs;rayservices,verbs=create;get;list;patch;delete
//+kubebuilder:rbac:groups=authorization.k8s.io,resources=subjectaccessreviews,verbs=create
//+kubebuilder:rbac:groups=authentication.k8s.io,resources=tokenreviews,verbs=create
//+kubebuilder:rbac:groups=image.openshift.io,resources=imagestreamtags,verbs=get
Expand Down

0 comments on commit 543be92

Please sign in to comment.