Commit 77f4f802 authored by k8s-merge-robot's avatar k8s-merge-robot

Merge pull request #20958 from janetkuo/fix-mismatch

Auto commit by PR queue bot
parents 3522f7be a50267ab
...@@ -412,7 +412,7 @@ func (r *RollingUpdater) getOrCreateTargetControllerWithClient(controller *api.R ...@@ -412,7 +412,7 @@ func (r *RollingUpdater) getOrCreateTargetControllerWithClient(controller *api.R
return nil, false, err return nil, false, err
} }
if controller.Spec.Replicas <= 0 { if controller.Spec.Replicas <= 0 {
return nil, false, fmt.Errorf("Invalid controller spec for %s; required: > 0 replicas, actual: %d\n", controller.Name, controller.Spec) return nil, false, fmt.Errorf("Invalid controller spec for %s; required: > 0 replicas, actual: %d\n", controller.Name, controller.Spec.Replicas)
} }
// The controller wasn't found, so create it. // The controller wasn't found, so create it.
if controller.Annotations == nil { if controller.Annotations == nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment