Skip to content

Commit

Permalink
Merge pull request #25 from Chia-Network/fix-vol-templates
Browse files Browse the repository at this point in the history
  • Loading branch information
cmmarslender authored Aug 31, 2023
2 parents 02fca6c + 9923178 commit 18b5610
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion charts/generic-stateful/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
22 changes: 11 additions & 11 deletions charts/generic-stateful/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 }}

0 comments on commit 18b5610

Please sign in to comment.