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

Unable to upgrade Canary CRD with Helm #223

Closed
tanordheim opened this issue Jun 24, 2019 · 2 comments
Closed

Unable to upgrade Canary CRD with Helm #223

tanordheim opened this issue Jun 24, 2019 · 2 comments

Comments

@tanordheim
Copy link
Contributor

I'm trying to upgrade my Flagger installation using Helm from 0.12.0 to 0.15.0 and I'm getting this error:

Error: failed to create patch: merging an object in json but data type is not struct, instead is: map

Apparently this is an issue upgrading CRDs (see helm/helm#5853).

@stefanprodan
Copy link
Member

stefanprodan commented Jun 24, 2019

Upgrade workaround:

  • uninstall Flagger (the CRD and the canary resources will be left untouched):
helm delete flagger --purge
  • update the CRD with kubectl:
kubectl apply -f https://raw.githubusercontent.com/weaveworks/flagger/master/artifacts/flagger/crd.yaml
  • reinstall Flagger with Helm without the CRD:
helm upgrade -i flagger --set crd.create=false

@stefanprodan stefanprodan changed the title Unable to upgrade CRD with Helm Unable to upgrade Canary CRD with Helm Jun 24, 2019
@stefanprodan
Copy link
Member

This has been fixed in Helm v2.14.3, I've tested it by upgrading from Flagger 0.12.0 to 0.15.0 to 0.18.1 🎉

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

No branches or pull requests

2 participants