Skip to content

Commit a7a9644

Browse files
authored
fix: updating CRD names; including llds editor/viewer roles (#137)
Adds a reference to the config/rbac/llsd_editor_role.yaml and config/rbac/llsd_viewer_role.yaml files to config/rbac/kustomization.yaml so the ClusterRoles get created upon installation. Fixes: RHAIENG-496 Approved-by: leseb
1 parent e2cc886 commit a7a9644

File tree

5 files changed

+86
-28
lines changed

5 files changed

+86
-28
lines changed

config/rbac/kustomization.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ resources:
1919
- auth_proxy_role.yaml
2020
- auth_proxy_role_binding.yaml
2121
- auth_proxy_client_clusterrole.yaml
22+
- llsd_viewer_role.yaml
23+
- llsd_editor_role.yaml

config/rbac/llamastack_viewer_role.yaml

Lines changed: 0 additions & 20 deletions
This file was deleted.

config/rbac/llsd_editor_role.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# permissions for end users to edit LlamaStackDistributions.
2+
apiVersion: rbac.authorization.k8s.io/v1
3+
kind: ClusterRole
4+
metadata:
5+
name: llsd-editor-role
6+
labels:
7+
rbac.authorization.k8s.io/aggregate-to-edit: "true"
8+
rbac.authorization.k8s.io/aggregate-to-admin: "true"
9+
rules:
10+
- apiGroups:
11+
- llamastack.io
12+
resources:
13+
- llamastackdistributions
14+
verbs:
15+
- create
16+
- delete
17+
- get
18+
- list
19+
- patch
20+
- update
21+
- watch
22+
- apiGroups:
23+
- llamastack.io
24+
resources:
25+
- llamastackdistributions/status
26+
verbs:
27+
- get
Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,22 @@
1-
# permissions for end users to edit llamastacks.
1+
# permissions for end users to view LlamaStackDistributions.
22
apiVersion: rbac.authorization.k8s.io/v1
33
kind: ClusterRole
44
metadata:
5-
name: llamastack-editor-role
5+
name: llsd-viewer-role
6+
labels:
7+
rbac.authorization.k8s.io/aggregate-to-view: "true"
68
rules:
79
- apiGroups:
810
- llamastack.io
911
resources:
10-
- llamastacks
12+
- llamastackdistributions
1113
verbs:
12-
- create
13-
- delete
1414
- get
1515
- list
16-
- patch
17-
- update
1816
- watch
1917
- apiGroups:
2018
- llamastack.io
2119
resources:
22-
- llamastacks/status
20+
- llamastackdistributions/status
2321
verbs:
2422
- get

release/operator.yaml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2265,6 +2265,57 @@ rules:
22652265
---
22662266
apiVersion: rbac.authorization.k8s.io/v1
22672267
kind: ClusterRole
2268+
metadata:
2269+
labels:
2270+
app.kubernetes.io/name: llama-stack-k8s-operator
2271+
rbac.authorization.k8s.io/aggregate-to-admin: "true"
2272+
rbac.authorization.k8s.io/aggregate-to-edit: "true"
2273+
name: llama-stack-k8s-operator-llsd-editor-role
2274+
rules:
2275+
- apiGroups:
2276+
- llamastack.io
2277+
resources:
2278+
- llamastackdistributions
2279+
verbs:
2280+
- create
2281+
- delete
2282+
- get
2283+
- list
2284+
- patch
2285+
- update
2286+
- watch
2287+
- apiGroups:
2288+
- llamastack.io
2289+
resources:
2290+
- llamastackdistributions/status
2291+
verbs:
2292+
- get
2293+
---
2294+
apiVersion: rbac.authorization.k8s.io/v1
2295+
kind: ClusterRole
2296+
metadata:
2297+
labels:
2298+
app.kubernetes.io/name: llama-stack-k8s-operator
2299+
rbac.authorization.k8s.io/aggregate-to-view: "true"
2300+
name: llama-stack-k8s-operator-llsd-viewer-role
2301+
rules:
2302+
- apiGroups:
2303+
- llamastack.io
2304+
resources:
2305+
- llamastackdistributions
2306+
verbs:
2307+
- get
2308+
- list
2309+
- watch
2310+
- apiGroups:
2311+
- llamastack.io
2312+
resources:
2313+
- llamastackdistributions/status
2314+
verbs:
2315+
- get
2316+
---
2317+
apiVersion: rbac.authorization.k8s.io/v1
2318+
kind: ClusterRole
22682319
metadata:
22692320
labels:
22702321
app.kubernetes.io/name: llama-stack-k8s-operator

0 commit comments

Comments
 (0)