forked from opendatahub-io/model-registry-operator
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add manifests for odh extras resources for editor and viewer ro…
…le, part of fix for RHOAIENG-5112 (opendatahub-io#102) * feat: add manifests for odh extras resources for editor and viewer role, part of fix for RHOAIENG-5112 * fix: commented app.kubernetes.io/part-of label in mr roles as it will be set by odh operator instead
- Loading branch information
Showing
3 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
# Adds odh namespace to all resources. | ||
namespace: opendatahub | ||
|
||
# Extra model registry resources for ODH operator | ||
resources: | ||
- modelregistry_editor_role.yaml | ||
- modelregistry_viewer_role.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# permissions for end users to edit modelregistries. | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: clusterrole | ||
app.kubernetes.io/instance: modelregistry-editor-role | ||
app.kubernetes.io/component: rbac | ||
app.kubernetes.io/created-by: model-registry-operator | ||
# set by odh operator | ||
# app.kubernetes.io/part-of: model-registry-operator | ||
app.kubernetes.io/managed-by: kustomize | ||
name: modelregistry-editor-role | ||
rules: | ||
- apiGroups: | ||
- modelregistry.opendatahub.io | ||
resources: | ||
- modelregistries | ||
verbs: | ||
- create | ||
- delete | ||
- get | ||
- list | ||
- patch | ||
- update | ||
- watch | ||
- apiGroups: | ||
- modelregistry.opendatahub.io | ||
resources: | ||
- modelregistries/status | ||
verbs: | ||
- get |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# permissions for end users to view modelregistries. | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: clusterrole | ||
app.kubernetes.io/instance: modelregistry-viewer-role | ||
app.kubernetes.io/component: rbac | ||
app.kubernetes.io/created-by: model-registry-operator | ||
# set by odh operator | ||
# app.kubernetes.io/part-of: model-registry-operator | ||
app.kubernetes.io/managed-by: kustomize | ||
name: modelregistry-viewer-role | ||
rules: | ||
- apiGroups: | ||
- modelregistry.opendatahub.io | ||
resources: | ||
- modelregistries | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- modelregistry.opendatahub.io | ||
resources: | ||
- modelregistries/status | ||
verbs: | ||
- get |