• Michail Kargakis's avatar
    kubectl: bring the rolling updater on par with the deployments · b390087a
    Michail Kargakis authored
    During a rolling update for Deployments, the total count of surge pods
    is calculated by adding the desired number of pods (deployment.Spec.Replicas)
    to maxSurge. During a kubectl rolling update, the total count of surge
    pods is calculated by adding the original number of pods (oldRc.Spec.Replicas
    via an annotation) to maxSurge. This commit changes this to use desired
    replicas.
    b390087a
rolling_updater.go 27.9 KB