From e0808f07b5832ccba70a01a854a6f4dbe958371c Mon Sep 17 00:00:00 2001 From: vitaliy-guliy Date: Mon, 13 Jan 2025 12:12:04 +0000 Subject: [PATCH 1/5] feat: add che-code-server editor to enable workspace remote access Signed-off-by: vitaliy-guliy --- editors-definitions/che-code-server-next.yaml | 130 ++++++++++++++++++ 1 file changed, 130 insertions(+) create mode 100644 editors-definitions/che-code-server-next.yaml diff --git a/editors-definitions/che-code-server-next.yaml b/editors-definitions/che-code-server-next.yaml new file mode 100644 index 0000000000..eb3fd6edc9 --- /dev/null +++ b/editors-definitions/che-code-server-next.yaml @@ -0,0 +1,130 @@ +# +# Copyright (c) 2025 Red Hat, Inc. +# This program and the accompanying materials are made +# available under the terms of the Eclipse Public License 2.0 +# which is available at https://www.eclipse.org/legal/epl-2.0/ +# +# SPDX-License-Identifier: EPL-2.0 +# +# Contributors: +# Red Hat, Inc. - initial API and implementation +# + +schemaVersion: 2.2.2 +metadata: + name: che-code-server + displayName: Visual Studio Code Server + description: Visual Studio Code server for Eclipse Che - next + tags: + - Tech-Preview + - CLI + - vscode + attributes: + publisher: che-incubator + version: next + provider: Provided by [Microsoft](https://www.microsoft.com/) under [License](https://code.visualstudio.com/License) + title: Visual Studio Code server for Eclipse Che - next + # repository: https://github.com/che-incubator/che-code-server + repository: https://github.com/vitaliy-guliy/che-code-server + firstPublicationDate: '2025-31-01' + iconMediatype: image/svg+xml + iconData: | + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +commands: + - id: inject-editor + apply: + component: editor-injector + - id: start-che-code-server + exec: + component: editor-runtime + commandLine: nohup /che-code-server/entrypoint-volume.sh > /che-code-server/entrypoint-volume.log + 2>&1 & + +events: + preStart: + - inject-editor + postStart: + - start-che-code-server + +components: + - name: che-code-server + volume: {} + - name: editor-injector + container: + # image: quay.io/che-incubator/che-code-server:next + image: quay.io/vgulyy/che-code-server:next + command: + - /entrypoint-init-container.sh + volumeMounts: + - name: che-code-server + path: /che-code-server + memoryLimit: 256Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m + - name: editor-runtime + container: + image: quay.io/devfile/universal-developer-image:latest + memoryLimit: 6144Mi + memoryRequest: 2048Mi + cpuLimit: 2000m + cpuRequest: 1500m + volumeMounts: + - name: che-code-server + path: /che-code-server + endpoints: + - name: che-code-server + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 3400 + exposure: public + secure: true + protocol: https + attributes: + app.kubernetes.io/component: editor-runtime + app.kubernetes.io/part-of: che-code-server.eclipse.org + controller.devfile.io/container-contribution: true \ No newline at end of file From 96cf03cfd8dbc2f74c85c88f7366464e657b48d1 Mon Sep 17 00:00:00 2001 From: vitaliy-guliy Date: Thu, 30 Jan 2025 17:52:40 +0000 Subject: [PATCH 2/5] feat: add che-code-server editor to enable workspace remote access Signed-off-by: vitaliy-guliy --- editors-definitions/che-code-server-next.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/editors-definitions/che-code-server-next.yaml b/editors-definitions/che-code-server-next.yaml index eb3fd6edc9..f8866ac6fd 100644 --- a/editors-definitions/che-code-server-next.yaml +++ b/editors-definitions/che-code-server-next.yaml @@ -92,8 +92,7 @@ components: volume: {} - name: editor-injector container: - # image: quay.io/che-incubator/che-code-server:next - image: quay.io/vgulyy/che-code-server:next + image: quay.io/che-incubator/che-code-server:next command: - /entrypoint-init-container.sh volumeMounts: From 140813cfd6120652ceaf529367085f8d25c3382e Mon Sep 17 00:00:00 2001 From: vitaliy-guliy Date: Mon, 3 Feb 2025 19:32:19 +0000 Subject: [PATCH 3/5] feat: add che-code-server editor to enable workspace remote access Signed-off-by: vitaliy-guliy --- .../che-code-server-latest.yaml | 127 ++++++++++++++++++ editors-definitions/che-code-server-next.yaml | 6 +- 2 files changed, 129 insertions(+), 4 deletions(-) create mode 100644 editors-definitions/che-code-server-latest.yaml diff --git a/editors-definitions/che-code-server-latest.yaml b/editors-definitions/che-code-server-latest.yaml new file mode 100644 index 0000000000..6f639b0249 --- /dev/null +++ b/editors-definitions/che-code-server-latest.yaml @@ -0,0 +1,127 @@ +# +# Copyright (c) 2025 Red Hat, Inc. +# This program and the accompanying materials are made +# available under the terms of the Eclipse Public License 2.0 +# which is available at https://www.eclipse.org/legal/epl-2.0/ +# +# SPDX-License-Identifier: EPL-2.0 +# +# Contributors: +# Red Hat, Inc. - initial API and implementation +# + +schemaVersion: 2.2.2 +metadata: + name: che-code-server + displayName: Visual Studio Code Server + description: Visual Studio Code server for Eclipse Che - latest + tags: + - CLI + - vscode + attributes: + publisher: che-incubator + version: next + provider: Provided by [Microsoft](https://www.microsoft.com/) under [License](https://code.visualstudio.com/License) + title: Visual Studio Code server for Eclipse Che - next + repository: https://github.com/che-incubator/che-code-server + firstPublicationDate: '2025-31-01' + iconMediatype: image/svg+xml + iconData: | + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +commands: + - id: inject-editor + apply: + component: editor-injector + - id: start-che-code-server + exec: + component: editor-runtime + commandLine: nohup /che-code-server/entrypoint-volume.sh > /che-code-server/entrypoint-volume.log + 2>&1 & + +events: + preStart: + - inject-editor + postStart: + - start-che-code-server + +components: + - name: che-code-server + volume: {} + - name: editor-injector + container: + image: quay.io/che-incubator/che-code-server:latest + command: + - /entrypoint-init-container.sh + volumeMounts: + - name: che-code-server + path: /che-code-server + memoryLimit: 256Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m + - name: editor-runtime + container: + image: quay.io/devfile/universal-developer-image:latest + memoryLimit: 6144Mi + memoryRequest: 2048Mi + cpuLimit: 2000m + cpuRequest: 1500m + volumeMounts: + - name: che-code-server + path: /che-code-server + endpoints: + - name: che-code-server + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 3400 + exposure: public + secure: true + protocol: https + attributes: + app.kubernetes.io/component: editor-runtime + app.kubernetes.io/part-of: che-code-server.eclipse.org + controller.devfile.io/container-contribution: true diff --git a/editors-definitions/che-code-server-next.yaml b/editors-definitions/che-code-server-next.yaml index f8866ac6fd..8862d0a51d 100644 --- a/editors-definitions/che-code-server-next.yaml +++ b/editors-definitions/che-code-server-next.yaml @@ -16,7 +16,6 @@ metadata: displayName: Visual Studio Code Server description: Visual Studio Code server for Eclipse Che - next tags: - - Tech-Preview - CLI - vscode attributes: @@ -24,8 +23,7 @@ metadata: version: next provider: Provided by [Microsoft](https://www.microsoft.com/) under [License](https://code.visualstudio.com/License) title: Visual Studio Code server for Eclipse Che - next - # repository: https://github.com/che-incubator/che-code-server - repository: https://github.com/vitaliy-guliy/che-code-server + repository: https://github.com/che-incubator/che-code-server firstPublicationDate: '2025-31-01' iconMediatype: image/svg+xml iconData: | @@ -126,4 +124,4 @@ components: attributes: app.kubernetes.io/component: editor-runtime app.kubernetes.io/part-of: che-code-server.eclipse.org - controller.devfile.io/container-contribution: true \ No newline at end of file + controller.devfile.io/container-contribution: true From 4bf04015097007f4dbf7453cb0cfef2ec4272c59 Mon Sep 17 00:00:00 2001 From: vitaliy-guliy Date: Wed, 5 Feb 2025 14:00:15 +0000 Subject: [PATCH 4/5] feat: add che-code-server editor to enable workspace remote access Signed-off-by: vitaliy-guliy --- .github/workflows/minikube-test-helm.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/minikube-test-helm.yaml b/.github/workflows/minikube-test-helm.yaml index f9882bb2d7..dd09a99a38 100644 --- a/.github/workflows/minikube-test-helm.yaml +++ b/.github/workflows/minikube-test-helm.yaml @@ -29,7 +29,7 @@ jobs: run: bash <(curl -sL https://che-incubator.github.io/chectl/install.sh) --channel=next - name: Run tests run: /bin/bash build/scripts/minikube-tests/test-helm.sh - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: ${{ always() }} with: name: artifacts From 2d5d47b9195fbac837dba4e313628ed57a17660f Mon Sep 17 00:00:00 2001 From: vitaliy-guliy Date: Wed, 5 Feb 2025 14:02:42 +0000 Subject: [PATCH 5/5] feat: add che-code-server editor to enable workspace remote access Signed-off-by: vitaliy-guliy --- .github/workflows/minikube-test-operator.yaml | 2 +- .github/workflows/minikube-test-upgrade-stable-to-next.yaml | 2 +- .github/workflows/minikube-test-upgrade-stable-to-stable.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/minikube-test-operator.yaml b/.github/workflows/minikube-test-operator.yaml index 7e88e89c4b..fe0db70767 100644 --- a/.github/workflows/minikube-test-operator.yaml +++ b/.github/workflows/minikube-test-operator.yaml @@ -29,7 +29,7 @@ jobs: run: bash <(curl -sL https://che-incubator.github.io/chectl/install.sh) --channel=next - name: Run tests run: /bin/bash build/scripts/minikube-tests/test-operator.sh - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: ${{ always() }} with: name: artifacts diff --git a/.github/workflows/minikube-test-upgrade-stable-to-next.yaml b/.github/workflows/minikube-test-upgrade-stable-to-next.yaml index 5e77f60ff4..0a51b74ed6 100644 --- a/.github/workflows/minikube-test-upgrade-stable-to-next.yaml +++ b/.github/workflows/minikube-test-upgrade-stable-to-next.yaml @@ -34,7 +34,7 @@ jobs: run: /bin/bash build/scripts/minikube-tests/test-upgrade-from-stable-to-next.sh env: "GITHUB_TOKEN": "${{ secrets.GITHUB_TOKEN }}" - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: ${{ always() }} with: name: artifacts diff --git a/.github/workflows/minikube-test-upgrade-stable-to-stable.yaml b/.github/workflows/minikube-test-upgrade-stable-to-stable.yaml index d838977f82..fd0f6fc5d5 100644 --- a/.github/workflows/minikube-test-upgrade-stable-to-stable.yaml +++ b/.github/workflows/minikube-test-upgrade-stable-to-stable.yaml @@ -34,7 +34,7 @@ jobs: run: /bin/bash build/scripts/minikube-tests/test-upgrade-from-stable-to-stable.sh env: "GITHUB_TOKEN": "${{ secrets.GITHUB_TOKEN }}" - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: ${{ always() }} with: name: artifacts