kubernetes/pkg/registry/core/pod/storage
Michael Gugino 717be0cd44 Allow deletion of unhealthy pods if enough healthy
Currently, if you have a PDB with 0 disruptions
available and you attempt to evict a non-healthy
pod, the eviction request will always fail.  This
is because the eviction API does not currently
take in to account that the pod you are removing
is the unhealthy one.

This commit accounts for trying to evict an
unhealthy pod as long as there are enough healthy
pods to satisfy the PDB's requirements.  To
protect against race conditions, a ResourceVersion
constraint is enforced.  This will ensure that
the target pod does not go healthy and allow
any race condition to occur which might disrupt
too many pods at once.

This commit also eliminates superfluous class to
DeepCopy for the deleteOptions struct.
2020-10-20 12:59:23 -04:00
..
BUILD Allow deletion of unhealthy pods if enough healthy 2020-10-20 12:59:23 -04:00
eviction_test.go Allow deletion of unhealthy pods if enough healthy 2020-10-20 12:59:23 -04:00
eviction.go Allow deletion of unhealthy pods if enough healthy 2020-10-20 12:59:23 -04:00
storage_test.go Fix resource location for ipv6 pods 2020-09-16 11:24:07 -04:00
storage.go Use EphemeralContainers for storage validation 2020-09-10 17:24:52 +02:00