Skip to content

Commit 87b0aff

Browse files
committed
Add topologySpreadConstraints to helm chart
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/
1 parent 906ddac commit 87b0aff

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

charts/actions-runner-controller/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,7 @@ spec:
137137
tolerations:
138138
{{- toYaml . | nindent 8 }}
139139
{{- end }}
140+
{{- with .Values.topologySpreadConstraints }}
141+
topologySpreadConstraints:
142+
{{- toYaml . | nindent 8 }}
143+
{{- end }}

charts/actions-runner-controller/templates/githubwebhook.deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,8 @@ spec:
8989
tolerations:
9090
{{- toYaml . | nindent 8 }}
9191
{{- end }}
92+
{{- with .Values.githubWebhookServer.topologySpreadConstraints }}
93+
topologySpreadConstraints:
94+
{{- toYaml . | nindent 8 }}
95+
{{- end }}
9296
{{- end }}

0 commit comments

Comments
 (0)