fix sonarStatus api NEP, return [] if could not get last run

Signed-off-by: runzexia <runzexia@yunify.com>
This commit is contained in:
runzexia
2019-05-14 16:29:54 +08:00
parent 86c7cf6185
commit a6f46bc84a
2 changed files with 7 additions and 2 deletions

View File

@@ -369,7 +369,6 @@ func createOrUpdateRouterWorkload(namespace string, publishService bool, service
}
}
if deployment.Spec.Template.Annotations == nil {
deployment.Spec.Template.Annotations = make(map[string]string, 0)
}