-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add attribute controller.devfile.io/bootstrap-devworkspace: true
when Devfile resolution via API fails or is not supported
#22697
Comments
controller.devfile.io/bootstrap-devworkspace: true
in DevWorkspaces when cannot resolve the Devfilecontroller.devfile.io/bootstrap-devworkspace: true
when Devfile resolution via API fails or is not supported
@l0rd am I correct that this issue boils down to setting attribute when we start workspace with default devfile |
In theory, when che-server is able to connect to the git service API and figures out that there is no devfile at the root of the repository, project-clone container should avoid inspecting again for the same devfile. In practice I don't think that's a big deal if both (che-server and project-clone) look for the devfile. Another more important case is when the user explicitly click on "start using the default devfile". In this case we don't want to set |
@l0rd in this cases, there is a question if we need an extra UI item, clicking on which the label would be added. If we want to implement it without UI changes, it is not clear when |
@ibuziuk, UI item? No, there should be no need. What I mean is that if the startup of a workspace fails because of an invalid devfile, we currently prompt the user to |
@l0rd thanks, my understanding is that we should rework when
|
We currently should not fail when a git+SSH URL is provided. We can extend that to https URL as well yes but that's not in the scope of this issue or in the scope of the epic. |
@akurinnoy @svor @olexii4 that's fantastic that you have been able to close this one but when I tried to test it on our dogfooding instance, it didn't work for me. I have tested using the repository The devfile is not resolvedThis is expected as sourcehut is an unknown git service for che server: There is no
|
@l0rd we'll double check the flow. I'll reopen the issue for now |
This is what I get now, if I try to start the workspace from There is a Devfile in the git repository, and the DevWorkspace will be able to read it and use it. This prompt to the user is an error. |
@ibuziuk from my point of view UPDATE This can be related to current outage of sourcehut 🤦 I will try again as soon as the outage get fixed. |
Besides the sourcehut outage, I am still I am wondering: why are we trying to resolve the devfile if the protocol is git+SSH and the git service is not supported by che-server? |
I have tested again this morning and it worked as expected 👍 The dashboard still says that "Devfile could not be found in... Applying the default configuration" which is misleading but that can be handled as a separate issue. |
Is your enhancement related to a problem? Please describe
This is a subtask of #22491
Describe the solution you'd like
After this recent PR, when the attribute
controller.devfile.io/bootstrap-devworkspace: true
is set on a DevWorkspace object, then the project clone is configured to search for a devfile and apply it after cloning the DW projects.To close the issue to automatically restart a workspace and the epic to support resolving devfiles for any git service we need now to automatically add this attribute when the che-server fails to resolve a Devfile (because of an unsupported git service or because an error occurred).
The text was updated successfully, but these errors were encountered: