[stable/testlink] Fix chart not being upgradable (#7853)

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@bitnami.com>
This commit is contained in:
Javier J. Salmerón-García
2018-09-20 07:47:27 -07:00
committed by k8s-ci-robot
parent 199668aa05
commit bbf424a10e
3 changed files with 17 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: testlink
version: 2.1.0
version: 3.0.0
appVersion: 1.9.17
description: Web-based test management system that facilitates software quality assurance.
icon: https://bitnami.com/assets/stacks/testlink/img/testlink-stack-220x234.png
+12
View File
@@ -108,3 +108,15 @@ The [Bitnami TestLink](https://github.com/bitnami/bitnami-docker-testlink) image
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 3.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 3.0.0. The following example assumes that the release name is testlink:
```console
$ kubectl patch deployment testlink-testlink --type=json -p='[{"op": "remove", "path": "/spec/selector/matchLabels/chart"}]'
$ kubectl delete statefulset testlink-mariadb --cascade=false
```
@@ -8,6 +8,10 @@ metadata:
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
spec:
selector:
matchLabels:
app: {{ template "fullname" . }}
release: "{{ .Release.Name }}"
replicas: 1
template:
metadata: