Skip to content

Handle gracefully when an invalid devfile is found in a git repository #20738

@l0rd

Description

@l0rd

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.

warning-invalid-devfile

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.

Metadata

Metadata

Assignees

Labels

area/dashboardkind/enhancementA feature request - must adhere to the feature request template.new&noteworthyFor new and/or noteworthy issues that deserve a blog post, new docs, or emphasis in release notesseverity/P1Has a major impact to usage or development of the system.sprint/current

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions