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 Nov 24, 2023
1 parent 4b0260f commit fbbceb8
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 2 deletions.
72 changes: 71 additions & 1 deletion charts/theia-cloud-crds/templates/session-spec-resource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,80 @@ spec:
singular: session
scope: Namespaced
versions:
- name : v6beta
- name : v7beta
served: true
storage: true
# subresources describes the subresources for custom resources.
subresources:
# status enables the status subresource.
status: {}
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
name:
type: string
pattern: '^[a-z0-9A-Z-_]+$'
workspace:
type: string
appDefinition: # cached from workspace
type: string
pattern: '^[a-z0-9A-Z-_]+$'
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
required:
- id
required:
- name
- user
- appDefinition
status:
type: object
properties:
operatorStatus:
type: string
operatorMessage:
type: string
required:
- spec
- name : v6beta
served: true
storage: false
# subresources describes the subresources for custom resources.
subresources:
# status enables the status subresource.
status: {}
Expand Down
3 changes: 2 additions & 1 deletion charts/theia.cloud-base/templates/operator-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ rules:
- configmaps
- deployments
- leases
- secrets
verbs: ["list", "create", "watch", "get", "patch", "delete", "update"]


0 comments on commit fbbceb8

Please sign in to comment.