Skip to content

Validation fails on devfile 2.0.0 with unknown ephemeral field on volume #697

Description

@feloy

/kind bug

Which area this bug is related to?

/area library

What versions of software are you using?

Operating System:

Fedora Linux

Go Pkg Version:

Bug Summary

Describe the bug:

When saving a devfile, the devfile library is adding an ephemeral field to the volume structure on devfile v2.0, but this field is supported starting at v2.1 only.

To Reproduce:

$ odo create nodejs
$ odo storage create vol1
$ odo describe
# works
$ odo storage create vol2
$ odo describe
 ✗  invalid devfile schema. errors :
- components.1.volume: Additional property ephemeral is not allowed

Suggestion on how to fix the bug

The problem seems very similar to #675

Activity

  1. added
    kind/bugSomething isn't working
    area/libraryCommon devfile library for interacting with devfiles
    on Nov 26, 2021
  2. feloy commented on Nov 26, 2021

    @feloy
    ContributorAuthor
  3. yangcao77 commented on Nov 30, 2021

    @yangcao77
    Contributor

    This is the boolean value omitempty issue which was resolved by @kim-tsao in 2.2.0. Just need to port over the change from 2.2.0 to 2.1.0 as well. This won't affect any devfile usage, but will affect the api spec. assigning to Kim to take a look.

  4. added
    area/apiEnhancement or issue related to the api/devfile specification
    on Nov 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/apiEnhancement or issue related to the api/devfile specificationarea/libraryCommon devfile library for interacting with devfileskind/bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions