mirror of
https://github.com/bitnami/charts.git
synced 2026-03-09 15:38:00 +08:00
[bitnami/memcached] Fix chart not being upgradable
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
name: memcached
|
||||
version: 0.4.35
|
||||
version: 1.0.0
|
||||
appVersion: 1.5.10
|
||||
description: Chart for Memcached
|
||||
keywords:
|
||||
|
||||
@@ -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"}]'
|
||||
```
|
||||
|
||||
@@ -8,6 +8,10 @@ metadata:
|
||||
release: "{{ .Release.Name }}"
|
||||
heritage: "{{ .Release.Service }}"
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ template "fullname" . }}
|
||||
release: "{{ .Release.Name }}"
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
|
||||
Reference in New Issue
Block a user