From 890b126bdd2bc1752560e3e1f784d0d479a428c7 Mon Sep 17 00:00:00 2001 From: Akshay Iyyadurai Balasundaram Date: Tue, 22 Oct 2024 12:03:42 +0200 Subject: [PATCH] [ENHANCEMENT] Refactor PVC configuration Signed-off-by: Akshay Iyyadurai Balasundaram --- charts/perses/templates/pvc.yaml | 2 ++ charts/perses/values.schema.json | 3 +-- charts/perses/values.yaml | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/charts/perses/templates/pvc.yaml b/charts/perses/templates/pvc.yaml index 046ff18..658eaa4 100644 --- a/charts/perses/templates/pvc.yaml +++ b/charts/perses/templates/pvc.yaml @@ -11,7 +11,9 @@ metadata: {{- toYaml . | nindent 4 }} {{- end }} spec: +{{- if .Values.persistence.storageClass }} storageClassName: {{ .Values.persistence.storageClass }} +{{- end }} accessModes: {{- range .Values.persistence.accessModes }} - {{ . | quote }} diff --git a/charts/perses/values.schema.json b/charts/perses/values.schema.json index a7d2005..bf2d9eb 100644 --- a/charts/perses/values.schema.json +++ b/charts/perses/values.schema.json @@ -430,8 +430,7 @@ "required": [ "accessModes", "enabled", - "size", - "storageClass" + "size" ] }, "livenessProbe": { diff --git a/charts/perses/values.yaml b/charts/perses/values.yaml index 12011fc..9df36b1 100644 --- a/charts/perses/values.yaml +++ b/charts/perses/values.yaml @@ -149,8 +149,8 @@ persistence: # -- If disabled, it will use a emptydir volume enabled: false - # -- Specify the `storageClass` used to provision the volume - storageClass: "default" + # -- Specify the `storageClass` to provision the volume for the PVC. If you don't specify a `storageClass`, a default `storageClass` will be used. + # storageClass: "" # -- PVC Access Modes for data volume accessModes: