Skip to content

Commit 60e8e40

Browse files
committed
Incorporated Gabe's comments
1 parent a0da48b commit 60e8e40

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

modules/openshift-ai-connector-for-rhdh/proc-setting-up-openshift-ai-connector-for-rhdh-with-rhoai.adoc

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ rules:
105105
- apiGroups: [""]
106106
resources: ["configmaps"]
107107
verbs: ["get", "list", "watch", "create", "update", "patch"]
108+
---
109+
apiVersion: rbac.authorization.k8s.io/v1
108110
kind: RoleBinding
109111
metadata:
110112
name: rhdh-rhoai-connector
@@ -126,16 +128,18 @@ subjects:
126128
apiVersion: rbac.authorization.k8s.io/v1
127129
kind: RoleBinding
128130
metadata:
129-
name: rhdh-rhoai-connector
130-
namespace: ai-rhdh
131+
# if using ODH then change rhoai to odh in the name and namespace here
132+
name: rhdh-rhoai-dashboard-permissions
133+
# namespace: odh-model-registries
134+
namespace: rhoai-model-registries
131135
roleRef:
132136
apiGroup: rbac.authorization.k8s.io
133137
kind: Role
134-
name: rhdh-rhoai-connector
138+
name: registry-user-modelregistry-public
135139
subjects:
136-
- kind: ServiceAccount
137-
name: rhdh-rhoai-connector
138-
namespace: ai-rhdh
140+
- apiGroup: rbac.authorization.k8s.io
141+
kind: Group
142+
name: system:serviceaccounts:ai-rhdh
139143
----
140144
** Secret (`rhdh-rhoai-connector-token`) of type `kubernetes.io/service-account-token` that goes along with the `rhdh-rhoai-connector` `ServiceAccount`.
141145
+

0 commit comments

Comments
 (0)