fixed kv errors

This commit is contained in:
ston1th 2021-03-07 14:04:06 +01:00
commit ab12dd67d4
4 changed files with 16 additions and 15 deletions

View file

@ -45,8 +45,8 @@ func NewLBController(cfg *config.Config, srv *api.Server, log logr.Logger) (call
for {
cc.Info("leading", "id", cc.ID())
ips, err := db.GetIPs()
if err != nil {
cc.Error(err, "error updating haproxy config")
if err != nil && err != cluster.ErrPrefixNotFound {
cc.Error(err, "error reading ip list")
<-t.C
continue
}