From 2dc6560433e17b4892f918a009372a0cbac8a176 Mon Sep 17 00:00:00 2001 From: Valeriy Svydenko Date: Mon, 15 Apr 2024 15:07:49 +0300 Subject: [PATCH] chore: remove che-code:insiders from devfile and plugin registries Signed-off-by: Valeriy Svydenko --- dependencies/che-devfile-registry/build.sh | 4 - .../generate_devworkspace_templates.sh | 8 -- .../build/scripts/index.sh | 1 - .../che-plugin-registry/che-editors.yaml | 86 ------------------- 4 files changed, 99 deletions(-) diff --git a/dependencies/che-devfile-registry/build.sh b/dependencies/che-devfile-registry/build.sh index 63c67d9a13..d9dc26bead 100755 --- a/dependencies/che-devfile-registry/build.sh +++ b/dependencies/che-devfile-registry/build.sh @@ -80,10 +80,6 @@ function clear_generated_data() { rm -rf ./resources for dir in ./devfiles/*/ do - CHE_CODE_DW="${dir}/devworkspace-che-code-insiders.yaml" - if [[ -f "$CHE_CODE_DW" ]]; then - rm "${CHE_CODE_DW}" - fi CHE_CODE_DW="${dir}/devworkspace-che-code-latest.yaml" if [[ -f "$CHE_CODE_DW" ]]; then rm "${CHE_CODE_DW}" diff --git a/dependencies/che-devfile-registry/build/scripts/generate_devworkspace_templates.sh b/dependencies/che-devfile-registry/build/scripts/generate_devworkspace_templates.sh index a87d7eab6c..6dcd05de13 100755 --- a/dependencies/che-devfile-registry/build/scripts/generate_devworkspace_templates.sh +++ b/dependencies/che-devfile-registry/build/scripts/generate_devworkspace_templates.sh @@ -46,14 +46,6 @@ do name=$(basename "${devfile_repo}") project="${name}={{_INTERNAL_URL_}}/resources/v2/${name}.zip" - # Generate devworkspace-che-code-insiders.yaml - npm_config_yes=true npx @eclipse-che/${che_devworkspace_generator} \ - --devfile-url:"${devfile_url}" \ - --editor-entry:che-incubator/che-code/insiders \ - --plugin-registry-url:https://redhat-developer.github.io/devspaces/che-plugin-registry/"${VERSION}"/"${arch}"/v3 \ - --output-file:"${dir}"devworkspace-che-code-insiders.yaml \ - --project."${project}" - # Generate devworkspace-che-code-latest.yaml npm_config_yes=true npx @eclipse-che/${che_devworkspace_generator} \ --devfile-url:"${devfile_url}" \ diff --git a/dependencies/che-devfile-registry/build/scripts/index.sh b/dependencies/che-devfile-registry/build/scripts/index.sh index db3715d194..f2446f0925 100755 --- a/dependencies/che-devfile-registry/build/scripts/index.sh +++ b/dependencies/che-devfile-registry/build/scripts/index.sh @@ -18,7 +18,6 @@ for meta in "${metas[@]}"; do # shellcheck disable=SC2016,SC2094 cat <<< "$(yq -y --arg metadir "${META_DIR}" '.links.devWorkspaces |= . + {"che-incubator/che-idea/latest": "/\($metadir)/devworkspace-che-idea-latest.yaml", - "che-incubator/che-code/insiders": "/\($metadir)/devworkspace-che-code-insiders.yaml", "che-incubator/che-code/latest": "/\($metadir)/devworkspace-che-code-latest.yaml"}' "${meta}")" > "${meta}" fi done diff --git a/dependencies/che-plugin-registry/che-editors.yaml b/dependencies/che-plugin-registry/che-editors.yaml index 2e9a392939..7b9303a86e 100644 --- a/dependencies/che-plugin-registry/che-editors.yaml +++ b/dependencies/che-plugin-registry/che-editors.yaml @@ -107,92 +107,6 @@ editors: memoryRequest: 32Mi cpuLimit: 500m cpuRequest: 30m - - schemaVersion: 2.2.2 - metadata: - name: che-incubator/che-code/insiders - displayName: VS Code - Open Source - description: Red Hat OpenShift Dev Spaces with Microsoft Visual Studio Code - Open Source IDE - icon: /images/vscode.svg - attributes: - publisher: che-incubator - version: insiders - title: Red Hat OpenShift Dev Spaces with Microsoft Visual Studio Code - Open Source IDE - repository: https://github.com/che-incubator/che-code - firstPublicationDate: '2022-07-19' - skipMetaYaml: true - commands: - - id: init-container-command - apply: - component: che-code-injector - - id: init-che-code-command - exec: - component: che-code-runtime-description - commandLine: 'nohup /checode/entrypoint-volume.sh > /checode/entrypoint-logs.txt 2>&1 &' - events: - preStart: - - init-container-command - postStart: - - init-che-code-command - components: - - name: che-code-injector - container: - image: 'registry.redhat.io/devspaces/code-rhel8:3.14' - command: ["/entrypoint-init-container.sh"] - volumeMounts: - - name: checode - path: /checode - memoryLimit: 256Mi - memoryRequest: 32Mi - cpuLimit: 500m - cpuRequest: 30m - - name: che-code-runtime-description - container: - image: 'registry.redhat.io/devspaces/udi-rhel8:3.14' - memoryLimit: 1024Mi - memoryRequest: 256Mi - cpuLimit: 500m - cpuRequest: 30m - volumeMounts: - - name: checode - path: /checode - endpoints: - - name: che-code - attributes: - type: main - cookiesAuthEnabled: true - discoverable: false - urlRewriteSupported: true - targetPort: 3100 - exposure: public - secure: true - protocol: https - - name: code-redirect-1 - targetPort: 13131 - exposure: public - protocol: https - attributes: - discoverable: false - urlRewriteSupported: false - - name: code-redirect-2 - targetPort: 13132 - exposure: public - protocol: https - attributes: - discoverable: false - urlRewriteSupported: false - - name: code-redirect-3 - targetPort: 13133 - exposure: public - protocol: https - attributes: - discoverable: false - urlRewriteSupported: false - attributes: - app.kubernetes.io/component: che-code-runtime - app.kubernetes.io/part-of: che-code.eclipse.org - controller.devfile.io/container-contribution: true - - name: checode - volume: {} - schemaVersion: 2.2.2 metadata: name: che-incubator/che-code/latest