From afbd2506361b38dcc3bb7a3011bbf3f5228a5acf Mon Sep 17 00:00:00 2001 From: Anton Patsev Date: Fri, 11 Oct 2024 11:25:17 +0600 Subject: [PATCH] fix: update geoip job hooks and volume handling --- charts/sentry/templates/deployment-geoip-job.yaml | 2 +- charts/sentry/templates/pvc-geoip.yaml | 2 +- charts/sentry/values.yaml | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/charts/sentry/templates/deployment-geoip-job.yaml b/charts/sentry/templates/deployment-geoip-job.yaml index 439cb623e..58c88754d 100644 --- a/charts/sentry/templates/deployment-geoip-job.yaml +++ b/charts/sentry/templates/deployment-geoip-job.yaml @@ -4,7 +4,7 @@ kind: Job metadata: name: geoip-install-job annotations: - "helm.sh/hook": "post-install" + "helm.sh/hook": "post-install,post-upgrade" "helm.sh/hook-weight": "9" spec: template: diff --git a/charts/sentry/templates/pvc-geoip.yaml b/charts/sentry/templates/pvc-geoip.yaml index d8ee96010..42814a492 100644 --- a/charts/sentry/templates/pvc-geoip.yaml +++ b/charts/sentry/templates/pvc-geoip.yaml @@ -9,7 +9,7 @@ metadata: release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" annotations: - "helm.sh/hook": "pre-install" + "helm.sh/hook": "pre-install,pre-upgrade" "helm.sh/hook-weight": "-1" spec: accessModes: diff --git a/charts/sentry/values.yaml b/charts/sentry/values.yaml index f6a77918c..eca606ae4 100644 --- a/charts/sentry/values.yaml +++ b/charts/sentry/values.yaml @@ -167,11 +167,11 @@ geodata: ## GKE, AWS & OpenStack) # storageClass: "" # for example: csi-s3 size: 1Gi - volumeName: "" # for example: data-sentry-geoip + volumeName: "" # for example: data-sentry-geoip # mountPath of the volume containing the database - mountPath: "" # for example: /usr/share/GeoIP + mountPath: "" # for example: /usr/share/GeoIP # path to the geoip database inside the volumemount - path: "" # for example: /usr/share/GeoIP/GeoLite2-City.mmdb + path: "" # for example: /usr/share/GeoIP/GeoLite2-City.mmdb sentry: # to not generate a sentry-secret, use these 2 values to reference an existing secret