From 725fdd13a3499fe1b17c0930e6bdd9d72c12d65b Mon Sep 17 00:00:00 2001 From: Paul Date: Wed, 6 Aug 2025 09:41:34 +0200 Subject: [PATCH 1/2] feat/topologySpreadConstraints: 2025-08-06:feat/topologySpreadConstraints --- helm/kube-image-keeper/templates/controller-deployment.yaml | 4 ++++ helm/kube-image-keeper/templates/registry-deployment.yaml | 4 ++++ helm/kube-image-keeper/values.yaml | 2 ++ 3 files changed, 10 insertions(+) diff --git a/helm/kube-image-keeper/templates/controller-deployment.yaml b/helm/kube-image-keeper/templates/controller-deployment.yaml index a636640d..afd9f9d6 100644 --- a/helm/kube-image-keeper/templates/controller-deployment.yaml +++ b/helm/kube-image-keeper/templates/controller-deployment.yaml @@ -127,3 +127,7 @@ spec: defaultMode: 420 secretName: {{ .secretName }} {{- end }} + {{- if .Values.controllers.topologySpreadConstraints }} + topologySpreadConstraints: + {{- toYaml . | nindent 8 }} + {{- end }} diff --git a/helm/kube-image-keeper/templates/registry-deployment.yaml b/helm/kube-image-keeper/templates/registry-deployment.yaml index 7aac536e..6286a64b 100644 --- a/helm/kube-image-keeper/templates/registry-deployment.yaml +++ b/helm/kube-image-keeper/templates/registry-deployment.yaml @@ -157,4 +157,8 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + {{- if .Values.registry.topologySpreadConstraints }} + topologySpreadConstraints: + {{- toYaml . | nindent 8 }} + {{- end }} {{- end }} diff --git a/helm/kube-image-keeper/values.yaml b/helm/kube-image-keeper/values.yaml index af303c16..d436d328 100644 --- a/helm/kube-image-keeper/values.yaml +++ b/helm/kube-image-keeper/values.yaml @@ -102,6 +102,7 @@ controllers: extraLabels: {} # -- Relabel config for the PodMonitor, see: https://coreos.com/operators/prometheus/docs/latest/api.html#relabelconfig relabelings: [] + topologySpreadConstraints: [] proxy: image: @@ -343,6 +344,7 @@ registry: annotations: {} # -- Additional labels to add to the registry serviceAccount extraLabels: {} + topologySpreadConstraints: [] docker-registry-ui: # -- If true, enable the registry user interface From 3a9692611c2d94e1cc856efaafb0ae58286fc922 Mon Sep 17 00:00:00 2001 From: Paul Date: Wed, 6 Aug 2025 09:47:50 +0200 Subject: [PATCH 2/2] feat/topologySpreadConstraints2: 2025-08-06:feat/topologySpreadConstraints2 --- helm/kube-image-keeper/templates/controller-deployment.yaml | 2 +- helm/kube-image-keeper/templates/registry-deployment.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/helm/kube-image-keeper/templates/controller-deployment.yaml b/helm/kube-image-keeper/templates/controller-deployment.yaml index afd9f9d6..601c8e17 100644 --- a/helm/kube-image-keeper/templates/controller-deployment.yaml +++ b/helm/kube-image-keeper/templates/controller-deployment.yaml @@ -127,7 +127,7 @@ spec: defaultMode: 420 secretName: {{ .secretName }} {{- end }} - {{- if .Values.controllers.topologySpreadConstraints }} + {{- with .Values.controllers.topologySpreadConstraints }} topologySpreadConstraints: {{- toYaml . | nindent 8 }} {{- end }} diff --git a/helm/kube-image-keeper/templates/registry-deployment.yaml b/helm/kube-image-keeper/templates/registry-deployment.yaml index 6286a64b..442795d6 100644 --- a/helm/kube-image-keeper/templates/registry-deployment.yaml +++ b/helm/kube-image-keeper/templates/registry-deployment.yaml @@ -157,7 +157,7 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} - {{- if .Values.registry.topologySpreadConstraints }} + {{- with .Values.registry.topologySpreadConstraints }} topologySpreadConstraints: {{- toYaml . | nindent 8 }} {{- end }}