From 82e249b0759b214a40f19e970c2e63b4501ba3b2 Mon Sep 17 00:00:00 2001 From: Lucas Graeff Buhl-Nielsen Date: Mon, 25 May 2026 16:37:36 +0100 Subject: [PATCH] [prometheus-yet-another-cloudwatch-exporter] Add topologySpreadConstraints support Signed-off-by: Lucas Graeff Buhl-Nielsen --- .../Chart.yaml | 2 +- .../templates/deployment.yaml | 4 ++++ .../values.yaml | 10 ++++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/charts/prometheus-yet-another-cloudwatch-exporter/Chart.yaml b/charts/prometheus-yet-another-cloudwatch-exporter/Chart.yaml index c6ece904787c..9991833d538b 100644 --- a/charts/prometheus-yet-another-cloudwatch-exporter/Chart.yaml +++ b/charts/prometheus-yet-another-cloudwatch-exporter/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: prometheus-yet-another-cloudwatch-exporter description: Yace - Yet Another CloudWatch Exporter type: application -version: 0.45.0 +version: 0.46.0 # renovate: github-releases=prometheus-community/yet-another-cloudwatch-exporter appVersion: "v0.65.0" home: https://github.com/prometheus-community/helm-charts diff --git a/charts/prometheus-yet-another-cloudwatch-exporter/templates/deployment.yaml b/charts/prometheus-yet-another-cloudwatch-exporter/templates/deployment.yaml index bf40df80899f..d49cd749bf6c 100644 --- a/charts/prometheus-yet-another-cloudwatch-exporter/templates/deployment.yaml +++ b/charts/prometheus-yet-another-cloudwatch-exporter/templates/deployment.yaml @@ -129,6 +129,10 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.topologySpreadConstraints }} + topologySpreadConstraints: + {{- toYaml . | nindent 8 }} + {{- end }} volumes: - configMap: defaultMode: 420 diff --git a/charts/prometheus-yet-another-cloudwatch-exporter/values.yaml b/charts/prometheus-yet-another-cloudwatch-exporter/values.yaml index 3e853a6ff0f2..968158386876 100644 --- a/charts/prometheus-yet-another-cloudwatch-exporter/values.yaml +++ b/charts/prometheus-yet-another-cloudwatch-exporter/values.yaml @@ -96,6 +96,16 @@ tolerations: [] affinity: {} +## Topology spread constraints +## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/ +topologySpreadConstraints: [] + # - maxSkew: 1 + # topologyKey: failure-domain.beta.kubernetes.io/zone + # whenUnsatisfiable: DoNotSchedule + # labelSelector: + # matchLabels: + # app.kubernetes.io/instance: + podDisruptionBudget: enabled: false minAvailable: 1