Exit when losing leadership

This commit is contained in:
stefanprodan
2019-07-07 12:52:32 +03:00
parent b1bb9fa114
commit 10c61daee4
3 changed files with 15 additions and 11 deletions

View File

@@ -216,15 +216,6 @@ func (c *Controller) syncHandler(key string) error {
}
c.canaries.Store(fmt.Sprintf("%s.%s", cd.Name, cd.Namespace), cd)
//if cd.Spec.TargetRef.Kind == "Deployment" {
// err = c.bootstrapDeployment(cd)
// if err != nil {
// c.logger.Warnf("%s.%s bootstrap error %v", cd.Name, cd.Namespace, err)
// return err
// }
//}
c.logger.Infof("Synced %s", key)
return nil