Add persistence.existingClaim configuration, closes #22262 (#22994)

Signed-off-by: Maarten de Waard <maarten@greenhost.nl>
This commit is contained in:
Maarten
2020-07-28 04:55:07 -07:00
committed by GitHub
parent c2502cef80
commit 99447d7aea
4 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -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:
+1
View File
@@ -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`
+1 -1
View File
@@ -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 }}
+1
View File
@@ -101,6 +101,7 @@ mongodb:
##
persistence:
enabled: false
# existingClaim: existingClaimName
## rocketchat data Persistent Volume Storage Class
## If defined, storageClassName: <storageClass>
## If set to "-", storageClassName: "", which disables dynamic provisioning