From 1c5bc2c64c46352faa3ae36fc4a1c8fa1c9e1ad0 Mon Sep 17 00:00:00 2001 From: mugi <62197019+mugioka@users.noreply.github.com> Date: Sat, 3 Feb 2024 22:23:45 +0900 Subject: [PATCH] [prometheus-statsd-exporter] support topologySpreadConstraints settings. (#4197) Signed-off-by: mugioka --- charts/prometheus-statsd-exporter/Chart.yaml | 2 +- charts/prometheus-statsd-exporter/templates/deployment.yaml | 4 ++++ charts/prometheus-statsd-exporter/values.yaml | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/charts/prometheus-statsd-exporter/Chart.yaml b/charts/prometheus-statsd-exporter/Chart.yaml index fba8b0f842c4..1350723bba9b 100644 --- a/charts/prometheus-statsd-exporter/Chart.yaml +++ b/charts/prometheus-statsd-exporter/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: prometheus-statsd-exporter description: A Helm chart for prometheus stats-exporter -version: 0.12.0 +version: 0.13.0 appVersion: v0.26.0 home: https://github.com/prometheus/statsd_exporter sources: diff --git a/charts/prometheus-statsd-exporter/templates/deployment.yaml b/charts/prometheus-statsd-exporter/templates/deployment.yaml index 69953f531b57..9c5204e636f1 100644 --- a/charts/prometheus-statsd-exporter/templates/deployment.yaml +++ b/charts/prometheus-statsd-exporter/templates/deployment.yaml @@ -115,3 +115,7 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.topologySpreadConstraints }} + topologySpreadConstraints: + {{- toYaml . | nindent 8 }} + {{- end }} diff --git a/charts/prometheus-statsd-exporter/values.yaml b/charts/prometheus-statsd-exporter/values.yaml index cd52d788c587..c66156e40896 100644 --- a/charts/prometheus-statsd-exporter/values.yaml +++ b/charts/prometheus-statsd-exporter/values.yaml @@ -172,3 +172,5 @@ nodeSelector: {} tolerations: [] affinity: {} + +topologySpreadConstraints: []