• Michail Kargakis's avatar
    controller: decouple cleanup policy from deployment strategies · d5227e36
    Michail Kargakis authored
    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.
    d5227e36
recreate.go 3.24 KB