Skip to content

Commit

Permalink
Add operator values to configure storage class and amount
Browse files Browse the repository at this point in the history
- Add values to configure persistent workspace volumes:
  - `operator.storageClassName` for the storage class available on the cluster
  - `operator.requestedStorage` for the amount of requested storage space
- Adapt doc for new MINIKUBE cloud provider and removed GKE

Part of eclipse-theia/theia-cloud#92

Contributed on behalf of STMicroelectronics

Signed-off-by: Lucas Koehler <lkoehler@eclipsesource.com>
  • Loading branch information
lucas-koehler authored and jfaltermeier committed Mar 8, 2023
1 parent a36c6f5 commit 045cb98
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
4 changes: 4 additions & 0 deletions charts/theia.cloud/templates/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ spec:
- "--instancesPath"
- "{{ tpl (.Values.hosts.paths.instance | toString) . }}"
{{- end }}
- "--storageClassName"
- "{{ tpl (.Values.operator.storageClassName | toString) . }}"
- "--requestedStorage"
- "{{ tpl (.Values.operator.requestedStorage | toString) . }}"
{{- if .Values.monitor.enable }}
- "--enableMonitor"
{{- if .Values.monitor.activityTracker.enable }}
Expand Down
16 changes: 13 additions & 3 deletions charts/theia.cloud/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ operator:
# Currently only false is fully supported.
eagerStart: false

# Select your cloude provider. Possible values:
# - K8S Plain Kubernetes
# - GKE Google Kubernetes Engine
# Select your cloud provider. Possible values:
# - K8S Plain Kubernetes
# - MINIKUBE Local deployment on Minikube
cloudProvider: "K8S"

# Whether Theia Cloud shall limit network speed. This might not be fully supported
Expand All @@ -172,6 +172,16 @@ operator:
# Set the number of active sessions a single user can launch
sessionsPerUser: "1"

# The name of the storage class for persistent volume claims for workspaces.
# This storage class must be present on the cluster.
# Most cloud providers offer a default storage class without additional configuration.
storageClassName: "default"

# The amount of requested storage for each persistent volume claim (PVC) for workspaces.
# This is directly passed to created PVCs and must be a valid Kubernetes quantity.
# See https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/
requestedStorage: "250Mi"

# Values of the Theia.cloud REST service
service:
# The image to use
Expand Down

0 comments on commit 045cb98

Please sign in to comment.