Skip to content
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

Migrate components deployed with odo 1.0.0-beta3 and earlier after extension update #1051

Closed
dgolovin opened this issue Aug 14, 2019 · 0 comments · Fixed by #1107
Closed
Assignees
Labels
Milestone

Comments

@dgolovin
Copy link
Collaborator

dgolovin commented Aug 14, 2019

odo 1.0.0-beta4 introduces breaking changes and not going to work correctly with components deployed to cluster:

  1. latest odo won't see any components deployed in with previous versions
  2. latest odo won't be able to deploy components created form local workspace folders, because of name conflict betweel local component and component in cluster
  3. there would be no way to fix name conflicts from vscode, except manually deleting components form cluster using odo version prior 1.0.0-beta4 from command line

extension should check after update that there is no components deployed in cluster with old labels and allow ether to convert to new labels or delete deployed components (whichever is easier) to allow developers move forward.

Conversion
Identify if it is update by checking if ~/.vs-openshift folder is present.
Search and update labels for:
* DeploymentConfigs
* Routes
* BuildConfigs
* ImageStreams
* Services
* PersistentVolumeClimes
* Secrets
* ServiceInstances

Labels conversion map:
app.kubernetes.io/component-name => app.kubernetes.io/instance
app.kubernetes.io/name => app.kubernetes.io/part-of
app.kubernetes.io/component-type => app.kubernetes.io/name
app.kubernetes.io/component-version => app.openshift.io/runtime-version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant