What happened:
Gardener sets topologySpreadConstraints[].minDomains (added in Kubernetes 1.24) in StatefulSets and Deployments. With Kupid modifying affected resources, the field is removed again.
What you expected to happen:
minDomains to remain in the podTemplate specification.
How to reproduce it (as minimally and precisely as possible):
Deploy and configure Kupid to modify a Deployment, and set topologySpreadConstraints[].minDomains`.
Anything else we need to know:
Kupid's sources are based on k8s.io/api v0.23.3 which does not include this field. This is possibly the root cause of the problem, i.e. the patch is not calculated properly.
What happened: Gardener sets
topologySpreadConstraints[].minDomains
(added in Kubernetes 1.24) in StatefulSets and Deployments. With Kupid modifying affected resources, the field is removed again.What you expected to happen:
minDomains
to remain in thepodTemplate
specification.How to reproduce it (as minimally and precisely as possible): Deploy and configure Kupid to modify a
Deployment
, and set topologySpreadConstraints[].minDomains`.Anything else we need to know: Kupid's sources are based on
k8s.io/api v0.23.3
which does not include this field. This is possibly the root cause of the problem, i.e. the patch is not calculated properly.