-
Notifications
You must be signed in to change notification settings - Fork 63
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
Devfile should have a schemaVersion
attribute
#7
Comments
I already implemented a proposal of this in the current devfile schema on the I pulled the This gives: name: "devfile example"
schemaVersion: "2.0.0"
projects:
components:
... Of course naming can be changed for something better. |
duplicate of #10 ? |
@davidfestal are we dropping |
@amisevsk I'm not sure During the discussions that happened in the context of devfile 1.0 some months ago, about possibly adding the workspace target
So in the context of Che, target namespace, as well as debug mode more recently, were implemented on the Che-server side as parameters of the It seems to me that But I might be missing some point, and if a |
In the same vein, should the devfile schema really have a name? If I simplify the picture, we could consider the devfile a spec of a workspace k8s object. As far as I am aware specs don't have a name of their own. |
I agree, I tend to lean towards either no name or name and/or generateName. How is the |
Well, the content of the devfile (apart from name and version) is the spec of the workspace structure. In fact the part of the devfile schema is the same (or derived from) the When this workspace template spec is used in the context of a K8S CRD, it is referred in both a Similarly on the Devfile side, the same workspace template spec schema also defines most of the devfile content. But this doesn't mean that the complete devfile schema doesn't need a name and a version. The main difference is that, in the case of the devfile, unlike K8S CRDs, we can add
How the name would be used is the responsibility of the implementation that uses the format I assume. To summarize, it seems to me that:
|
I am not sure I understand the need to identify the devfile by its name. I think we're actually talking about 3 things in the discussion above:
Now if you wanted to assert whether the 3 things above are actually the same structurally - I think it is much safer to actually compare the devfiles in them structurally than to rely on a "name". After all 2 independent authors of 2 standalone devfiles may choose the same name for a completely different structure and it would be an error to consider them the same. Coming back to the issue of devfile version - here I like @davidfestal's |
version
attributeschemaVersion
attribute
Reviewed and agreed |
Closing this as it has been implemented in the spec. |
In previous version we used to have a
apiVersion
attribute. We would like to rename itschemaVersion
. The main reason is because the devfile format versioning doesn't adhere to the Kubernetes versioning scheme and calling itschemaVersion
will avoid confusions.The text was updated successfully, but these errors were encountered: