mirror of https://git.rancher.io/charts
18 lines
854 B
Diff
18 lines
854 B
Diff
--- charts-original/templates/statefulset.yaml
|
|
+++ charts/templates/statefulset.yaml
|
|
@@ -40,11 +40,13 @@
|
|
- metadata:
|
|
name: storage
|
|
spec:
|
|
+{{- $_ := required "Must provide at least one access mode for persistent volumes used by Grafana" .Values.persistence.accessModes }}
|
|
+{{- $_ := required "Must provide at least one access mode for persistent volumes used by Grafana" (first .Values.persistence.accessModes) }}
|
|
accessModes: {{ .Values.persistence.accessModes }}
|
|
storageClassName: {{ .Values.persistence.storageClassName }}
|
|
resources:
|
|
requests:
|
|
- storage: {{ .Values.persistence.size }}
|
|
+ storage: {{ required "Must provide size for persistent volumes used by Grafana" .Values.persistence.size }}
|
|
{{- with .Values.persistence.selectorLabels }}
|
|
selector:
|
|
matchLabels:
|