-
Notifications
You must be signed in to change notification settings - Fork 55
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
Give warning when using unsupported devfile features #984
Comments
There are 3 potential approaches to presenting this warning to users that I've thought of so far: setting a warning in the workspace's status conditions, letting the webhook return an error when applying the devworkspace or letting the workspace give a warning when applying the devworkspace. Workspace status warningPros:
Cons:
Blocking workspaces that use unsupported features with webhooksPros:
Cons:
Webhook warnings for unsupported featuresPros:
Cons:
In my opinion, blocking workspaces that use unsupported devfile features is the best approach that can be implemented today due to the fact that the warning/error would be visible in the dashboard. If webhook warnings become supported by the dashboard, then this would be the best approach. @amisevsk @ibuziuk @l0rd let me know if you have any thoughts on which approach should be taken. |
the two main UX points that we quickly discussed during standup today:
for the second point, I think we should have a similar UX that was implemented in eclipse-che/che#20738 However, instead of Based on that, it looks like the best option would be 1) |
I think the simplest approach to achieve the UX goals we discussed would be for DWO to use webhook admission warnings, since the dashboard wouldn't have to add support for checking DW status'. The response from the Kubernetes API request to create the devworkspace should include the warning, and when this is caught, the UI warning could be presented. Currently, in my testing, the Dashboard simply ignores the webhook warning and proceeds with opening the workspace.
+1 |
Fix devfile#984 Signed-off-by: Andrew Obuchowicz <[email protected]>
Fix devfile#984 Signed-off-by: Andrew Obuchowicz <[email protected]>
Fix devfile#984 Signed-off-by: Andrew Obuchowicz <[email protected]>
Fix devfile#984 Signed-off-by: Andrew Obuchowicz <[email protected]>
Description
Since there are devfile 2.2.x features that are not currently supported by DWO, we should warn the user when these features are being used in a devworkspace.
I imagine this would involve checking the workspace after it has been flattened and setting a warning to the workspace status.
Additional context
Related: #983
The text was updated successfully, but these errors were encountered: