Skip to content

Commit

Permalink
chore: remove trusty RBAC, fix indentatin for serving in "init-resour…
Browse files Browse the repository at this point in the history
…ce" (red-hat-data-services#220)

Signed-off-by: Wen Zhou <[email protected]>
  • Loading branch information
zdtsw authored Mar 15, 2024
1 parent 5b7153b commit 6808394
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 65 deletions.
26 changes: 0 additions & 26 deletions bundle/manifests/rhods-operator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1670,32 +1670,6 @@ spec:
- templates
verbs:
- '*'
- apiGroups:
- trustyai.opendatahub.io
resources:
- trustyaiservices
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- trustyai.opendatahub.io
resources:
- trustyaiservices/finalizers
verbs:
- update
- apiGroups:
- trustyai.opendatahub.io
resources:
- trustyaiservices/status
verbs:
- get
- patch
- update
- apiGroups:
- user.openshift.io
resources:
Expand Down
18 changes: 9 additions & 9 deletions config/manifests/bases/rhods-operator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ metadata:
},
"kserve": {
"managementState": "Managed",
"serving": {
"ingressGateway": {
"certificate": {
"type": "SelfSigned"
}
},
"managementState": "Managed",
"name": "knative-serving"
}
"serving": {
"ingressGateway": {
"certificate": {
"type": "SelfSigned"
}
},
"managementState": "Managed",
"name": "knative-serving"
}
},
"kueue": {
"managementState": "Removed"
Expand Down
26 changes: 0 additions & 26 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1428,32 +1428,6 @@ rules:
- templates
verbs:
- '*'
- apiGroups:
- trustyai.opendatahub.io
resources:
- trustyaiservices
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- trustyai.opendatahub.io
resources:
- trustyaiservices/finalizers
verbs:
- update
- apiGroups:
- trustyai.opendatahub.io
resources:
- trustyaiservices/status
verbs:
- get
- patch
- update
- apiGroups:
- user.openshift.io
resources:
Expand Down
4 changes: 0 additions & 4 deletions controllers/datasciencecluster/kubebuilder_rbac.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,6 @@ package datasciencecluster
// +kubebuilder:rbac:groups="monitoring.coreos.com",resources=probes,verbs=get;create;patch;delete;deletecollection
// +kubebuilder:rbac:groups="monitoring.coreos.com",resources=prometheusrules,verbs=get;create;patch;delete;deletecollection

//+kubebuilder:rbac:groups=trustyai.opendatahub.io,resources=trustyaiservices,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=trustyai.opendatahub.io,resources=trustyaiservices/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=trustyai.opendatahub.io,resources=trustyaiservices/finalizers,verbs=update

// +kubebuilder:rbac:groups="monitoring.coreos.com",resources=prometheuses/finalizers,verbs=get;create;patch;delete;deletecollection
// +kubebuilder:rbac:groups="monitoring.coreos.com",resources=prometheuses/status,verbs=get;create;patch;delete;deletecollection

Expand Down

0 comments on commit 6808394

Please sign in to comment.