You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the case putting version= latest, the devfile schema version might be incompatible if a newer stack version released, since latest always point to the newest version.
e.g. main devfile is devfile v2.1, and latest stack version contains devfile with v2.2
3 alternatives:
continue use latest stack version, and error out if the parent version is higher than the main devfile version (already included in current devfile validation)
use main devfile version as maxSchemaVersion, and only find the latest stack version which is small or equal than the maxSchemaVersion (main devfile version)
introduce minSchemaVersion and maxSchemaVersion properties in the parent's import reference as well. and apply the two filters when looking for "latest" stack version.
I personally prefer the first/second option. 3 is complicated from devfile writer perspective
Which area this feature is related to?
/area api
Which functionality do you think we should add?
Why is this needed? Is your feature request related to a problem?
sub issue for #735
Detailed description:
Devfile Spec change required for multi-version stacks/sample support.
Describe the solution you'd like
Add optional property
version
for parent reference to support multi-version stacks/samples.Create validation on the
version
property:latest
.version
should only be used whenid
is specified. (Pull from registry)Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: