Skip to content

Commit 3903368

Browse files
Extend operator and service K8S permissions for eager start handling (#86)
Allow operator to edit pods to add annotations for eager start. This is necessary to update the OAuth proxy config map in time. Allow service to read Deployments and ReplicaSets to trace owner refs. Read access to Deployments and ReplicaSets allows the service to trace owner references from Pods over ReplicaSets and Deployments to the Pod's Session. This is required to find a Pod's corresponding Session (and vice-versa) in eager start mode. This is necessary because the Pod's ENV cannot contain the session name in eager start mode.
1 parent 8ff00bc commit 3903368

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

charts/theia-cloud-base/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 1.1.0-next.0
18+
version: 1.1.0-next.1
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/theia-cloud-base/templates/operator-role.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ rules:
2525
- configmaps
2626
- deployments
2727
- leases
28-
verbs: ["list", "create", "watch", "get", "patch", "delete", "update"]
28+
- pods
29+
verbs: ["list", "create", "watch", "get", "edit", "patch", "delete", "update"]

charts/theia-cloud-base/templates/service-role.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ rules:
1616
verbs: ["list", "create", "watch", "get", "patch", "delete"]
1717
- apiGroups:
1818
- ""
19+
- apps
1920
- metrics.k8s.io
2021
resources:
22+
- deployments
23+
- replicasets
2124
- pods
2225
verbs: ["list", "get", "watch"]

0 commit comments

Comments
 (0)