Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add advanced options widget #1151

Merged
merged 10 commits into from
Aug 13, 2024
Merged

feat: add advanced options widget #1151

merged 10 commits into from
Aug 13, 2024

Conversation

olexii4
Copy link
Contributor

@olexii4 olexii4 commented Jul 22, 2024

What does this PR do?

Add advanced options widget.

Import from a Git repository

Знімок екрана 2024-08-01 о 16 37 03

Workspace Details

Знімок екрана 2024-08-01 о 16 37 45

What issues does this PR fix or reference?

fixes eclipse-che/che#22975
fixes eclipse-che/che#23016

Is it tested? How?

  1. Deploy Eclipse Che and run command to patch the CR:
    kubectl patch -n eclipse-che "checluster/eclipse-che" --type=json -p="[{"op": "replace", "path": "/spec/components/dashboard/deployment", "value": {containers: [{image: "quay.io/eclipse/che-dashboard:pr-1151", name: che-dashboard}]}}]"
  2. Import a Git repo URL https://dev.azure.com/marioloriedo/publicproject/_git/public-repo?version=GBtest/branchon the Create Workspace page
    2.1. Open Git repo Options and change branch from test/branch to main
    2.2. Open Advanced Options and change cpuLimit to 2 and memoryLimit to 4Gi
    2.3. Click Continue to continue creating a new workspace.
  3. Open Workspace Details page. It should include all custom values.
...
projects:
 - name: public-repo
   git:
     remotes:
       origin: https://dev.azure.com/marioloriedo/publicproject/_git/public-repo
     checkoutFrom:
       revision: main
components:
 - name: tools
   container:
     image: quay.io/devfile/universal-developer-image...
     memoryLimit: 4Gi
     cpuLimit: '2'
...     

Release Notes

Docs PR

@che-bot
Copy link
Contributor

che-bot commented Jul 22, 2024

Click here to review and test in web IDE: Contribute

Copy link

Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-1151

kubectl patch command
kubectl patch -n eclipse-che "checluster/eclipse-che" --type=json -p="[{"op": "replace", "path": "/spec/components/dashboard/deployment", "value": {containers: [{image: "quay.io/eclipse/che-dashboard:pr-1151", name: che-dashboard}]}}]"

Copy link

Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-1151

kubectl patch command
kubectl patch -n eclipse-che "checluster/eclipse-che" --type=json -p="[{"op": "replace", "path": "/spec/components/dashboard/deployment", "value": {containers: [{image: "quay.io/eclipse/che-dashboard:pr-1151", name: che-dashboard}]}}]"

3 similar comments
Copy link

Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-1151

kubectl patch command
kubectl patch -n eclipse-che "checluster/eclipse-che" --type=json -p="[{"op": "replace", "path": "/spec/components/dashboard/deployment", "value": {containers: [{image: "quay.io/eclipse/che-dashboard:pr-1151", name: che-dashboard}]}}]"

Copy link

github-actions bot commented Aug 1, 2024

Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-1151

kubectl patch command
kubectl patch -n eclipse-che "checluster/eclipse-che" --type=json -p="[{"op": "replace", "path": "/spec/components/dashboard/deployment", "value": {containers: [{image: "quay.io/eclipse/che-dashboard:pr-1151", name: che-dashboard}]}}]"

Copy link

github-actions bot commented Aug 1, 2024

Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-1151

kubectl patch command
kubectl patch -n eclipse-che "checluster/eclipse-che" --type=json -p="[{"op": "replace", "path": "/spec/components/dashboard/deployment", "value": {containers: [{image: "quay.io/eclipse/che-dashboard:pr-1151", name: che-dashboard}]}}]"

@eclipse-che eclipse-che deleted a comment from codecov bot Aug 1, 2024
Copy link

github-actions bot commented Aug 1, 2024

Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-1151

kubectl patch command
kubectl patch -n eclipse-che "checluster/eclipse-che" --type=json -p="[{"op": "replace", "path": "/spec/components/dashboard/deployment", "value": {containers: [{image: "quay.io/eclipse/che-dashboard:pr-1151", name: che-dashboard}]}}]"

Copy link

github-actions bot commented Aug 2, 2024

Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-1151

kubectl patch command
kubectl patch -n eclipse-che "checluster/eclipse-che" --type=json -p="[{"op": "replace", "path": "/spec/components/dashboard/deployment", "value": {containers: [{image: "quay.io/eclipse/che-dashboard:pr-1151", name: che-dashboard}]}}]"

2 similar comments
Copy link

github-actions bot commented Aug 2, 2024

Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-1151

kubectl patch command
kubectl patch -n eclipse-che "checluster/eclipse-che" --type=json -p="[{"op": "replace", "path": "/spec/components/dashboard/deployment", "value": {containers: [{image: "quay.io/eclipse/che-dashboard:pr-1151", name: che-dashboard}]}}]"

Copy link

github-actions bot commented Aug 2, 2024

Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-1151

kubectl patch command
kubectl patch -n eclipse-che "checluster/eclipse-che" --type=json -p="[{"op": "replace", "path": "/spec/components/dashboard/deployment", "value": {containers: [{image: "quay.io/eclipse/che-dashboard:pr-1151", name: che-dashboard}]}}]"

@eclipse-che eclipse-che deleted a comment from codecov bot Aug 3, 2024
Copy link

github-actions bot commented Aug 3, 2024

Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-1151

kubectl patch command
kubectl patch -n eclipse-che "checluster/eclipse-che" --type=json -p="[{"op": "replace", "path": "/spec/components/dashboard/deployment", "value": {containers: [{image: "quay.io/eclipse/che-dashboard:pr-1151", name: che-dashboard}]}}]"

Copy link

github-actions bot commented Aug 4, 2024

Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-1151

kubectl patch command
kubectl patch -n eclipse-che "checluster/eclipse-che" --type=json -p="[{"op": "replace", "path": "/spec/components/dashboard/deployment", "value": {containers: [{image: "quay.io/eclipse/che-dashboard:pr-1151", name: che-dashboard}]}}]"

@eclipse-che eclipse-che deleted a comment from codecov bot Aug 5, 2024
Copy link

github-actions bot commented Aug 5, 2024

Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-1151

kubectl patch command
kubectl patch -n eclipse-che "checluster/eclipse-che" --type=json -p="[{"op": "replace", "path": "/spec/components/dashboard/deployment", "value": {containers: [{image: "quay.io/eclipse/che-dashboard:pr-1151", name: che-dashboard}]}}]"

@dmytro-ndp
Copy link
Contributor

@olexii4 : hello,
Test scenario described in the PR description had passed as expected with Eclipse Che Next using quay.io/eclipse/che-dashboard:pr-1151

At the same time I have noticed few issues:

  1. Workspace didn't seem respect changes in limits in the Workspace details > Devfile. ResourceMonitor
schemaVersion: 2.1.0
metadata:
  name: nodejs-react
components:
  - name: tools
    container:
      image: quay.io/devfile/universal-developer-image@sha256:80fdd1ae37d3b9e0260d9c66b4ff12e35317c31243eabeea5212d98c537a3ba9 # upstream - 3.7GB compressed
      # image: registry.redhat.io/devspaces/udi-rhel8:latest #1.7GB compressed
      # volumeMounts:
      #   - name: m2
      #     path: /home/user/.m2
      memoryLimit: 6Gi
      memoryRequest: 1Gi
      cpuRequest: '1'
      cpuLimit: '3'
      mountSources: true
      # image: registry.redhat.io/devspaces/udi-rhel8:latest

Screenshot from 2024-08-05 16-47-16

Screenshot from 2024-08-05 17-12-31

  1. I have got function Error() {[native code]} when tried to fix wrong "remoteURL" value within the Git repo URL field:
    screencast-bpconcjcammlapcogcnnelfmaeghhagj-2024.08.05-17_18_13.webm

  2. Advanced Options > Create New If Existing option needs more context, IMHO, like Create New Workspace If there is the one with the same name Existing:
    Screenshot from 2024-08-05 17-24-12

  3. It's not clear which particular workspace container the Container Image option will be applied to, if there are several containers defined in the devfile, like https://github.com/devspaces-samples/nodejs-mongodb-sample/blob/devspaces-3-rhel-8/devfile.yaml
    Screenshot from 2024-08-05 17-26-59

@olexii4
Copy link
Contributor Author

olexii4 commented Aug 6, 2024

....
4. It's not clear which particular workspace container the Container Image option will be applied to, if there are several containers defined in the devfile, like https://github.com/devspaces-samples/nodejs-mongodb-sample/blob/devspaces-3-rhel-8/devfile.yaml
Screenshot from 2024-08-05 17-26-59

@dmytro-ndp : We have che-docs with a good description:

...
You can use the image parameter to use a custom reference to a container image in the following scenarios:

 - The Git repository contains no devfile, and you want to start a new workspace with the custom image.

 - The Git repository contains a devfile, and you want to override the first container image listed in the components section of the devfile.
...

Signed-off-by: Oleksii Orel <oorel@redhat.com>
Signed-off-by: Oleksii Orel <oorel@redhat.com>
Signed-off-by: Oleksii Orel <oorel@redhat.com>
Signed-off-by: Oleksii Orel <oorel@redhat.com>
@devstudio-release
Copy link

Build 3.17 :: dashboard_3.x/523: Console, Changes, Git Data

@devstudio-release
Copy link

Build 3.16 :: dashboard_3.16/7: Console, Changes, Git Data

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

Build 3.16 :: update-digests_3.16/40: Console, Changes, Git Data

@devstudio-release
Copy link

@devstudio-release
Copy link

Build 3.16 :: dashboard_3.16/7: SUCCESS

Upstream sync done; /DS_CI/sync-to-downstream_3.16/14 triggered

@devstudio-release
Copy link

Build 3.17 :: dashboard_3.x/523: SUCCESS

Upstream sync done; /DS_CI/sync-to-downstream_3.x/7445 triggered

@devstudio-release
Copy link

@devstudio-release
Copy link

Build 3.16 :: operator-bundle_3.16/7: Console, Changes, Git Data

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

Build 3.17 :: get-sources-rhpkg-container-build_3.x/7428: FAILURE

devspaces-operator-bundle : 3.x :: Failed in 63303701 : BREW:BUILD/STATUS:UNKNOWN
FAILURE:; copied to quay

@devstudio-release
Copy link

@devstudio-release
Copy link

Build 3.16 :: copyIIBsToQuay/2750: Console, Changes, Git Data

@devstudio-release
Copy link

Build 3.16 :: sync-to-downstream_3.16/15: SUCCESS

Build container: devspaces-operator-bundle synced; /DS_CI/get-sources-rhpkg-container-build_3.16/15 triggered; /job/DS_CI/job/dsc_3.16 triggered;

@devstudio-release
Copy link

Build 3.16 :: operator-bundle_3.16/7: SUCCESS

Upstream sync done; /DS_CI/sync-to-downstream_3.16/15 triggered

@devstudio-release
Copy link

Build 3.16 :: dsc_3.16/8: Console, Changes, Git Data

@devstudio-release
Copy link

Build 3.16 :: update-digests_3.16/40: SUCCESS

Detected new images: rebuild operator-bundle
* dashboard; /DS_CI/operator-bundle_3.16/7 triggered

@devstudio-release
Copy link

Build 3.16 :: dsc_3.16/8: SUCCESS

3.16.0-CI

@devstudio-release
Copy link

Build 3.16 :: copyIIBsToQuay/2750: SUCCESS

3.16
arches = x86_64, s390x, ppc64le;
  * LATEST DS OPERATOR BUNDLE = <a href=https://quay.io/repository/devspaces/devspaces-operator-bundle?tab=tags>registry-proxy.engineering.redhat.com/rh-osbs/devspaces-operator-bundle:3.16-45
  * LATEST DWO OPERATOR BUNDLE = <a href=https://quay.io/repository/devworkspace/devworkspace-operator-bundle?tab=tags>registry-proxy.engineering.redhat.com/rh-osbs/devworkspace-operator-bundle:???
+ s390x-rhel8 IIB(s) copied:
  + quay.io/devspaces/iib:3.16-v4.16-787199-s390x
  + quay.io/devspaces/iib:3.16-v4.16-s390x
  + quay.io/devspaces/iib:latest-v4.16-s390x
  + quay.io/devspaces/iib:3.16-v4.15-788089-s390x
  + quay.io/devspaces/iib:3.16-v4.15-s390x
  + quay.io/devspaces/iib:latest-v4.15-s390x
  + quay.io/devspaces/iib:3.16-v4.14-788095-s390x
  + quay.io/devspaces/iib:3.16-v4.14-s390x
  + quay.io/devspaces/iib:latest-v4.14-s390x
  + quay.io/devspaces/iib:3.16-v4.13-788088-s390x
  + quay.io/devspaces/iib:3.16-v4.13-s390x
  + quay.io/devspaces/iib:latest-v4.13-s390x
  + quay.io/devspaces/iib:3.16-v4.12-788087-s390x
  + quay.io/devspaces/iib:3.16-v4.12-s390x
  + quay.io/devspaces/iib:latest-v4.12-s390x
+ x86_64-rhel8 IIB(s) copied:
  + quay.io/devspaces/iib:3.16-v4.16-787199-x86_64
  + quay.io/devspaces/iib:3.16-v4.16-x86_64
  + quay.io/devspaces/iib:latest-v4.16-x86_64
  + quay.io/devspaces/iib:3.16-v4.15-788089-x86_64
  + quay.io/devspaces/iib:3.16-v4.15-x86_64
  + quay.io/devspaces/iib:latest-v4.15-x86_64
  + quay.io/devspaces/iib:3.16-v4.14-788095-x86_64
  + quay.io/devspaces/iib:3.16-v4.14-x86_64
  + quay.io/devspaces/iib:latest-v4.14-x86_64
  + quay.io/devspaces/iib:3.16-v4.13-788088-x86_64
  + quay.io/devspaces/iib:3.16-v4.13-x86_64
  + quay.io/devspaces/iib:latest-v4.13-x86_64
  + quay.io/devspaces/iib:3.16-v4.12-788087-x86_64
  + quay.io/devspaces/iib:3.16-v4.12-x86_64
  + quay.io/devspaces/iib:latest-v4.12-x86_64
+ ppc64le-rhel8 IIB(s) copied:
  + quay.io/devspaces/iib:3.16-v4.16-787199-ppc64le
  + quay.io/devspaces/iib:3.16-v4.16-ppc64le
  + quay.io/devspaces/iib:latest-v4.16-ppc64le
  + quay.io/devspaces/iib:3.16-v4.15-788089-ppc64le
  + quay.io/devspaces/iib:3.16-v4.15-ppc64le
  + quay.io/devspaces/iib:latest-v4.15-ppc64le
  + quay.io/devspaces/iib:3.16-v4.14-788095-ppc64le
  + quay.io/devspaces/iib:3.16-v4.14-ppc64le
  + quay.io/devspaces/iib:latest-v4.14-ppc64le
  + quay.io/devspaces/iib:3.16-v4.13-788088-ppc64le
  + quay.io/devspaces/iib:3.16-v4.13-ppc64le
  + quay.io/devspaces/iib:latest-v4.13-ppc64le
  + quay.io/devspaces/iib:3.16-v4.12-788087-ppc64le
  + quay.io/devspaces/iib:3.16-v4.12-ppc64le
  + quay.io/devspaces/iib:latest-v4.12-ppc64le

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
7 participants