From c09d6075c603a7469dc264db10dcac6745b7bef7 Mon Sep 17 00:00:00 2001 From: Viktor Anderling Date: Tue, 25 May 2021 03:23:08 +0200 Subject: [PATCH] Add topologySpreadConstraints to helm chart (#569) This commit adds the ability to use topologySpreadConstraints in the helm chart by populating either one or both of topologySpreadConstraints and githubWebhookServer.topologySpreadConstraints values. See the official docs: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/ Resolves #567 --- charts/actions-runner-controller/templates/deployment.yaml | 4 ++++ .../templates/githubwebhook.deployment.yaml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/charts/actions-runner-controller/templates/deployment.yaml b/charts/actions-runner-controller/templates/deployment.yaml index 41c190bc..f0c8cb8b 100644 --- a/charts/actions-runner-controller/templates/deployment.yaml +++ b/charts/actions-runner-controller/templates/deployment.yaml @@ -137,3 +137,7 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.topologySpreadConstraints }} + topologySpreadConstraints: + {{- toYaml . | nindent 8 }} + {{- end }} diff --git a/charts/actions-runner-controller/templates/githubwebhook.deployment.yaml b/charts/actions-runner-controller/templates/githubwebhook.deployment.yaml index eacf4c1a..5655fed0 100644 --- a/charts/actions-runner-controller/templates/githubwebhook.deployment.yaml +++ b/charts/actions-runner-controller/templates/githubwebhook.deployment.yaml @@ -89,4 +89,8 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.githubWebhookServer.topologySpreadConstraints }} + topologySpreadConstraints: + {{- toYaml . | nindent 8 }} + {{- end }} {{- end }}