From 5b1cd4ca88dd979c4b538c41db53031706e8d31b Mon Sep 17 00:00:00 2001 From: Srivahni Date: Tue, 2 Apr 2019 16:10:45 -0700 Subject: Visualization Helm charts package Helm charts for Grafana Added Prometheus and M3DB as datasouces Change-Id: I60bebd0c8ef26f1dc3d91659c55c43f603dd0928 Issue-ID: ONAPARC-393 Signed-off-by: Srivahni --- .../charts/grafana/templates/pvc.yaml | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 vnfs/DAaaS/visualization/charts/grafana/templates/pvc.yaml (limited to 'vnfs/DAaaS/visualization/charts/grafana/templates/pvc.yaml') diff --git a/vnfs/DAaaS/visualization/charts/grafana/templates/pvc.yaml b/vnfs/DAaaS/visualization/charts/grafana/templates/pvc.yaml new file mode 100755 index 00000000..e1cc0329 --- /dev/null +++ b/vnfs/DAaaS/visualization/charts/grafana/templates/pvc.yaml @@ -0,0 +1,24 @@ +{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) }} +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: {{ template "grafana.fullname" . }} + labels: + app: {{ template "grafana.name" . }} + chart: {{ template "grafana.chart" . }} + release: {{ .Release.Name }} + heritage: {{ .Release.Service }} + {{- with .Values.persistence.annotations }} + annotations: +{{ toYaml . | indent 4 }} + {{- end }} +spec: + accessModes: + {{- range .Values.persistence.accessModes }} + - {{ . | quote }} + {{- end }} + resources: + requests: + storage: {{ .Values.persistence.size | quote }} + storageClassName: {{ .Values.persistence.storageClassName }} +{{- end -}} -- cgit 1.2.3-korg