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: