From 7689bfc08f3684ab8525adf5f870c41be31a3fe1 Mon Sep 17 00:00:00 2001 From: "Javier J. Salmeron Garcia" Date: Fri, 21 Sep 2018 16:06:19 +0200 Subject: [PATCH] [bitnami/memcached] Fix chart not being upgradable --- bitnami/memcached/Chart.yaml | 2 +- bitnami/memcached/README.md | 11 +++++++++++ bitnami/memcached/templates/deployment.yaml | 4 ++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/bitnami/memcached/Chart.yaml b/bitnami/memcached/Chart.yaml index 79bcc29aaca4cb..a095b1c605aea6 100644 --- a/bitnami/memcached/Chart.yaml +++ b/bitnami/memcached/Chart.yaml @@ -1,5 +1,5 @@ name: memcached -version: 0.4.35 +version: 1.0.0 appVersion: 1.5.10 description: Chart for Memcached keywords: diff --git a/bitnami/memcached/README.md b/bitnami/memcached/README.md index e1c37328398f78..2125d79dfe9aa8 100644 --- a/bitnami/memcached/README.md +++ b/bitnami/memcached/README.md @@ -72,3 +72,14 @@ $ helm install --name my-release -f values.yaml bitnami/memcached ``` > **Tip**: You can use the default [values.yaml](values.yaml) + +## 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 memcached: + +```console +$ kubectl patch deployment memcached --type=json -p='[{"op": "remove", "path": "/spec/selector/matchLabels/chart"}]' +``` diff --git a/bitnami/memcached/templates/deployment.yaml b/bitnami/memcached/templates/deployment.yaml index fae4078facd1ab..aa5852ac2ceceb 100644 --- a/bitnami/memcached/templates/deployment.yaml +++ b/bitnami/memcached/templates/deployment.yaml @@ -8,6 +8,10 @@ metadata: release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: + selector: + matchLabels: + app: {{ template "fullname" . }} + release: "{{ .Release.Name }}" template: metadata: labels: