-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Handle gracefully when an invalid devfile is found in a git repository #20738
Description
Is your enhancement related to a problem? Please describe
Currently Che starts successfully workspaces from a Git repository where there are no devfiles: the default component and editor will be used. When a workspace has a devfile that's invalid instead, there is no way for a user to start it using the default component (to fix the devfile for example).
Describe the solution you'd like
When Che finds a devfile in a git repository but that's an invalid devfile, we should warn the user and prompt him if the workspace should start anyway (ignoring the existing devfile) or if he wants to cancel the workspace startup.
This is related to #20616.
Release Notes Text
Workspace creation doesn't fail anymore if the developer provides an invalid Devfile (or if an invalid Devfile is found in the git repository provided by the developer). Instead a warning is shown asking wether the workspace should be started anyway with a default Devfile. This is particularly useful when a developer is editing and testing a Devfile.
