![]() 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. |
||
---|---|---|
.. | ||
BUILD | ||
eviction_test.go | ||
eviction.go | ||
storage_test.go | ||
storage.go |