diff --git a/charts/sentry/README.md b/charts/sentry/README.md index 2999606e3..c59790238 100644 --- a/charts/sentry/README.md +++ b/charts/sentry/README.md @@ -1207,14 +1207,11 @@ geodata: licenseKey: "example" editionIDs: "example" persistence: - ## database data Persistent Volume Storage Class ## If defined, storageClassName: - ## If set to "-", storageClassName: "", which disables dynamic provisioning ## If undefined (the default) or set to null, no storageClassName spec is ## set, choosing the default provisioner. (gp2 on AWS, standard on ## GKE, AWS & OpenStack) - ## - # storageClass: "-" + # storageClass: "" size: 1Gi volumeName: "data-sentry-geoip" # mountPath of the volume containing the database diff --git a/charts/sentry/templates/pvc-geoip.yaml b/charts/sentry/templates/pvc-geoip.yaml index 863503f07..46ca5d970 100644 --- a/charts/sentry/templates/pvc-geoip.yaml +++ b/charts/sentry/templates/pvc-geoip.yaml @@ -14,9 +14,7 @@ spec: resources: requests: storage: {{ .Values.geodata.persistence.size }} -{{- if (eq "-" .Values.geodata.persistence.storageClass) }} - storageClassName: "" -{{- else }} - storageClassName: "{{ .Values.geodata.persistence.storageClass }}" - {{- end }} +{{- if .Values.geodata.persistence.storageClass }} + storageClassName: {{ .Values.geodata.persistence.storageClass | quote }} +{{- end }} {{- end }} diff --git a/charts/sentry/values.yaml b/charts/sentry/values.yaml index 48ea250c4..ec61a3e9f 100644 --- a/charts/sentry/values.yaml +++ b/charts/sentry/values.yaml @@ -161,13 +161,10 @@ geodata: licenseKey: "" editionIDs: "" persistence: - ## database data Persistent Volume Storage Class ## If defined, storageClassName: - ## If set to "-", storageClassName: "", which disables dynamic provisioning ## If undefined (the default) or set to null, no storageClassName spec is ## set, choosing the default provisioner. (gp2 on AWS, standard on ## GKE, AWS & OpenStack) - ## # storageClass: "-" size: 1Gi volumeName: ""