helm: Helm 2.8.0 with CRDs: unable to find api field in struct Unstructured for the json field "metadata"
Hi, We’re seeing this a lot since updating to 2.8.0. This only happens on subsequent upgrades to existing charts.
❯ helm upgrade --reset-values --debug --wait --install --namespace default --version 0.1.379 at-sauron-web-mobile . -f values.yaml -f dev.yaml
[debug] Created tunnel using local port: '56621'
[debug] SERVER: "127.0.0.1:56621"
Error: UPGRADE FAILED: failed to create patch: unable to find api field in struct Unstructured for the json field "metadata"
This particular chart is upgrading the following components:
- configmap
- service
- deployment
- ingress
If i take the --dry-run output and put it into a file and do kubectl apply -f myself, it works fine
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 50 (18 by maintainers)
Commits related to this issue
- fix(api-machinery): Fixes patching for unstructured objects CRDs and other objects seen as unstructured cannot use strategic merge patching. It has never been supported on CRDs. Previously, cases lik... — committed to mattfarina/helm by mattfarina 6 years ago
- fix(api-machinery): Fixes patching for unstructured objects CRDs and other objects seen as unstructured cannot use strategic merge patching. It has never been supported on CRDs. Previously, cases lik... — committed to mattfarina/helm by mattfarina 6 years ago
- fix(api-machinery): Fixes patching for unstructured objects CRDs and other objects seen as unstructured cannot use strategic merge patching. It has never been supported on CRDs. Previously, cases lik... — committed to helm/helm by mattfarina 6 years ago
- fix(api-machinery): Fixes patching for unstructured objects CRDs and other objects seen as unstructured cannot use strategic merge patching. It has never been supported on CRDs. Previously, cases lik... — committed to splisson/helm by mattfarina 6 years ago
- fix(api-machinery): Fixes patching for unstructured objects CRDs and other objects seen as unstructured cannot use strategic merge patching. It has never been supported on CRDs. Previously, cases lik... — committed to splisson/helm by mattfarina 6 years ago
- fix(api-machinery): Fixes patching for unstructured objects CRDs and other objects seen as unstructured cannot use strategic merge patching. It has never been supported on CRDs. Previously, cases lik... — committed to jianghang8421/helm by mattfarina 6 years ago
@pkelleratwork You’re putting the annotations at the wrong level. They need to be under metadata, not directly as part of the PodTemplateSpec
yay, love when things are fixed a couple of days before experiencing the issue 😃