Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-943

Could not import Devfile after testing a non-Devfile version

    XMLWordPrintable

Details

    • Moderate
    • ODC Sprint 224
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None

    Description

      Description of problem:
      When the user selects Serverless as an import strategy and tried to import a Devfile, the import fails because of an invalid Deployment.

      Could reproduce this already in 4.11, but its even more prominent in 4.12 when the console automatically selects the resource type serverless when the Serverless operator is installed.

      Version-Release number of selected component (if applicable):
      Works on 4.10
      Failed on 4.11 and 4.12 master

      How reproducible:
      Always

      Steps to Reproduce:
      1. Install and setup Serverless operator
      1. Switch to dev perspective, navigate to add > import from git
      3. Enter a non-Devfile git URL like https://github.com/jerolimov/nodeinfo
      4. On 4.11 select resource type Serverless (on 4.12 this should be selected automatically)
      5. Update the git URL to a repo with a Devfile like https://github.com/nodeshift-starters/devfile-sample
      6. Press create

      Actual results:
      Import fails with error:

      Error "Invalid value: "": name part must be non-empty" for field "spec.template.labels".

      Expected results:
      Devfile should be imported

      Additional info:

      Attachments

        1. 4.11.mp4
          491 kB
        2. 4.12.mp4
          462 kB
        3. Screen Recording 2022-11-17 at 12.42.40 PM.mov
          9.07 MB

        Activity

          People

            cjerolim Christoph Jerolimov
            cjerolim Christoph Jerolimov
            Jitendar Singh Jitendar Singh
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: