From 465b87ce1b05364f4d5d2018c1a3c86db917cf49 Mon Sep 17 00:00:00 2001 From: Volodymyr S <26582191+SweetOps@users.noreply.github.com> Date: Fri, 20 Oct 2023 12:59:03 -0400 Subject: [PATCH] chore: add topologySpreadConstraints to github-actions-runners (#27) --- charts/github-actions-runners/Chart.yaml | 2 +- charts/github-actions-runners/templates/runnerdeployment.yaml | 4 ++++ charts/github-actions-runners/values.yaml | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/charts/github-actions-runners/Chart.yaml b/charts/github-actions-runners/Chart.yaml index 7f05e5b..87cd00b 100644 --- a/charts/github-actions-runners/Chart.yaml +++ b/charts/github-actions-runners/Chart.yaml @@ -2,6 +2,6 @@ apiVersion: v2 name: github-actions-runners description: A Helm chart for provisioning Github Actions runners type: application -version: 0.3.0 +version: 0.3.1 maintainers: - name: SweetOps diff --git a/charts/github-actions-runners/templates/runnerdeployment.yaml b/charts/github-actions-runners/templates/runnerdeployment.yaml index 26e3caf..9c9cd53 100644 --- a/charts/github-actions-runners/templates/runnerdeployment.yaml +++ b/charts/github-actions-runners/templates/runnerdeployment.yaml @@ -62,6 +62,10 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + {{- with (default $.Values.global.topologySpreadConstraints .topologySpreadConstraints) }} + topologySpreadConstraints: + {{- toYaml . | nindent 8 }} + {{- end }} resources: {{- toYaml (default $.Values.global.resources .resources) | nindent 8 }} {{- with (default $.Values.global.env .env) }} diff --git a/charts/github-actions-runners/values.yaml b/charts/github-actions-runners/values.yaml index 56ed952..07fe130 100644 --- a/charts/github-actions-runners/values.yaml +++ b/charts/github-actions-runners/values.yaml @@ -19,6 +19,7 @@ global: nodeSelector: {} tolerations: [] affinity: {} + topologySpreadConstraints: {} serviceAccount: # Specifies whether a service account should be created @@ -116,6 +117,8 @@ runnerDeployments: affinity: {} + topologySpreadConstraints: {} + env: [] # - name: RUNNER_FEATURE_FLAG_EPHEMERAL