Skip to content

Commit 7a66b78

Browse files
committed
Introduce concept of init actions to Theia Cloud #69
1 parent 8bb2296 commit 7a66b78

File tree

2 files changed

+51
-1
lines changed

2 files changed

+51
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ rules:
2323
- services
2424
- configmaps
2525
- deployments
26+
- secrets
2627
verbs: ["list", "create", "watch", "get", "patch", "delete"]
2728

2829
{{- end }}

charts/theia.cloud/crds/session-spec-resource.yaml

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,58 @@ spec:
1111
singular: session
1212
scope: Namespaced
1313
versions:
14-
- name : v4beta
14+
- name : v5beta
1515
served: true
1616
storage: true
17+
schema:
18+
openAPIV3Schema:
19+
type: object
20+
properties:
21+
spec:
22+
type: object
23+
properties:
24+
name:
25+
type: string
26+
workspace:
27+
type: string
28+
appDefinition: # cached from workspace
29+
type: string
30+
user: # cached from workspace
31+
type: string
32+
url:
33+
type: string
34+
error:
35+
type: string
36+
sessionSecret:
37+
type: string
38+
lastActivity:
39+
type: integer
40+
envVars:
41+
type: object
42+
additionalProperties:
43+
x-kubernetes-int-or-string: true
44+
envVarsFromConfigMaps:
45+
type: array
46+
items:
47+
type: string
48+
envVarsFromSecrets:
49+
type: array
50+
items:
51+
type: string
52+
initOperations:
53+
type: array
54+
items:
55+
type: object
56+
properties:
57+
id:
58+
type: string
59+
arguments:
60+
type: array
61+
items:
62+
type: string
63+
- name : v4beta
64+
served: true
65+
storage: false
1766
schema:
1867
openAPIV3Schema:
1968
type: object

0 commit comments

Comments
 (0)