From 683a7ad0ba3d3698e7c9375580ac63355ea32c3c Mon Sep 17 00:00:00 2001 From: somaz Date: Wed, 24 Jun 2026 11:07:22 +0900 Subject: [PATCH] feat: add topologySpreadConstraints support to kured daemonset Signed-off-by: somaz --- charts/kured/Chart.yaml | 2 +- charts/kured/README.md | 1 + charts/kured/templates/daemonset.yaml | 4 ++++ charts/kured/values.yaml | 2 ++ 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/charts/kured/Chart.yaml b/charts/kured/Chart.yaml index d8e59a5..797e252 100644 --- a/charts/kured/Chart.yaml +++ b/charts/kured/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: "1.23.0" description: A Helm chart for kured name: kured -version: 6.1.0 +version: 6.2.0 home: https://github.com/kubereboot/kured maintainers: - name: chopf diff --git a/charts/kured/README.md b/charts/kured/README.md index b0fcc26..0f6bda1 100644 --- a/charts/kured/README.md +++ b/charts/kured/README.md @@ -159,6 +159,7 @@ The following changes have been made compared to the stable chart: | `priorityClassName` | Priority Class to be used by the pods | `""` | | `tolerations` | Tolerations to apply to the daemonset (eg to allow running on master) | `[{"key": "node-role.kubernetes.io/control-plane", "effect": "NoSchedule"}]` for Kubernetes 1.24.0 and greater, otherwise `[{"key": "node-role.kubernetes.io/master", "effect": "NoSchedule"}]`| | `affinity` | Affinity for the daemonset (ie, restrict which nodes kured runs on) | `{}` | +| `topologySpreadConstraints` | Topology spread constraints for the daemonset pods | `[]` | | `hostNetwork` | Pod uses the host network instead of the cluster network | `false` | | `nodeSelector` | Node Selector for the daemonset (ie, restrict which nodes kured runs on) | `{ "kubernetes.io/os": "linux" }` | | `volumeMounts` | Maps of volumes mount to mount | `{}` | diff --git a/charts/kured/templates/daemonset.yaml b/charts/kured/templates/daemonset.yaml index 050aed5..a2a90ef 100644 --- a/charts/kured/templates/daemonset.yaml +++ b/charts/kured/templates/daemonset.yaml @@ -244,6 +244,10 @@ spec: {{- end }} {{- with .Values.affinity }} affinity: +{{ toYaml . | indent 8 }} + {{- end }} + {{- with .Values.topologySpreadConstraints }} + topologySpreadConstraints: {{ toYaml . | indent 8 }} {{- end }} {{- if or .Values.volumes .Values.configuration.useRebootSentinelHostPath }} diff --git a/charts/kured/values.yaml b/charts/kured/values.yaml index fbff176..291ed08 100644 --- a/charts/kured/values.yaml +++ b/charts/kured/values.yaml @@ -149,6 +149,8 @@ tolerations: [] affinity: {} +topologySpreadConstraints: [] + nodeSelector: kubernetes.io/os: linux