vscode-openshift-tools
vscode-openshift-tools copied to clipboard
Check devfile version is 2.0.0 before using it in odo --devfile option
New Component is using devfile.yaml silently without checking what is actually inside it. That approach fails for devfiles v < 2.0.0.
@dgolovin so in Che if we have a project with a devfile v1 in, will this change allow a user to create a new component with s2i? Or does odo still detect there's a devfile and still try and fail to apply it (schema validation)?
@sympatheticmoose I was not thinking about che at all. Good point. Was actually thinking to backup the devfile v1 and create devfile component after that. This obviously is not going to work well for che.
For components like this we can just show the warning message instead of letting odo to fail. Would that work?
As odo and OpenShift DevSpaces all uses devfile v2. The extension should show the error message that occurs when an older version devfile (v1) is used.