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

@@ -707,6 +707,13 @@ func (in *RunnerPodSpec) DeepCopyInto(out *RunnerPodSpec) {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
if in.TopologySpreadConstraints != nil {
in, out := &in.TopologySpreadConstraints, &out.TopologySpreadConstraints
*out = make([]v1.TopologySpreadConstraint, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
if in.RuntimeClassName != nil {
in, out := &in.RuntimeClassName, &out.RuntimeClassName
*out = new(string)