Skip to content

Commit

Permalink
fix: update editor image method (#1053)
Browse files Browse the repository at this point in the history
* fix: update editor image method

Signed-off-by: Oleksii Orel <[email protected]>
  • Loading branch information
olexii4 authored Feb 16, 2024
1 parent 9f0a1c6 commit 7ff8f04
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ spec:
- attributes:
controller.devfile.io/container-contribution: true
container:
image: test-images/che-code:tag
image: quay.io/devfile/universal-developer-image:next
name: che-code-runtime-description
- name: checode
volume: {}
- container:
image: quay.io/che-incubator/che-code:next
image: test-images/che-code:tag
name: che-code-injector
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ metadata:
components:
- name: che-code-runtime-description
container:
image: test-images/che-code:tag
image: quay.io/devfile/universal-developer-image:next
attributes:
controller.devfile.io/container-contribution: true
- name: checode
volume: {}
- name: che-code-injector
container:
image: quay.io/che-incubator/che-code:next
image: test-images/che-code:tag
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,7 @@ function updateComponents(
}
let isUpdated = false;
for (let i = 0; i < components.length; i++) {
if (
components[i].attributes?.['controller.devfile.io/container-contribution'] &&
components[i].container?.image
) {
if (components[i].name.endsWith('-injector') && components[i].container?.image) {
components[i].container!.image = editorImage;
isUpdated = true;
break;
Expand Down

0 comments on commit 7ff8f04

Please sign in to comment.