helm: Helm 3.0.0 beta 4 - can't upgrade charts (existing resource conflict)
Hi, Bitnami developer here. When trying to upgrade a chart to a newer version using helm v3 beta 4, it fails due to an existing resource conflict. This never happened neither with helm v2 nor with the previous beta versions of helm v3. It seems to be related with commit https://github.com/helm/helm/commit/36f3a4b326f1df1ad50cfa19c47808a7e42bd294.
I would like to know if this is a bug or the expected behaviour, and in that case try to understand why this is happening. This is happening to all our charts.
Steps to reproduce:
- Add the stable repository
helm repo add stable https://kubernetes-charts.storage.googleapis.com
- Grab and install an older version of a chart (e.g. dokuwiki)
helm fetch --untar --untardir . stable/dokuwiki --version 5.0.0
helm install doku ./dokuwiki --namespace dokuwiki
- Try to upgrade to the latest version
helm upgrade doku stable/dokuwiki --namespace dokuwiki
Error: UPGRADE FAILED: rendered manifests contain a new resource that already exists. Unable to continue with update: existing resource conflict: kind: Deployment, namespace: amoreno, name: doku-dokuwiki
Note that running the above command with helm v3 beta 3 instead works correctly.
Output of helm version:
version.BuildInfo{Version:"v3.0.0-beta.4", GitCommit:"7ffc879f137bd3a69eea53349b01f05e3d1d2385", GitTreeState:"dirty", GoVersion:"go1.13.1"}
Output of kubectl version:
Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.3", GitCommit:"5e53fd6bc17c0dec8434817e69b04a25d8ae0ff0", GitTreeState:"clean", BuildDate:"2019-06-06T01:44:30Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"14+", GitVersion:"v1.14.6-gke.2", GitCommit:"c9de33b5439df6e206d7ba646787c6ace92d737b", GitTreeState:"clean", BuildDate:"2019-09-06T18:30:33Z", GoVersion:"go1.12.9b4", Compiler:"gc", Platform:"linux/amd64"}
Cloud Provider/Platform (AKS, GKE, Minikube etc.): GKE
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 37 (23 by maintainers)
Commits related to this issue
- [stable/drupal] fix upgrading existing deployments In https://github.com/helm/charts/pull/17295 the `apiVersion` of the deployment resource was updated to `apps/v1` in tune with the api's deprecated ... — committed to sameersbn/kubernetes-charts by deleted user 5 years ago
- [stable/dokuwiki] fix upgrading existing deployments In https://github.com/helm/charts/pull/17294 the `apiVersion` of the deployment resource was updated to `apps/v1` in tune with the api's deprecate... — committed to sameersbn/kubernetes-charts by deleted user 5 years ago
- [stable/moodle] fix upgrading existing deployments In https://github.com/helm/charts/pull/17301 the `apiVersion` of the deployment resource was updated to `apps/v1` in tune with the api's deprecated ... — committed to sameersbn/kubernetes-charts by deleted user 5 years ago
- [stable/jasperreports] fix upgrading existing deployments In https://github.com/helm/charts/pull/17298 the `apiVersion` of the deployment resource was updated to `apps/v1` in tune with the api's depr... — committed to sameersbn/kubernetes-charts by deleted user 5 years ago
- [stable/joomla] fix upgrading existing deployments In https://github.com/helm/charts/pull/17299 the `apiVersion` of the deployment resource was updated to `apps/v1` in tune with the api's deprecated ... — committed to sameersbn/kubernetes-charts by deleted user 5 years ago
- [stable/odoo] fix upgrading existing deployments In https://github.com/helm/charts/pull/17352 the `apiVersion` of the deployment resource was updated to `apps/v1` in tune with the api's deprecated in... — committed to sameersbn/kubernetes-charts by deleted user 5 years ago
- [stable/opencart] fix upgrading existing deployments In https://github.com/helm/charts/pull/17302 the `apiVersion` of the deployment resource was updated to `apps/v1` in tune with the api's deprecate... — committed to sameersbn/kubernetes-charts by deleted user 5 years ago
- [stable/redmine] fix upgrading existing deployments In https://github.com/helm/charts/pull/17309 the `apiVersion` of the deployment resource was updated to `apps/v1` in tune with the api's deprecated... — committed to sameersbn/kubernetes-charts by deleted user 5 years ago
- [stable/suitecrm] fix upgrading existing deployments In https://github.com/helm/charts/pull/17310 the `apiVersion` of the deployment resource was updated to `apps/v1` in tune with the api's deprecate... — committed to sameersbn/kubernetes-charts by deleted user 5 years ago
- [stable/testlink] fix upgrading existing deployments In https://github.com/helm/charts/pull/17311 the `apiVersion` of the deployment resource was updated to `apps/v1` in tune with the api's deprecate... — committed to sameersbn/kubernetes-charts by deleted user 5 years ago
- [stable/osclass] fix upgrading existing deployments In https://github.com/helm/charts/pull/17303 the `apiVersion` of the deployment resource was updated to `apps/v1` in tune with the api's deprecated... — committed to sameersbn/kubernetes-charts by deleted user 5 years ago
- [stable/owncloud] fix upgrading existing deployments In https://github.com/helm/charts/pull/17304 the `apiVersion` of the deployment resource was updated to `apps/v1` in tune with the api's deprecate... — committed to sameersbn/kubernetes-charts by deleted user 5 years ago
- [stable/phpbb] fix upgrading existing deployments In https://github.com/helm/charts/pull/17307 the `apiVersion` of the deployment resource was updated to `apps/v1` in tune with the api's deprecated i... — committed to sameersbn/kubernetes-charts by deleted user 5 years ago
- [stable/prestashop] fix upgrading existing deployments In https://github.com/helm/charts/pull/17308 the `apiVersion` of the deployment resource was updated to `apps/v1` in tune with the api's depreca... — committed to sameersbn/kubernetes-charts by deleted user 5 years ago
- [stable/mariadb] fix upgrading existing statefulsets In https://github.com/helm/charts/pull/17308 the `apiVersion` of the statefulset resources was updated to `apps/v1` in tune with the api's depreca... — committed to sameersbn/kubernetes-charts by deleted user 5 years ago
- [stable/mediawiki] fix upgrading existing deployments In https://github.com/helm/charts/pull/17300 the `apiVersion` of the deployment resource was updated to `apps/v1` in tune with the api's deprecat... — committed to sameersbn/kubernetes-charts by deleted user 5 years ago
- [stable/postgresql] fix upgrading existing deployments In https://github.com/helm/charts/pull/17281 the `apiVersion` of the deployment resource was updated to `apps/v1` in tune with the api's depreca... — committed to sameersbn/kubernetes-charts by deleted user 5 years ago
- [stable/kubewatch] fix upgrading existing deployments In https://github.com/helm/charts/pull/17285 the `apiVersion` of the deployment resource was updated to `apps/v1` in tune with the api's deprecat... — committed to sameersbn/kubernetes-charts by deleted user 5 years ago
- [stable/kubewatch] fix upgrading existing deployments In https://github.com/helm/charts/pull/17285 the `apiVersion` of the deployment resource was updated to `apps/v1` in tune with the api's deprecat... — committed to sameersbn/kubernetes-charts by deleted user 5 years ago
- [stable/dokuwiki] fix upgrading existing deployments In https://github.com/helm/charts/pull/17294 the `apiVersion` of the deployment resource was updated to `apps/v1` in tune with the api's deprecate... — committed to sameersbn/kubernetes-charts by deleted user 5 years ago
Please follow up with https://github.com/helm/helm/issues/6850 for issues related to resource creation. The issue raised by @alemorcuq results in the same error, but it is a different diagnosis than the issues being raised here. Thanks.
one quick fix would be to essentially allow helm to ignore the conflicting resource and go ahead with the release upgrade. I happened to make some changes to the src to make this happen https://github.com/RiflerRick/helm/commit/1ee55a3c69535becb3c2854573e60c07121f15fb
Clone the repo https://github.com/RiflerRick/helm/tree/debug-v3.0.0 and simply run
make build. That will create a binary in./bin. You can use that binary.we are observing this issue on 3.0.0 with persistent volume claims, please reopen