Skip to content

Commit

Permalink
Merge pull request #3041 from guilhem/pvcvolumename
Browse files Browse the repository at this point in the history
[grafana] fix: lookup volumename on pvc
  • Loading branch information
Xtigyro committed Apr 18, 2024
2 parents 2db1a25 + 53291bc commit ceb3879
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/grafana/Chart.yaml
@@ -1,6 +1,6 @@
apiVersion: v2
name: grafana
version: 7.3.8
version: 7.3.9
appVersion: 10.4.1
kubeVersion: "^1.8.0-0"
description: The leading tool for querying and visualizing time series and metrics.
Expand Down
3 changes: 3 additions & 0 deletions charts/grafana/templates/pvc.yaml
Expand Up @@ -25,6 +25,9 @@ spec:
resources:
requests:
storage: {{ .Values.persistence.size | quote }}
{{- if (lookup "v1" "PersistentVolumeClaim" (include "grafana.namespace" .) (include "grafana.fullname" .)) }}
volumeName: {{ (lookup "v1" "PersistentVolumeClaim" (include "grafana.namespace" .) (include "grafana.fullname" .)).spec.volumeName }}
{{- end }}
{{- with .Values.persistence.storageClassName }}
storageClassName: {{ . }}
{{- end }}
Expand Down

0 comments on commit ceb3879

Please sign in to comment.