Fix deployment unit test by adding a dummy update reactor

This commit is contained in:
nikhiljindal
2017-02-03 12:16:13 -08:00
parent 64643c6582
commit 740aa93838
3 changed files with 19 additions and 2 deletions

View File

@@ -420,8 +420,10 @@ func (fdc *DeploymentController) schedule(fd *extensionsv1.Deployment, clusters
if fdPref != nil { // create a new planner if user specified a preference
plannerToBeUsed = planner.NewPlanner(fdPref)
}
replicas := int64(*fd.Spec.Replicas)
replicas := int64(0)
if fd.Spec.Replicas != nil {
replicas = int64(*fd.Spec.Replicas)
}
var clusterNames []string
for _, cluster := range clusters {
clusterNames = append(clusterNames, cluster.Name)