Add global for storageClass (#307)

When you have multiple spire servers, they often all need to be
configured to use the same storage class. Let them all be set
to the same value all at once.

Signed-off-by: Kevin Fox <[email protected]>
Co-authored-by: Faisal Memon <[email protected]>
This commit is contained in:
kfox1111
2024-04-02 23:28:55 +00:00
committed by GitHub
co-authored by Faisal Memon
parent 0b99a7258f
commit fafed66866
3 changed files with 12 additions and 6 deletions
@@ -509,7 +509,8 @@ spec:
resources:
requests:
storage: {{ .Values.persistence.size }}
{{- if .Values.persistence.storageClass }}
storageClassName: {{ .Values.persistence.storageClass }}
{{- $storageClass := (dig "spire" "persistence" "storageClass" nil .Values.global) | default .Values.persistence.storageClass }}
{{- if $storageClass }}
storageClassName: {{ $storageClass }}
{{- end }}
{{- end }}
{{- end }}