vscode-openshift-tools icon indicating copy to clipboard operation
vscode-openshift-tools copied to clipboard

Notify users about components created using old version of odo

Open mohitsuman opened this issue 3 years ago • 2 comments

As we migrate to using the odo v3 workflow with the OpenShift extension, there would be scenarios for users who are using the older version of the extension that can break the workflow. We need to handle that gracefully and provide an easy solution for the user to start using the current workflow.

For any component created using an old version of odo (2.5.x), users will be notified about and they can undeploy and get started with the new (odo v3) workflow.

  • Detect old components created using odo command and undeploy and show Migrating to 3.x workflow.

In case the migration fails, the user should be notified and asked to do it manually (of undeploy component from cluster)

mohitsuman avatar Sep 21 '22 08:09 mohitsuman

I think it would be safer and simpler to notify user that component has been undeployed and migrated to 3.x otherwise you need to handle component version in all workflow and code base

jeffmaury avatar Sep 21 '22 08:09 jeffmaury

@jeffmaury yeah I think it makes sense to do the way you suggested.

mohitsuman avatar Sep 21 '22 23:09 mohitsuman

I think we should just issue `oc delete deployment -l component= --cascade' before 'odo dev' and don't say anything. If we want to do migration it is going to be always executed before odo dev and will slow down command execution.

dgolovin avatar Nov 03 '22 06:11 dgolovin