Skip to content

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

Closed
@feloy

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

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