Skip to content

Commit

Permalink
chore: add topologySpreadConstraints to github-actions-runners (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
SweetOps authored Oct 20, 2023
1 parent 1ee67e3 commit 465b87c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/github-actions-runners/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions charts/github-actions-runners/templates/runnerdeployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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) }}
Expand Down
3 changes: 3 additions & 0 deletions charts/github-actions-runners/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ global:
nodeSelector: {}
tolerations: []
affinity: {}
topologySpreadConstraints: {}

serviceAccount:
# Specifies whether a service account should be created
Expand Down Expand Up @@ -116,6 +117,8 @@ runnerDeployments:

affinity: {}

topologySpreadConstraints: {}

env:
[]
# - name: RUNNER_FEATURE_FLAG_EPHEMERAL
Expand Down

0 comments on commit 465b87c

Please sign in to comment.