Skip to content

Commit

Permalink
Merge pull request #48 from rotty3000/LCD-44721
Browse files Browse the repository at this point in the history
LCD-44721 add configurable storageClassName to all workloads
  • Loading branch information
rotty3000 authored Feb 12, 2025
2 parents 410a0ad + ae0631e commit a81c04a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions templates/database/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ spec:
resources:
requests:
storage: {{ default "1Gi" .internal.storage}}
{{- if .internal.storageClassName }}
storageClassName: {{ .internal.storageClassName }}
{{- end }}
---
apiVersion: v1
kind: Service
Expand Down
3 changes: 3 additions & 0 deletions templates/objectstorage/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ spec:
resources:
requests:
storage: {{ default "1Gi" .internal.storage}}
{{- if .internal.storageClassName }}
storageClassName: {{ .internal.storageClassName }}
{{- end }}
---
apiVersion: v1
kind: Service
Expand Down
5 changes: 4 additions & 1 deletion templates/search/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ spec:
resources:
requests:
storage: {{ default "1Gi" .internal.storage}}
{{- if .internal.storageClassName }}
storageClassName: {{ .internal.storageClassName }}
{{- end }}
---
apiVersion: v1
kind: Service
Expand Down Expand Up @@ -184,4 +187,4 @@ spec:
targetPort: search
protocol: TCP
{{- end }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -270,3 +270,6 @@ spec:
resources:
requests:
storage: {{ default "1Gi" .Values.storage }}
{{- if .Values.storageClassName }}
storageClassName: {{ .Values.storageClassName }}
{{- end }}

0 comments on commit a81c04a

Please sign in to comment.