Skip to content

Commit

Permalink
fix: correct storageClass handling for geodata persistence (#1524)
Browse files Browse the repository at this point in the history
  • Loading branch information
patsevanton authored Oct 8, 2024
1 parent 6beaa85 commit b2f568d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
5 changes: 1 addition & 4 deletions charts/sentry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1207,14 +1207,11 @@ geodata:
licenseKey: "example"
editionIDs: "example"
persistence:
## database data Persistent Volume Storage Class
## If defined, storageClassName: <storageClass>
## 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
Expand Down
8 changes: 3 additions & 5 deletions charts/sentry/templates/pvc-geoip.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
3 changes: 0 additions & 3 deletions charts/sentry/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,10 @@ geodata:
licenseKey: ""
editionIDs: ""
persistence:
## database data Persistent Volume Storage Class
## If defined, storageClassName: <storageClass>
## 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: ""
Expand Down

0 comments on commit b2f568d

Please sign in to comment.