Skip to content

Commit

Permalink
Add persistence.existingClaim configuration, closes helm#22262
Browse files Browse the repository at this point in the history
Signed-off-by: Maarten de Waard <maarten@greenhost.nl>
  • Loading branch information
Maarten de Waard committed Jun 29, 2020
1 parent 60f4fb6 commit 73125c0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stable/rocketchat/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion stable/rocketchat/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
1 change: 1 addition & 0 deletions stable/rocketchat/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 73125c0

Please sign in to comment.