-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document naming conventions & Naming alignment (#368)
Contributed on behalf of STMicroelectronics Co-authored-by: Simon Graband <[email protected]> Co-authored-by: Lucas Koehler <[email protected]>
- Loading branch information
1 parent
8215bf1
commit 78b4b58
Showing
34 changed files
with
121 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -100,9 +100,9 @@ helm repo update | |
```bash | ||
helm install theia-cloud-base theia-cloud-remote/theia-cloud-base --set [email protected] | ||
|
||
helm install theia-cloud-crds theia-cloud-remote/theia-cloud-crds --namespace theiacloud --create-namespace | ||
helm install theia-cloud-crds theia-cloud-remote/theia-cloud-crds --namespace theia-cloud --create-namespace | ||
|
||
helm install theia-cloud theia-cloud-remote/theia-cloud --namespace theiacloud | ||
helm install theia-cloud theia-cloud-remote/theia-cloud --namespace theia-cloud | ||
``` | ||
|
||
### Install the current next version | ||
|
@@ -112,21 +112,21 @@ Simply add the `--devel` flag: | |
```bash | ||
helm install theia-cloud-base theia-cloud-remote/theia-cloud-base --set [email protected] --devel | ||
|
||
helm install theia-cloud-crds theia-cloud-remote/theia-cloud-crds --namespace theiacloud --create-namespace --devel | ||
helm install theia-cloud-crds theia-cloud-remote/theia-cloud-crds --namespace theia-cloud --create-namespace --devel | ||
|
||
helm install theia-cloud theia-cloud-remote/theia-cloud --namespace theiacloud --devel | ||
helm install theia-cloud theia-cloud-remote/theia-cloud --namespace theia-cloud --devel | ||
``` | ||
|
||
### Optional: switch to the newly created namespace | ||
|
||
```bash | ||
kubectl config set-context --current --namespace=theiacloud | ||
kubectl config set-context --current --namespace=theia-cloud | ||
``` | ||
|
||
### Uninstall | ||
|
||
```bash | ||
helm uninstall theia-cloud -n theiacloud | ||
helm uninstall theia-cloud -n theia-cloud | ||
``` | ||
|
||
### Getting started with | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+382 KB
demo/dockerfiles/demo-theia-monitor-vscode/theia-cloud-monitor-0.12.0-next.vsix
Binary file not shown.
Binary file removed
BIN
-382 KB
demo/dockerfiles/demo-theia-monitor-vscode/theiacloud-monitor-0.12.0-next.vsix
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,9 +76,9 @@ helm repo update | |
```bash | ||
helm install theia-cloud-base theia-cloud-remote/theia-cloud-base --set [email protected] | ||
|
||
helm install theia-cloud-crds theia-cloud-remote/theia-cloud-crds --namespace theiacloud --create-namespace | ||
helm install theia-cloud-crds theia-cloud-remote/theia-cloud-crds --namespace theia-cloud --create-namespace | ||
|
||
helm install theia-cloud theia-cloud-remote/theia-cloud --namespace theiacloud | ||
helm install theia-cloud theia-cloud-remote/theia-cloud --namespace theia-cloud | ||
``` | ||
|
||
### Install the current next version | ||
|
@@ -88,31 +88,31 @@ Simply add the `--devel` flag: | |
```bash | ||
helm install theia-cloud-base theia-cloud-remote/theia-cloud-base --set [email protected] --devel | ||
|
||
helm install theia-cloud-crds theia-cloud-remote/theia-cloud-crds --namespace theiacloud --create-namespace --devel | ||
helm install theia-cloud-crds theia-cloud-remote/theia-cloud-crds --namespace theia-cloud --create-namespace --devel | ||
|
||
helm install theia-cloud theia-cloud-remote/theia-cloud --namespace theiacloud --devel | ||
helm install theia-cloud theia-cloud-remote/theia-cloud --namespace theia-cloud --devel | ||
``` | ||
|
||
### Optional: switch to the newly created namespace | ||
|
||
```bash | ||
kubectl config set-context --current --namespace=theiacloud | ||
kubectl config set-context --current --namespace=theia-cloud | ||
``` | ||
|
||
### Trouble shooting | ||
|
||
Recreate tls secret for sessions: | ||
|
||
`kubectl delete secret ws-cert-secret -n theiacloud` | ||
`kubectl delete secret ws-cert-secret -n theia-cloud` | ||
|
||
## Check | ||
|
||
```bash | ||
helm get manifest theia-cloud -n theiacloud | ||
helm get manifest theia-cloud -n theia-cloud | ||
``` | ||
|
||
## Uninstall | ||
|
||
```bash | ||
helm uninstall theia-cloud -n theiacloud | ||
helm uninstall theia-cloud -n theia-cloud | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Naming Conventions | ||
|
||
The project name is **Theia Cloud** (with a space), which is a subproject of Eclipse Theia. | ||
|
||
Since various languages and use cases follow different naming conventions, we aim to align with these conventions as closely as possible. | ||
|
||
Below are guidelines for commonly used naming conventions specific to this project. | ||
|
||
## `theia.cloud` | ||
|
||
Use `theia.cloud` in hierarchical structures and identifiers. Examples include: | ||
|
||
- **Java package/jar names**: `org.eclipse.theia.cloud` | ||
- **Java system properties**: `-Dtheia.cloud.app.id=yourAppId` | ||
- **Kubernetes group names/metadata**: `theia.cloud`, `theia.cloud/v1beta9`, `sessions.theia.cloud` | ||
- **Theia command identifiers**: `theia.cloud.monitor.activity.report` | ||
|
||
## `TheiaCloud` / `theiaCloud` | ||
|
||
Use **PascalCase** or **camelCase** for Java/TypeScript class, method, and property names, such as `DefaultTheiaCloudOperatorLauncher` or `window.theiaCloudConfig`. | ||
|
||
This format is also appropriate in contexts where spaces are avoided for technical reasons, such as in **Keycloak Realm** names (e.g., `TheiaCloud`). | ||
|
||
## `theia-cloud` | ||
|
||
This format serves as a preferred technical abbreviation. Use it when no other conventions apply, including: | ||
|
||
- **NPM Package names** | ||
- **File names** | ||
- **k8s namespaces** | ||
|
||
## `THEIACLOUD` | ||
|
||
Use **all uppercase** with underscores for **environment variables**, such as `THEIACLOUD_SESSION_NAME`. | ||
|
||
We can't use `THEIA_CLOUD` because `THEIA_` env variables may get special treatment by Theia itself. | ||
|
||
## Theia Cloud | ||
|
||
In general documentation and free text, use the standard project name **Theia Cloud** (with a space). Avoid spaces in technical contexts. | ||
|
||
## `theia-cloud.io` | ||
|
||
For **Kubernetes labels**, use the project domain as a prefix to custom labels, such as `theia-cloud.io/workspace-name`. | ||
|
||
## Avoid `theiacloud` in Code | ||
|
||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.