Skip to content

Commit ae8db82

Browse files
Allow plrl-console-reader role to be overridden (#722)
This should be something users can tweak, simple retemplating enables it
1 parent e00f486 commit ae8db82

2 files changed

Lines changed: 21 additions & 18 deletions

File tree

charts/deployment-operator/templates/rbac.yaml

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,7 @@ metadata:
2020
labels:
2121
{{ include "deployment-operator.labels" . | indent 4 }}
2222
rules:
23-
- apiGroups: ["apps"]
24-
resources: ["deployments", "daemonsets", "statefulsets"]
25-
verbs: ["get", "list", "watch", "update", "patch"]
26-
- apiGroups: ["", "*"]
27-
resources: ["*"]
28-
verbs: ["get", "list"]
29-
- apiGroups: [""]
30-
resources: ["pods"]
31-
verbs: ["delete"]
32-
- apiGroups: ["deployments.plural.sh"]
33-
resources: ["customhealths", "kubecostextractors", "agentruntimes", "agentruns"]
34-
verbs: ["create","delete","get", "list", "patch", "update", "watch"]
35-
- apiGroups: ["deployments.plural.sh"]
36-
resources: ["customhealths/finalizers", "kubecostextractors/finalizers", "agentruntimes/finalizers", "agentruns/finalizers"]
37-
verbs: ["update"]
38-
- apiGroups: ["deployments.plural.sh"]
39-
resources: ["customhealths/status", "kubecostextractors/status", "agentruntimes/status", "agentruns/status"]
40-
verbs: ["get", "patch", "update", "watch"]
23+
{{ toYaml .Values.consoleReaderPolicy }}
4124
---
4225
apiVersion: rbac.authorization.k8s.io/v1
4326
kind: ClusterRoleBinding

charts/deployment-operator/values.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,26 @@ affinity: {}
132132
global:
133133
registry: ~
134134

135+
consoleReaderPolicy:
136+
- apiGroups: ["apps"]
137+
resources: ["deployments", "daemonsets", "statefulsets"]
138+
verbs: ["get", "list", "watch", "update", "patch"]
139+
- apiGroups: ["", "*"]
140+
resources: ["*"]
141+
verbs: ["get", "list"]
142+
- apiGroups: [""]
143+
resources: ["pods"]
144+
verbs: ["delete"]
145+
- apiGroups: ["deployments.plural.sh"]
146+
resources: ["customhealths", "kubecostextractors", "agentruntimes", "agentruns"]
147+
verbs: ["create","delete","get", "list", "patch", "update", "watch"]
148+
- apiGroups: ["deployments.plural.sh"]
149+
resources: ["customhealths/finalizers", "kubecostextractors/finalizers", "agentruntimes/finalizers", "agentruns/finalizers"]
150+
verbs: ["update"]
151+
- apiGroups: ["deployments.plural.sh"]
152+
resources: ["customhealths/status", "kubecostextractors/status", "agentruntimes/status", "agentruns/status"]
153+
verbs: ["get", "patch", "update", "watch"]
154+
135155
agentk:
136156
image:
137157
repository: ghcr.io/pluralsh/agentk

0 commit comments

Comments
 (0)