Skip to content

Commit

Permalink
Add persistence.existingClaim configuration, closes helm#22262 (helm#…
Browse files Browse the repository at this point in the history
…22994)

Signed-off-by: Maarten de Waard <maarten@greenhost.nl>
Signed-off-by: Miguel Mingorance <miguel.mingorance@deliveryhero.com>
  • Loading branch information
Maarten authored and Miguel Mingorance committed Aug 28, 2020
1 parent 10c1d13 commit 78e09dd
Show file tree
Hide file tree
Showing 4 changed files with 4 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
1 change: 1 addition & 0 deletions stable/rocketchat/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
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 78e09dd

Please sign in to comment.