Skip to content

Commit

Permalink
Update: change apigroup for codeflare and dsp (opendatahub-io#552)
Browse files Browse the repository at this point in the history
- keep mcad.ibm.com because DSP still have it for a while

Signed-off-by: Wen Zhou <wenzhou@redhat.com>
  • Loading branch information
zdtsw authored Sep 22, 2023
1 parent 0b2bb98 commit 2a81649
Show file tree
Hide file tree
Showing 5 changed files with 123 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ spec:
metadata:
type: object
spec:
description: Defines the desired state of DataScienceCluster
description: DataScienceCluster defines the desired state of the cluster.
properties:
components:
description: Override and fine tune specific component configurations.
Expand Down
62 changes: 62 additions & 0 deletions bundle/manifests/opendatahub-operator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -559,14 +559,24 @@ spec:
- instascales
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- codeflare.codeflare.dev
resources:
- mcads
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- config.openshift.io
resources:
Expand Down Expand Up @@ -1508,6 +1518,58 @@ spec:
- list
- patch
- watch
- apiGroups:
- workload.codeflare.dev
resources:
- appwrappers
verbs:
- create
- delete
- deletecollection
- get
- list
- patch
- update
- watch
- apiGroups:
- workload.codeflare.dev
resources:
- appwrappers/finalizers
verbs:
- create
- delete
- deletecollection
- get
- list
- patch
- update
- watch
- apiGroups:
- workload.codeflare.dev
resources:
- appwrappers/status
verbs:
- create
- delete
- deletecollection
- get
- list
- patch
- update
- watch
- apiGroups:
- workload.codeflare.dev
resources:
- queuejobs
verbs:
- create
- delete
- deletecollection
- get
- list
- patch
- update
- watch
- apiGroups:
- authentication.k8s.io
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
metadata:
type: object
spec:
description: Defines the desired state of DataScienceCluster
description: DataScienceCluster defines the desired state of the cluster.
properties:
components:
description: Override and fine tune specific component configurations.
Expand Down
52 changes: 52 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1234,3 +1234,55 @@ rules:
- list
- patch
- watch
- apiGroups:
- workload.codeflare.dev
resources:
- appwrappers
verbs:
- create
- delete
- deletecollection
- get
- list
- patch
- update
- watch
- apiGroups:
- workload.codeflare.dev
resources:
- appwrappers/finalizers
verbs:
- create
- delete
- deletecollection
- get
- list
- patch
- update
- watch
- apiGroups:
- workload.codeflare.dev
resources:
- appwrappers/status
verbs:
- create
- delete
- deletecollection
- get
- list
- patch
- update
- watch
- apiGroups:
- workload.codeflare.dev
resources:
- queuejobs
verbs:
- create
- delete
- deletecollection
- get
- list
- patch
- update
- watch
7 changes: 7 additions & 0 deletions controllers/datasciencecluster/kubebuilder_rbac.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,15 @@ package datasciencecluster
// +kubebuilder:rbac:groups="monitoring.coreos.com",resources=prometheusrules,verbs=get;create;patch;delete
// +kubebuilder:rbac:groups="monitoring.coreos.com",resources=prometheuses,verbs=get;create;patch;delete


// TODO: cleanup when DSP do the switch
// +kubebuilder:rbac:groups="mcad.ibm.com",resources=appwrappers,verbs=create;delete;list;patch;get

// +kubebuilder:rbac:groups="workload.codeflare.dev",resources=appwrappers,verbs=create;delete;list;patch;get;deletecollection;update;watch
// +kubebuilder:rbac:groups="workload.codeflare.dev",resources=appwrappers/finalizers,verbs=create;delete;list;patch;get;deletecollection;update;watch
// +kubebuilder:rbac:groups="workload.codeflare.dev",resources=appwrappers/status,verbs=create;delete;list;patch;get;deletecollection;update;watch
// +kubebuilder:rbac:groups="workload.codeflare.dev",resources=queuejobs,verbs=create;delete;list;patch;get;deletecollection;update;watch

// +kubebuilder:rbac:groups="machinelearning.seldon.io",resources=seldondeployments,verbs=*

// +kubebuilder:rbac:groups="machine.openshift.io",resources=machinesets,verbs=list;patch;delete
Expand Down

0 comments on commit 2a81649

Please sign in to comment.