-
Kubernetes Submit Queue authored
Automatic merge from submit-queue controller: decouple cleanup policy from deployment strategies Deployments get cleaned up only when they are paused, they get scaled up/down, or when the strategy that drives rollouts completes. This means that stuck deployments that fall into none of the above categories will not get cleaned up. Since cleanup is already safe by itself (we only delete old replica sets that are synced by the replica set controller and have no replicas) we can execute it for every deployment when there is no intention to rollback. Fixes https://github.com/kubernetes/kubernetes/issues/40068
c40a668a