-
Notifications
You must be signed in to change notification settings - Fork 64
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
allow .devfile.yaml
#61
Comments
Ack. |
@maxandersen you linked to the same 2 issues… 😄 |
That's not strictly speaking something that will be transled in a change in the OpenAPI spec. And Che at least already allow But I agree that we may formalize that in the spec somehow: tools that supports the spec should automatically discover |
If we formalize that than we need to also define that tools need to error out when both |
Right. Or define a precedence order. |
That will just lead to a lot of confusion Let's say that I have a project that uses
This won't create a good user experience. |
You convinced me 👍 |
I would just print a warning rather than blocking users and error out. But I'm fine either way. |
@kadel How do you see |
Treat it the same as if you had a devfile.yml. |
I see a new PR on Che eclipse-che/che#17537 |
@l0rd, what is the documentation tasks here (I see you added the |
@rkratky probably adding a paragraph about that in the devfile author guide |
Based on the discussions, we'll support the .devfile.yaml. If both devfile.yaml and .devfile.yaml exists, then the tools will error out and let the user know that both files exist. We treat it as an error instead of a warning is to avoid any potential confusion on the user. From the spec perspective, we'll:
|
@maysunfaisal pointed out that the existing devfile library does not currently have limitations on the devfile file name as long as it has the Having said that, we still need to make changes to support this on the registry library/registry build tools. We currently have to find the location of the devfile when building the index.jsp as part of scanning through the list of stacks. So the index.jsp build tools will need to look for either devfile.yaml or .devfile.yaml and flag as an error on the stack if both files are found in the registry as part of the index.jsp generation that is being run as part of the registry build tools. @GeekArthur Can you make the change on the registry index generator code? |
@elsony Sure, I can do that. |
(not sure if this is part of kubernets-api for devfile but it should for sure be part of the devfile spec - let me know if any better place this issue)
originally opened at redhat-developer/odo#3126 and redhat-developer/odo#3126
Simply asking that
.devfile.yaml
should be allowed for the name of the devfile to allow it to be hidden by default and not take up "visual space" in projects that create these files.The text was updated successfully, but these errors were encountered: