Skip to content

Commit ec9fd3f

Browse files
fernferretli-adrienloiseau
authored andcommitted
[stable/rethinkdb] Implement storageClass (helm#21750)
* [stable/rethinkdb] Fixed storageClass The cluster.persistentVolume.storageClass was never used and would never properly populate the volumeClaimTemplate. This also adds the convention that "-" will set the null storage class (as this is a pretty common convention). Signed-off-by: Eric Stokes <fernferret@gmail.com> * bumped chart version Signed-off-by: Eric Stokes <fernferret@gmail.com> Signed-off-by: Adrien Loiseau <adrien.loiseau@logic-immo.com>
1 parent c66ba07 commit ec9fd3f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

stable/rethinkdb/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v1
22
name: rethinkdb
33
description: The open-source database for the realtime web
4-
version: 1.1.0
4+
version: 1.1.1
55
appVersion: 0.1.0
66
keywords:
77
- rethinkdb

stable/rethinkdb/templates/rethinkdb-cluster-stateful-set.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,13 @@ spec:
9999
{{- range .Values.cluster.persistentVolume.accessModes }}
100100
- {{ . | quote }}
101101
{{- end }}
102+
{{- if .Values.cluster.persistentVolume.storageClass }}
103+
{{- if (eq "-" .Values.cluster.persistentVolume.storageClass) }}
104+
storageClassName: ""
105+
{{- else }}
106+
storageClassName: "{{ .Values.cluster.persistentVolume.storageClass }}"
107+
{{- end }}
108+
{{- end }}
102109
resources:
103110
requests:
104111
storage: {{ .Values.cluster.persistentVolume.size | quote }}

0 commit comments

Comments
 (0)