You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/Architecture.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
The Theia Cloud Operator listens for changes to custom resources inside the cluster. With those custom resources clients may trigger the creation/deletion/handling of workspaces and sessions. The Operator is responsible for handling all things that are related to the Kubernetes-Resources for workspaces and sessions. All access is authenticated via an Authenticator.
Use **PascalCase** or **camelCase** for Java/TypeScript class, method, and property names, such as `DefaultTheiaCloudOperatorLauncher` or `window.theiaCloudConfig`.
21
+
22
+
This format is also appropriate in contexts where spaces are avoided for technical reasons, such as in **Keycloak Realm** names (e.g., `TheiaCloud`).
23
+
24
+
## `theia-cloud`
25
+
26
+
This format serves as a preferred technical abbreviation. Use it when no other conventions apply, including:
27
+
28
+
-**NPM Package names**
29
+
-**File names**
30
+
31
+
## `THEIA_CLOUD`
32
+
33
+
Use **all uppercase** with underscores for **environment variables**, such as `THEIA_CLOUD_SESSION_NAME`.
34
+
35
+
## Theia Cloud
36
+
37
+
In general documentation and free text, use the standard project name, **Theia Cloud** (with a space). Avoid spaces in technical contexts.
38
+
39
+
## `theia-cloud.io`
40
+
41
+
For **Kubernetes labels**, use the project domain as a prefix to custom labels, such as `theia-cloud.io/workspace.name`.
42
+
43
+
## Avoid `theiacloud` in Code
44
+
45
+
Avoid using the project name without separators or spaces, especially without PascalCase or camelCase. This format is reserved for usernames, such as those on Docker or npm.
<y:NodeLabelalignment="center"autoSizePolicy="content"fontFamily="Dialog"fontSize="12"fontStyle="plain"hasBackgroundColor="false"hasLineColor="false"height="73.84375"horizontalTextPosition="center"iconTextGap="4"modelName="custom"textColor="#000000"verticalTextPosition="bottom"visible="true"width="846.208984375"x="4.0"xml:space="preserve"y="4.0">We may have different kinds of implementations of the handlers.
146
+
<y:NodeLabelalignment="center"autoSizePolicy="content"fontFamily="Dialog"fontSize="12"fontStyle="plain"hasBackgroundColor="false"hasLineColor="false"height="73.84375"horizontalTextPosition="center"iconTextGap="4"modelName="custom"textColor="#000000"verticalTextPosition="bottom"visible="true"width="826.38671875"x="4.0"xml:space="preserve"y="4.0">We may have different kinds of implementations of the handlers.
147
147
E.g. we might have handlers that start up unassigned pods already and assign the running pods to a user on session added (EagerStart)
148
148
Or we could do it Che-like and spin up the pod when a new session is added
<y:NodeLabelalignment="center"autoSizePolicy="content"fontFamily="Dialog"fontSize="13"fontStyle="plain"hasBackgroundColor="false"hasLineColor="false"height="34.265625"horizontalTextPosition="center"iconTextGap="4"modelName="custom"textColor="#000000"verticalTextPosition="bottom"visible="true"width="298.3916015625"x="5.80419921875"xml:space="preserve"y="23.3671875">Listens for app definition/sessions changes
177
+
<y:NodeLabelalignment="center"autoSizePolicy="content"fontFamily="Dialog"fontSize="13"fontStyle="plain"hasBackgroundColor="false"hasLineColor="false"height="34.265625"horizontalTextPosition="center"iconTextGap="4"modelName="custom"textColor="#000000"verticalTextPosition="bottom"visible="true"width="283.6904296875"x="13.15478515625"xml:space="preserve"y="23.3671875">Listens for app definition/sessions changes
178
178
and delegates to handlers<y:LabelModel><y:SmartNodeLabelModeldistance="4.0"/></y:LabelModel><y:ModelParameter><y:SmartNodeLabelModelParameterlabelRatioX="0.0"labelRatioY="0.0"nodeRatioX="0.0"nodeRatioY="0.0"offsetX="0.0"offsetY="0.0"upX="0.0"upY="-1.0"/></y:ModelParameter></y:NodeLabel>
Copy file name to clipboardExpand all lines: java/operator/README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ To debug the Default Theia Cloud Operator, follow these steps:
36
36
minikube ip
37
37
```
38
38
39
-
_Note_: Ensure your local `kubectl` is set to the correct namespace (e.g., `theiacloud`), as the debuggable operator will interact with your local Kubernetes cluster.
39
+
_Note_: Ensure your local `kubectl` is set to the correct namespace (e.g., `theia-cloud`), as the debuggable operator will interact with your local Kubernetes cluster.
Copy file name to clipboardExpand all lines: java/operator/org.eclipse.theia.cloud.operator/src/main/java/org/eclipse/theia/cloud/operator/handler/appdef/EagerStartAppDefinitionAddedHandler.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ public class EagerStartAppDefinitionAddedHandler implements AppDefinitionHandler
0 commit comments