• Michail Kargakis's avatar
    controller: set unavailableReplicas correctly when scaling down · c82cae85
    Michail Kargakis authored
    deployment_controller.go:299] Error syncing deployment
    e2e-tests-kubectl-2l7xx/e2e-test-nginx-deployment:
    Deployment.extensions "e2e-test-nginx-deployment" is invalid:
    status.unavailableReplicas: Invalid value: -1:
    must be greater than or equal to 0
    
    The validation error above occurs usually when a Deployment is
    scaled down. In such a case we should default unavailableReplicas
    to 0 instead of making an invalid api call.
    c82cae85
sync.go 29.6 KB