Skip to content

Commit

Permalink
Introduce concept of init actions to Theia Cloud #69
Browse files Browse the repository at this point in the history
  • Loading branch information
jfaltermeier committed May 16, 2023
1 parent 8bb2296 commit 7a66b78
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 1 deletion.
1 change: 1 addition & 0 deletions charts/theia.cloud-base/templates/operator-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ rules:
- services
- configmaps
- deployments
- secrets
verbs: ["list", "create", "watch", "get", "patch", "delete"]

{{- end }}
51 changes: 50 additions & 1 deletion charts/theia.cloud/crds/session-spec-resource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,58 @@ spec:
singular: session
scope: Namespaced
versions:
- name : v4beta
- name : v5beta
served: true
storage: true
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
name:
type: string
workspace:
type: string
appDefinition: # cached from workspace
type: string
user: # cached from workspace
type: string
url:
type: string
error:
type: string
sessionSecret:
type: string
lastActivity:
type: integer
envVars:
type: object
additionalProperties:
x-kubernetes-int-or-string: true
envVarsFromConfigMaps:
type: array
items:
type: string
envVarsFromSecrets:
type: array
items:
type: string
initOperations:
type: array
items:
type: object
properties:
id:
type: string
arguments:
type: array
items:
type: string
- name : v4beta
served: true
storage: false
schema:
openAPIV3Schema:
type: object
Expand Down

0 comments on commit 7a66b78

Please sign in to comment.