-
Notifications
You must be signed in to change notification settings - Fork 92
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
Adding a devfile for the Universal Developer Image #177
Conversation
Skipping CI for Draft Pull Request. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: ibuziuk, l0rd The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
The field isn't required in the spec, but the registry viewer requires it currently |
@johnmcollier is there some generic value we can use for UDI? e.g. 'default' ? |
@thepetk @mike-hoang Can you test out to see if the existing devfile matching from Alizer will continue to match the existing language-specific stacks/samples as the suggested devfile entries? |
stacks/udi/devfile.yaml
Outdated
- Python | ||
- Pip | ||
- ubi8 | ||
projectType: default |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about universal
, wouldn't it be better?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think default
is better since it is neutral from the semantics perspective
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In every other Devfile this is used to indicate language or framework, default
looks weird to me.
Maybe my bigger problem with using default
is that it could indicate that users use this Devfile by default, which I have many problems with.
This devfile with UDI can still be helpful. But it should not be presented as a default Devfile. I think that primarily we need to guide users towards using language or frameworks-specific Devfiles. This universal devfile should be considered only if no other Devfile stack can be used or if the project uses multiple languages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This devfile with UDI can still be helpful. But it should not be presented as a default Devfile.
this is about projectType which has nothing to do with devfile being the default per se, right?
universal is a weird name for projectType since it is very ambiguous
In every other Devfile this is used to indicate language or framework
What if there are multiple languages and frameworks used in a particular devfile?
In general, I believe the projectType field should be optional, I do not understand why it is enforced at the moment on the registry end.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if there are multiple languages and frameworks used in a particular devfile?
In general, I believe the projectType field should be optional, I do not understand why it is enforced at the moment on the registry end.
I agree with this. It is really weird that the registry requires something that is marked as optional in the Devfile spec. (cc: @elsony, @johnmcollier)
this is about projectType which has nothing to do with devfile being the default per se, right?
universal is a weird name for projectType since it is very ambiguous
I was thinking about using universal
as it is also in the image name.
The best would be to completely omit that, but we can do that :-(
We could keep default
for now, fix the registry to not require it, and then remove it. But I know how this is going to play out; the change will never come and we will get stuck with default
forever :-(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 on changing it to universal
. I think default
is a bit deceiving as well since it implies being the best matching of all.
We require the project type that as part of the registry since we want consistency in the entries in the registry. There are other fields that are optional in the spec but required for the onboarding to the community registry for the same reasons, e.g. icons, description, etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed to universal
even though I do not like the approach that registry enforces certain metadata that is odo specific
BTW: Devfile without a single command doesn't make much sense from This is why
This will be addressed on
This stack will have to be skipped in odo v3 tests by adding Line 25 in 26a9a78
|
Another thing to note here is that in order to fully support UDI in odo we will require builds for amd64 (devfile/api#1102) |
It has been confirmed that Alizer will still do devfile matching properly with this change. A test case redhat-developer/alizer#175 has been added to Alizer. |
Signed-off-by: Ilya Buziuk <[email protected]>
/lgtm |
What does this PR do?:
Adding a devfile for the Universal Developer Image
Which issue(s) this PR fixes:
eclipse-che/che#22126
PR acceptance criteria:
Have you read the devfile registry contributing guide and followed its instructions?
Does this repository's tests pass with your changes?
Does any documentation need to be updated with your changes?
Have you tested the changes with existing tools, i.e. Odo, Che, Console? (See devfile registry contributing guide on how to test changes)
How to test changes / Special notes to the reviewer:
metadata.projectType
is not set. Not sure why the field is required though, according to the spec it is optional