2021-05-28 18:23:41 +00:00
|
|
|
--- charts-original/templates/statefulset.yaml
|
|
|
|
+++ charts/templates/statefulset.yaml
|
2021-06-26 00:16:30 +00:00
|
|
|
@@ -27,7 +27,7 @@
|
|
|
|
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
|
|
|
|
checksum/dashboards-json-config: {{ include (print $.Template.BasePath "/dashboards-json-configmap.yaml") . | sha256sum }}
|
|
|
|
checksum/sc-dashboard-provider-config: {{ include (print $.Template.BasePath "/configmap-dashboard-provider.yaml") . | sha256sum }}
|
|
|
|
- {{- if or (and (not .Values.admin.existingSecret) (not .Values.env.GF_SECURITY_ADMIN_PASSWORD__FILE) (not .Values.env.GF_SECURITY_ADMIN_PASSWORD)) (and .Values.ldap.enabled (not .Values.ldap.existingSecret)) }}
|
|
|
|
+ {{- if and (or (and (not .Values.admin.existingSecret) (not .Values.env.GF_SECURITY_ADMIN_PASSWORD__FILE) (not .Values.env.GF_SECURITY_ADMIN_PASSWORD)) (and .Values.ldap.enabled (not .Values.ldap.existingSecret))) (not .Values.env.GF_SECURITY_DISABLE_INITIAL_ADMIN_CREATION) }}
|
|
|
|
checksum/secret: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.podAnnotations }}
|
2021-05-28 18:23:41 +00:00
|
|
|
@@ -39,11 +39,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:
|