Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce concept of init actions to Theia Cloud #26

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"]