From 99447d7aea739bd573bdf705a1bfa000522df57d Mon Sep 17 00:00:00 2001 From: Maarten Date: Tue, 28 Jul 2020 13:55:07 +0200 Subject: [PATCH] Add persistence.existingClaim configuration, closes #22262 (#22994) Signed-off-by: Maarten de Waard --- stable/rocketchat/Chart.yaml | 2 +- stable/rocketchat/README.md | 1 + stable/rocketchat/templates/deployment.yaml | 2 +- stable/rocketchat/values.yaml | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/stable/rocketchat/Chart.yaml b/stable/rocketchat/Chart.yaml index 68240837e5..970f0f38b7 100644 --- a/stable/rocketchat/Chart.yaml +++ b/stable/rocketchat/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: rocketchat -version: 2.0.3 +version: 2.0.4 appVersion: 3.2.2 description: Prepare to take off with the ultimate chat platform, experience the next level of team communications keywords: diff --git a/stable/rocketchat/README.md b/stable/rocketchat/README.md index 02e8e73420..45621617bc 100644 --- a/stable/rocketchat/README.md +++ b/stable/rocketchat/README.md @@ -65,6 +65,7 @@ Parameter | Description | Default `persistence.storageClass` | Storage class of the PVC to use | `""` `persistence.accessMode` | Access mode of the PVC | `ReadWriteOnce` `persistence.size` | Size of the PVC | `8Gi` +`persistence.existingClaim` | An Existing PVC name for rocketchat volume | `""` `resources` | Pod resource requests and limits | `{}` `securityContext.enabled` | Enable security context for the pod | `true` `securityContext.runAsUser` | User to run the pod as | `999` diff --git a/stable/rocketchat/templates/deployment.yaml b/stable/rocketchat/templates/deployment.yaml index c785351423..d1eecb7796 100644 --- a/stable/rocketchat/templates/deployment.yaml +++ b/stable/rocketchat/templates/deployment.yaml @@ -109,7 +109,7 @@ spec: - name: rocket-data {{- if .Values.persistence.enabled }} persistentVolumeClaim: - claimName: {{ template "rocketchat.fullname" . }} + claimName: {{ if .Values.persistence.existingClaim }}{{ .Values.persistence.existingClaim }}{{- else }}{{ template "rocketchat.fullname" . }}{{- end }} {{- else }} emptyDir: {} {{- end }} diff --git a/stable/rocketchat/values.yaml b/stable/rocketchat/values.yaml index af5df585a7..b4d1d139b3 100644 --- a/stable/rocketchat/values.yaml +++ b/stable/rocketchat/values.yaml @@ -101,6 +101,7 @@ mongodb: ## persistence: enabled: false + # existingClaim: existingClaimName ## rocketchat data Persistent Volume Storage Class ## If defined, storageClassName: ## If set to "-", storageClassName: "", which disables dynamic provisioning