From b82916f9bc7687f4e537798b2ff98d244f135ff8 Mon Sep 17 00:00:00 2001 From: Kien Bui Date: Wed, 3 Jun 2020 20:44:11 +0300 Subject: [PATCH] Sentry add hook pod tolerations (#22648) Signed-off-by: Kien Bui --- stable/sentry/Chart.yaml | 2 +- stable/sentry/README.md | 1 + stable/sentry/templates/hooks/db-init.job.yaml | 4 ++++ stable/sentry/templates/hooks/user-create.job.yaml | 4 ++++ stable/sentry/values.yaml | 1 + 5 files changed, 11 insertions(+), 1 deletion(-) diff --git a/stable/sentry/Chart.yaml b/stable/sentry/Chart.yaml index 3bf3090dec..2ff0b86826 100644 --- a/stable/sentry/Chart.yaml +++ b/stable/sentry/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 description: Sentry is a cross-platform crash reporting and aggregation platform. name: sentry -version: 4.2.1 +version: 4.2.3 appVersion: 9.1.2 keywords: - debugging diff --git a/stable/sentry/README.md b/stable/sentry/README.md index 1e4be936e7..2557668691 100644 --- a/stable/sentry/README.md +++ b/stable/sentry/README.md @@ -194,6 +194,7 @@ Parameter | Description `metrics.serviceMonitor.interval` | How frequently to scrape metrics (use by default, falling back to Prometheus' default) | `nil` `metrics.serviceMonitor.selector` | Default to kube-prometheus install (CoreOS recommended), but should be set according to Prometheus install | `{ prometheus: kube-prometheus }` `hooks.affinity` | Affinity settings for hooks pods | `{}` +`hooks.tolerations` | Toleration labels for hook pod assignment | `[]` `hooks.dbInit.enabled` | Boolean to enable the dbInit job using a hook | `true` `hooks.dbInit.resources.limits` | Hook job resource limits | `{memory: 3200Mi}` `hooks.dbInit.resources.requests` | Hook job resource requests | `{memory: 3000Mi}` diff --git a/stable/sentry/templates/hooks/db-init.job.yaml b/stable/sentry/templates/hooks/db-init.job.yaml index 7ef9e61066..c9140a89c5 100644 --- a/stable/sentry/templates/hooks/db-init.job.yaml +++ b/stable/sentry/templates/hooks/db-init.job.yaml @@ -31,6 +31,10 @@ spec: {{- with .Values.hooks.affinity }} affinity: {{ toYaml . | indent 8 }} + {{- end }} + {{- if .Values.hooks.tolerations }} + tolerations: +{{ toYaml .Values.hooks.tolerations | indent 8 }} {{- end }} restartPolicy: Never {{- if .Values.image.imagePullSecrets }} diff --git a/stable/sentry/templates/hooks/user-create.job.yaml b/stable/sentry/templates/hooks/user-create.job.yaml index 9251e6276c..b4e7461fef 100644 --- a/stable/sentry/templates/hooks/user-create.job.yaml +++ b/stable/sentry/templates/hooks/user-create.job.yaml @@ -30,6 +30,10 @@ spec: {{- with .Values.hooks.affinity }} affinity: {{ toYaml . | indent 8 }} + {{- end }} + {{- if .Values.hooks.tolerations }} + tolerations: +{{ toYaml .Values.hooks.tolerations | indent 8 }} {{- end }} restartPolicy: Never {{- if .Values.image.imagePullSecrets }} diff --git a/stable/sentry/values.yaml b/stable/sentry/values.yaml index 2a07960787..99a76e625b 100644 --- a/stable/sentry/values.yaml +++ b/stable/sentry/values.yaml @@ -315,6 +315,7 @@ metrics: # Provide affinity for hooks if needed hooks: affinity: {} + tolerations: [] dbInit: enabled: true resources: