From b2d9a8a79b5fff0749bddbf944b75c8b205532c2 Mon Sep 17 00:00:00 2001 From: "Javier J. Salmeron Garcia" Date: Fri, 21 Sep 2018 18:13:30 +0200 Subject: [PATCH] [bitnami/zookeeper] Fix chart not being upgradable Signed-off-by: Javier J. Salmeron Garcia --- bitnami/zookeeper/Chart.yaml | 2 +- bitnami/zookeeper/README.md | 11 +++++++++++ bitnami/zookeeper/templates/statefulset.yaml | 2 -- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/bitnami/zookeeper/Chart.yaml b/bitnami/zookeeper/Chart.yaml index 7d705b6d6..d749db4ec 100644 --- a/bitnami/zookeeper/Chart.yaml +++ b/bitnami/zookeeper/Chart.yaml @@ -1,5 +1,5 @@ name: zookeeper -version: 0.0.7 +version: 1.0.0 appVersion: 3.4.12 description: A centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services for distributed applications. keywords: diff --git a/bitnami/zookeeper/README.md b/bitnami/zookeeper/README.md index d1ccfa806..3921c9ecc 100644 --- a/bitnami/zookeeper/README.md +++ b/bitnami/zookeeper/README.md @@ -121,3 +121,14 @@ The [Bitnami Zookeeper](https://github.com/bitnami/bitnami-docker-zookeeper) ima Persistent Volume Claims are used to keep the data across deployments. This is known to work in GCE, AWS, and minikube. See the [Configuration](#configuration) section to configure the PVC or to disable persistence. + +## Upgrading + +### To 1.0.0 + +Backwards compatibility is not guaranteed unless you modify the labels used on the chart's deployments. +Use the workaround below to upgrade from versions previous to 1.0.0. The following example assumes that the release name is zookeeper: + +```console +$ kubectl delete statefulset zookeeper --cascade=false +``` diff --git a/bitnami/zookeeper/templates/statefulset.yaml b/bitnami/zookeeper/templates/statefulset.yaml index 3ed751ca2..711ee7ab1 100644 --- a/bitnami/zookeeper/templates/statefulset.yaml +++ b/bitnami/zookeeper/templates/statefulset.yaml @@ -20,9 +20,7 @@ spec: selector: matchLabels: app: {{ template "zookeeper.name" . }} - chart: {{ template "zookeeper.chart" . }} release: {{ .Release.Name | quote }} - heritage: {{ .Release.Service | quote }} template: metadata: name: "{{ template "zookeeper.fullname" . }}"