diff --git a/stable/osclass/Chart.yaml b/stable/osclass/Chart.yaml index f6a61cf9fc..e60b1d04bc 100644 --- a/stable/osclass/Chart.yaml +++ b/stable/osclass/Chart.yaml @@ -1,5 +1,5 @@ name: osclass -version: 2.0.4 +version: 3.0.0 appVersion: 3.7.4 description: Osclass is a php script that allows you to quickly create and manage your own free classifieds site. diff --git a/stable/osclass/README.md b/stable/osclass/README.md index 9351de847b..38c7658dfa 100644 --- a/stable/osclass/README.md +++ b/stable/osclass/README.md @@ -130,3 +130,14 @@ The [Bitnami Osclass](https://github.com/bitnami/bitnami-docker-osclass) image s 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 osclass: + +```console +$ kubectl patch deployment osclass-osclass --type=json -p='[{"op": "remove", "path": "/spec/selector/matchLabels/chart"}]' +$ kubectl delete statefulset osclass-mariadb --cascade=false diff --git a/stable/osclass/templates/deployment.yaml b/stable/osclass/templates/deployment.yaml index 2904abd746..a646212ecc 100644 --- a/stable/osclass/templates/deployment.yaml +++ b/stable/osclass/templates/deployment.yaml @@ -9,6 +9,10 @@ metadata: release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: + selector: + matchLabels: + app: {{ template "osclass.fullname" . }} + release: "{{ .Release.Name }}" template: metadata: labels: