Add topologySpreadConstraints (#814)

This commit is contained in:
Maxim Pogozhiy
2021-10-18 06:49:44 +10:00
committed by GitHub
parent 5805e39e1f
commit fce7d6d2a7
10 changed files with 322 additions and 0 deletions

View File

@@ -680,6 +680,10 @@ func (r *RunnerReconciler) newPod(runner v1alpha1.Runner) (corev1.Pod, error) {
pod.Spec.Tolerations = runnerSpec.Tolerations
}
if len(runnerSpec.TopologySpreadConstraints) != 0 {
pod.Spec.TopologySpreadConstraints = runnerSpec.TopologySpreadConstraints
}
if len(runnerSpec.EphemeralContainers) != 0 {
pod.Spec.EphemeralContainers = runnerSpec.EphemeralContainers
}