Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-2879

Devfile registry image has old index.json structure

XMLWordPrintable

    • False
    • None
    • False
    • Not Required
    • Hide

      Preconditions: OpenShift cluster with deployed DevSpaces v. 3.0
      Steps to reproduce: Go to the dashboard, create for example cpp sample, and open schema in the dashboard editor.
      Expected result: we should make sure that DevFile uses new zip sections like:

      projects:
            - name: c-plus-plus
              zip:
                location: 'https://devspaces-openshift-operators.apps.ci-ln-j4r6bj2-72292.origin-ci-int-gce.dev.rhcloud.com/devfile-registry/resources/v2/c-plus-plus.zip'
      

      Actual result: But we have old structure:

      projects:
        - git:
            checkoutFrom:
              revision: devfilev2
            remotes:
              origin: 'https://github.com/crw-samples/c-plus-plus.git'
          name: c-plus-plus
      

      Additional info: It depends on index.json file in the DevFile registry image because this is uses old schema like

        {
          "displayName": "IntelliJ IDEA Community Edition",
          "description": "IntelliJ IDEA Community Edition based editor stack",
          "tags": [
            "Tech-Preview",
            "JetBrains",
            "Java",
            "RHEL8",
            "IntelliJ",
            "IDEA"
          ],
          "icon": "https://devspaces-openshift-operators.apps.ci-ln-j4r6bj2-72292.origin-ci-int-gce.dev.rhcloud.com/devfile-registry/images/type-intellij.svg",
          "links": {
            "v2": "https://github.com/crw-samples/gradle-demo-project/tree/devfilev2",
            "self": "https://devspaces-openshift-operators.apps.ci-ln-j4r6bj2-72292.origin-ci-int-gce.dev.rhcloud.com/devfile-registry/devfiles/06_idea_rhel/devfile.yaml"
          }
        }
      

      instead of new scheme:

      {
        "displayName": "Go",
        "description": "Stack with Go 1.14",
        "tags": [
          "Debian",
          "Go"
        ],
        "icon": "/images/go.svg",
        "links": {
          "v2": "https://github.com/che-samples/golang-echo-example/tree/devfile2",
          "devWorkspaces": {
             "eclipse/che-theia/latest": "/devfiles/go/devworkspace-che-theia-latest.yaml"
             "eclipse/che-theia/next": "/devfiles/go/devworkspace-che-theia-next.yaml"
          },
          "self": "/devfiles/go/devfile.yaml"
        }
      }
      
      Show
      Preconditions: OpenShift cluster with deployed DevSpaces v. 3.0 Steps to reproduce: Go to the dashboard, create for example cpp sample, and open schema in the dashboard editor. Expected result: we should make sure that DevFile uses new zip sections like: projects: - name: c-plus-plus zip: location: 'https://devspaces-openshift-operators.apps.ci-ln-j4r6bj2-72292.origin-ci-int-gce.dev.rhcloud.com/devfile-registry/resources/v2/c-plus-plus.zip' Actual result: But we have old structure: projects: - git: checkoutFrom: revision: devfilev2 remotes: origin: 'https://github.com/crw-samples/c-plus-plus.git' name: c-plus-plus Additional info:  It depends on index.json file in the DevFile registry image because this is uses old schema like { "displayName" : "IntelliJ IDEA Community Edition" , "description" : "IntelliJ IDEA Community Edition based editor stack" , "tags" : [ "Tech-Preview" , "JetBrains" , "Java" , "RHEL8" , "IntelliJ" , "IDEA" ], "icon" : "https: //devspaces-openshift-operators.apps.ci-ln-j4r6bj2-72292.origin-ci- int -gce.dev.rhcloud.com/devfile-registry/images/type-intellij.svg" , "links" : { "v2" : "https: //github.com/crw-samples/gradle-demo-project/tree/devfilev2" , "self" : "https: //devspaces-openshift-operators.apps.ci-ln-j4r6bj2-72292.origin-ci- int -gce.dev.rhcloud.com/devfile-registry/devfiles/06_idea_rhel/devfile.yaml" } } instead of new scheme: { "displayName" : "Go" , "description" : "Stack with Go 1.14" , "tags" : [ "Debian" , "Go" ], "icon" : "/images/go.svg" , "links" : { "v2" : "https: //github.com/che-samples/golang-echo-example/tree/devfile2" , "devWorkspaces" : { "eclipse/che-theia/latest" : "/devfiles/go/devworkspace-che-theia-latest.yaml" "eclipse/che-theia/next" : "/devfiles/go/devworkspace-che-theia-next.yaml" }, "self" : "/devfiles/go/devfile.yaml" } }

      After opening DevFiles from the DashBoard page there is no zip project in the schema.

      It blocks start of workspaces in airgap OCP environment.

            ivinokur-1 Igor Vinokur
            mmusiien Maksym Musienko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: