Skip to content

Commit

Permalink
fix: for upgrade case we will need update permission on buildconfig t…
Browse files Browse the repository at this point in the history
…o revmoew ownerref from dsc (opendatahub-io#1567)

Signed-off-by: Wen Zhou <[email protected]>
  • Loading branch information
zdtsw authored Jan 27, 2025
1 parent a00aa61 commit 7b4dfc2
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
13 changes: 12 additions & 1 deletion bundle/manifests/opendatahub-operator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ metadata:
categories: AI/Machine Learning, Big Data
certified: "False"
containerImage: quay.io/opendatahub/opendatahub-operator:v2.23.1
createdAt: "2025-01-23T10:07:37Z"
createdAt: "2025-01-27T10:42:46Z"
olm.skipRange: '>=1.0.0 <2.23.1'
operators.operatorframework.io/builder: operator-sdk-v1.31.0
operators.operatorframework.io/internal-objects: '["featuretrackers.features.opendatahub.io",
Expand Down Expand Up @@ -419,6 +419,17 @@ spec:
- build.openshift.io
resources:
- buildconfigs
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- build.openshift.io
resources:
- buildconfigs/instantiate
- builds
verbs:
Expand Down
11 changes: 11 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,17 @@ rules:
- build.openshift.io
resources:
- buildconfigs
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- build.openshift.io
resources:
- buildconfigs/instantiate
- builds
verbs:
Expand Down
2 changes: 1 addition & 1 deletion controllers/datasciencecluster/kubebuilder_rbac.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ package datasciencecluster
// OpenVino still need buildconfig
// +kubebuilder:rbac:groups="build.openshift.io",resources=builds,verbs=create;patch;delete;list;watch;get
// +kubebuilder:rbac:groups="build.openshift.io",resources=buildconfigs/instantiate,verbs=create;patch;delete;get;list;watch
// +kubebuilder:rbac:groups="build.openshift.io",resources=buildconfigs,verbs=list;watch;create;patch;delete;get
// +kubebuilder:rbac:groups="build.openshift.io",resources=buildconfigs,verbs=list;watch;create;patch;delete;get;update

// DataSciencePipelines
// +kubebuilder:rbac:groups=components.platform.opendatahub.io,resources=datasciencepipelines,verbs=get;list;watch;create;update;patch;delete
Expand Down

0 comments on commit 7b4dfc2

Please sign in to comment.