Skip to content

Conversation

@SkorikSergey
Copy link
Contributor

@SkorikSergey SkorikSergey commented Jan 30, 2026

What does this PR do?

PredefinedNamespace test should use the latest Dev Spaces VS Code Editor image

Update the test to override the che-code-injector container image after the devfile context is generated. The image is now set to the Dev Spaces VS Code Editor:
quay.io/redhat-user-workloads/devspaces-tenant/devspaces/code-rhel9:latest

Screenshot/screencast of this PR

What issues does this PR fix or reference?

https://issues.redhat.com/browse/CRW-10045

How to test this PR?

DevWorkspace template example after che-code image updation.

oc apply -f - 
          apiVersion: workspace.devfile.io/v1alpha2
          kind: DevWorkspaceTemplate
          metadata:
            name: che-code-empty-ws
          spec:
            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: quay.io/redhat-user-workloads/devspaces-tenant/devspaces/code-rhel9:3.26
                  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: quay.io/devfile/universal-developer-image@sha256:42c94b19f0e3a7cb47d4583f8dd5b3dc77f15d80e0562309a3d2d5145aebfe7a
                  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: {}
          ---
          apiVersion: workspace.devfile.io/v1alpha2
          kind: DevWorkspace
          metadata:
            name: empty-ws
            annotations:
              che.eclipse.org/devfile: |
                schemaVersion: 2.2.0
                metadata:
                  name: empty-ws
          spec:
            started: true
            routingClass: che
            template:
              attributes:
                controller.devfile.io/devworkspace-config:
                  name: devworkspace-config
                  namespace: openshift-devspaces
                controller.devfile.io/scc: container-build
                controller.devfile.io/storage-type: per-user
            contributions:
              - name: editor
                kubernetes:
                  name: che-code-empty-ws

PR Checklist

As the author of this Pull Request I made sure that:

Reviewers

Reviewers, please comment how you tested the PR when approving it.

@SkorikSergey SkorikSergey self-assigned this Jan 30, 2026
@SkorikSergey SkorikSergey marked this pull request as ready for review January 30, 2026 11:08
Copy link
Contributor

@dmytro-ndp dmytro-ndp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to merge.

@SkorikSergey SkorikSergey merged commit c2e9cd1 into main Jan 30, 2026
6 checks passed
@SkorikSergey SkorikSergey deleted the fixPredefinedNamespaceTest branch January 30, 2026 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants