Skip to content

Add library support for devfile schema - version 2.2.1 & version 2.2.2 #1454

Description

@thepetk

Which area/kind this issue is related to?

/area library

Issue Description

At the moment when the library parser tries to parse a devfile with schemaVersion=2.2.2 or schemaVersion=2.2.1 we get the error:

Error: failed to generate index struct: /build/stacks/dotnet60 devfile is not valid:
failed to populateAndParseDevfile: unable to find schema for version "2.2.2".
The parser supports devfile schema for version 2.0.0, 2.1.0, 2.2.0, v1alpha2

As seen in the pkg/devfile/parser/data/versions.go there is no reference for the 2.2.1 or the 2.2.2 versions.

Acceptance Criteria

  • Devfile library supports Devfile schema versions 2.2.1 & 2.2.2

Activity

  1. moved this to Refinement in Devfile Projecton Feb 21, 2024
  2. moved this from Refinement to Backlog in Devfile Projecton Feb 21, 2024
  3. thepetk commented on Feb 21, 2024

    @thepetk
    ContributorAuthor

    Steps to follow:

    1. Update the pkg/devfile/parser/data/versions.go to include 2.2.1 & 2.2.2
    2. Cut a pre-release for 2.2.3-alpha in the devfile/api.

    cc @michael-valdron @yangcao77

  4. moved this from Backlog to To Do 📝 in Devfile Projecton Mar 14, 2024
  5. self-assigned this
    on Mar 14, 2024
  6. moved this from To Do 📝 to In Progress 🚧 in Devfile Projecton Mar 14, 2024
  7. Jdubrick commented on Mar 14, 2024

    @Jdubrick
    Contributor

    Created PR to add support for 2.2.1 and 2.2.2 here: devfile/library#208

    When we cut the pre-release for 2.2.3-alpha it is probably best to open another PR to library to have a 2.2.3 alpha version recognized. I noticed 2.2.1-alpha was being used prior. wdyt?

    cc @michael-valdron @thepetk

  8. moved this from In Progress 🚧 to In Review 👀 in Devfile Projecton Mar 14, 2024
  9. moved this from In Review 👀 to Done ✅ in Devfile Projecton Mar 15, 2024
  10. thepetk commented on Mar 18, 2024

    @thepetk
    ContributorAuthor

    Re-opening this as we might need to bump up the registry-support library's version so we can take advantage of the latest schemaVersion support. If you think it should be handled separately happy to open another issue

    cc @Jdubrick

  11. moved this from Done ✅ to In Review 👀 in Devfile Projecton Mar 18, 2024
  12. Jdubrick commented on Mar 18, 2024

    @Jdubrick
    Contributor

    Re-opening this as we might need to bump up the registry-support library's version so we can take advantage of the latest schemaVersion support. If you think it should be handled separately happy to open another issue

    cc @Jdubrick

    I think probably a good idea to open a new issue so we can keep the scope of both contained in their own issue. @thepetk

  13. moved this from In Review 👀 to Done ✅ in Devfile Projecton Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/libraryCommon devfile library for interacting with devfiles

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions