Skip to content

Commit

Permalink
Merge pull request loft-sh#997 from infracloudio/fix-storageClassName
Browse files Browse the repository at this point in the history
Fix statefulset broken tamplate
  • Loading branch information
FabianKramm authored Apr 13, 2023
2 parents 43d25af + bd9d596 commit c0cfca7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/eks/templates/etcd-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ spec:
name: data
spec:
accessModes: [ "ReadWriteOnce" ]
{{- if .Values.etcd.storage.className }}
storageClassName: {{ .Values.etcd.storage.className }}
{{- end }}
resources:
requests:
storage: {{ .Values.etcd.storage.size }}
Expand Down
2 changes: 2 additions & 0 deletions charts/k0s/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ spec:
name: data
spec:
accessModes: [ "ReadWriteOnce" ]
{{- if .Values.storage.className }}
storageClassName: {{ .Values.storage.className }}
{{- end }}
resources:
requests:
storage: {{ .Values.storage.size }}
Expand Down
2 changes: 2 additions & 0 deletions charts/k3s/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ spec:
name: data
spec:
accessModes: [ "ReadWriteOnce" ]
{{- if .Values.storage.className }}
storageClassName: {{ .Values.storage.className }}
{{- end }}
resources:
requests:
storage: {{ .Values.storage.size }}
Expand Down
2 changes: 2 additions & 0 deletions charts/k8s/templates/etcd-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ spec:
name: data
spec:
accessModes: [ "ReadWriteOnce" ]
{{- if .Values.etcd.storage.className}}
storageClassName: {{ .Values.etcd.storage.className }}
{{- end }}
resources:
requests:
storage: {{ .Values.etcd.storage.size }}
Expand Down

0 comments on commit c0cfca7

Please sign in to comment.