Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

for a single minor version, library should support all previous patches with latest schema #1603

Open
yangcao77 opened this issue Jun 17, 2024 · 0 comments
Labels
area/library Common devfile library for interacting with devfiles

Comments

@yangcao77
Copy link
Contributor

yangcao77 commented Jun 17, 2024

Which area is this feature related to?

/area library

Which functionality do you think we should add?

for a single minor version, library should support all previous patches with latest schema

Why is this needed? Is your feature request related to a problem?
The current devfile is keeping copies of devfile schema for each patch version:
for example we currently have 2.2.0, 2.2.1 and 2.2.2
https://github.com/devfile/library/tree/main/pkg/devfile/parser/data/v2

However, it is too redundant & heavy. if it's only a patch version update, there shouldn't be any breaking change introduced, and all latest patch update should be backward compatible. e.g. 2.2.2 schema is able to support 2.2.1 and 2.2.0 as well.

Detailed description:
as above

Describe the solution you'd like

convert the current devfile library to only store schema copy for specific minor versions. and only keep the latest patch schema under each minor version
for example, 2.0.x. 2.1.x and 2.2.x etc.

Describe alternatives you've considered

Additional context

@openshift-ci openshift-ci bot added the area/library Common devfile library for interacting with devfiles label Jun 17, 2024
@yangcao77 yangcao77 changed the title Devfile library should support patch version update for a single minor version, library should support all previous patches with latest schema Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/library Common devfile library for interacting with devfiles
Projects
Status: Backlog
Development

No branches or pull requests

1 participant