From c9d51730a033fdeaa464fa8be1c8c560d86d8978 Mon Sep 17 00:00:00 2001 From: Chris Marslender Date: Thu, 31 Aug 2023 14:27:18 -0500 Subject: [PATCH 1/2] Fix location of volumeClaimTemplates on generic-stateful --- .../templates/statefulset.yaml | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/charts/generic-stateful/templates/statefulset.yaml b/charts/generic-stateful/templates/statefulset.yaml index 970630f..3edf11c 100644 --- a/charts/generic-stateful/templates/statefulset.yaml +++ b/charts/generic-stateful/templates/statefulset.yaml @@ -135,17 +135,6 @@ spec: - name: configmap-file configMap: name: "{{ .Release.Name }}-file" - volumeClaimTemplates: - {{- range .Values.volumeClaimTemplates }} - - metadata: - name: {{ .name }} - spec: - accessModes: ["ReadWriteOnce"] - storageClassName: {{ .storageClassName }} - resources: - requests: - storage: {{ .size }} - {{- end }} {{- range .Values.sidecars }} {{- $sidecarName := .name -}} {{- range .sharedEmptyDirs }} @@ -165,3 +154,14 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + volumeClaimTemplates: + {{- range .Values.volumeClaimTemplates }} + - metadata: + name: {{ .name }} + spec: + accessModes: ["ReadWriteOnce"] + storageClassName: {{ .storageClassName }} + resources: + requests: + storage: {{ .size }} + {{- end }} From 992317851883923a95df37fead4d4788aba34317 Mon Sep 17 00:00:00 2001 From: Chris Marslender Date: Thu, 31 Aug 2023 14:27:40 -0500 Subject: [PATCH 2/2] Bump version --- charts/generic-stateful/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/generic-stateful/Chart.yaml b/charts/generic-stateful/Chart.yaml index 028398f..72bc9d3 100644 --- a/charts/generic-stateful/Chart.yaml +++ b/charts/generic-stateful/Chart.yaml @@ -2,4 +2,4 @@ apiVersion: v2 name: generic-stateful description: A generic helm chart that handles a bunch of common stateful set deploy cases type: application -version: 0.1.0 +version: 0.2.0