diff --git a/charts/theia.cloud-base/templates/operator-role.yaml b/charts/theia.cloud-base/templates/operator-role.yaml index 1e7dd57..76ff68f 100644 --- a/charts/theia.cloud-base/templates/operator-role.yaml +++ b/charts/theia.cloud-base/templates/operator-role.yaml @@ -23,6 +23,7 @@ rules: - services - configmaps - deployments + - secrets verbs: ["list", "create", "watch", "get", "patch", "delete"] {{- end }} \ No newline at end of file diff --git a/charts/theia.cloud/crds/session-spec-resource.yaml b/charts/theia.cloud/crds/session-spec-resource.yaml index 31a36e7..f69f696 100644 --- a/charts/theia.cloud/crds/session-spec-resource.yaml +++ b/charts/theia.cloud/crds/session-spec-resource.yaml @@ -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