Skip to content

Commit 465b87c

Browse files
authored
chore: add topologySpreadConstraints to github-actions-runners (#27)
1 parent 1ee67e3 commit 465b87c

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

charts/github-actions-runners/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ apiVersion: v2
22
name: github-actions-runners
33
description: A Helm chart for provisioning Github Actions runners
44
type: application
5-
version: 0.3.0
5+
version: 0.3.1
66
maintainers:
77
- name: SweetOps

charts/github-actions-runners/templates/runnerdeployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ spec:
6262
tolerations:
6363
{{- toYaml . | nindent 8 }}
6464
{{- end }}
65+
{{- with (default $.Values.global.topologySpreadConstraints .topologySpreadConstraints) }}
66+
topologySpreadConstraints:
67+
{{- toYaml . | nindent 8 }}
68+
{{- end }}
6569
resources:
6670
{{- toYaml (default $.Values.global.resources .resources) | nindent 8 }}
6771
{{- with (default $.Values.global.env .env) }}

charts/github-actions-runners/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ global:
1919
nodeSelector: {}
2020
tolerations: []
2121
affinity: {}
22+
topologySpreadConstraints: {}
2223

2324
serviceAccount:
2425
# Specifies whether a service account should be created
@@ -116,6 +117,8 @@ runnerDeployments:
116117

117118
affinity: {}
118119

120+
topologySpreadConstraints: {}
121+
119122
env:
120123
[]
121124
# - name: RUNNER_FEATURE_FLAG_EPHEMERAL

0 commit comments

Comments
 (0)