check err

Signed-off-by: yupengzte <yu.peng36@zte.com.cn>
This commit is contained in:
yupengzte 2017-05-09 19:45:44 +08:00
parent 20fa30e4b5
commit 32a3c1fe84

View File

@ -488,6 +488,9 @@ func (fdc *DeploymentController) reconcileDeployment(key string) (reconciliation
return statusError, err
}
podStatus, err := podanalyzer.AnalysePods(fd.Spec.Selector, allPods, time.Now())
if err != nil {
return statusError, err
}
current := make(map[string]int64)
estimatedCapacity := make(map[string]int64)
for _, cluster := range clusters {