From b430bbf92cd1185101c38d13477d229f1fc34229 Mon Sep 17 00:00:00 2001 From: Carlos Tadeu Panato Junior Date: Fri, 28 Sep 2018 15:07:41 +0200 Subject: [PATCH] fix deployment when upgrade (#8027) Signed-off-by: cpanato --- stable/mattermost-team-edition/Chart.yaml | 2 +- stable/mattermost-team-edition/README.md | 1 + stable/mattermost-team-edition/templates/deployment.yaml | 6 +++++- stable/mattermost-team-edition/values.yaml | 3 +++ 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/stable/mattermost-team-edition/Chart.yaml b/stable/mattermost-team-edition/Chart.yaml index 588be2bb5c..38a86fcf9c 100644 --- a/stable/mattermost-team-edition/Chart.yaml +++ b/stable/mattermost-team-edition/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 description: Mattermost Team Edition server. name: mattermost-team-edition -version: 1.1.1 +version: 1.1.2 appVersion: 5.3.1 keywords: - mattermost diff --git a/stable/mattermost-team-edition/README.md b/stable/mattermost-team-edition/README.md index 589cc5a469..1e552c9e05 100644 --- a/stable/mattermost-team-edition/README.md +++ b/stable/mattermost-team-edition/README.md @@ -47,6 +47,7 @@ Parameter | Description | Default --- | --- | --- `image.repository` | container image repository | `mattermost/mattermost-team-edition` `image.tag` | container image tag | `5.3.1` +`revisionHistoryLimit` | How many old ReplicaSets for Mattermost Deployment you want to retain | `1` `config.SiteUrl` | The URL that users will use to access Mattermost. ie `https://mattermost.mycompany.com` | `` `config.SiteName` | Name of service shown in login screens and UI | `Mattermost` `config.FilesAccessKey` | The AWS Access Key, if you want store the files on S3 | `` diff --git a/stable/mattermost-team-edition/templates/deployment.yaml b/stable/mattermost-team-edition/templates/deployment.yaml index 8066da8c04..d5b889b9fd 100644 --- a/stable/mattermost-team-edition/templates/deployment.yaml +++ b/stable/mattermost-team-edition/templates/deployment.yaml @@ -8,7 +8,11 @@ metadata: release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: - replicas: {{ .Values.replicaCount }} + replicas: 1 + strategy: + type: Recreate + rollingUpdate: null + revisionHistoryLimit: {{ .Values.revisionHistoryLimit }} selector: matchLabels: app: {{ template "mattermost-team-edition.fullname" . }} diff --git a/stable/mattermost-team-edition/values.yaml b/stable/mattermost-team-edition/values.yaml index 63101f5b82..f39fc71701 100644 --- a/stable/mattermost-team-edition/values.yaml +++ b/stable/mattermost-team-edition/values.yaml @@ -6,6 +6,9 @@ image: tag: 5.3.1 imagePullPolicy: IfNotPresent +## How many old ReplicaSets for Mattermost Deployment you want to retain +revisionHistoryLimit: 1 + ## Enable persistence using Persistent Volume Claims ## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/ ## ref: https://docs.gitlab.com/ee/install/requirements.html#storage