diff --git a/pkg/kubelego/kubelego.go b/pkg/kubelego/kubelego.go index d2331ab0..0de77a82 100644 --- a/pkg/kubelego/kubelego.go +++ b/pkg/kubelego/kubelego.go @@ -147,7 +147,9 @@ func (kl *KubeLego) Init() { go func() { for timestamp := range ticker.C { kl.Log().Infof("Periodically check certificates at %s", timestamp) - kl.requestReconfigure() + if err := kl.requestReconfigure(); err != nil { + kl.Log().Errorf("Error requesting reconfigure of certificates: %s", err) + } } }() diff --git a/pkg/kubelego/watch.go b/pkg/kubelego/watch.go index d63bf842..147de068 100644 --- a/pkg/kubelego/watch.go +++ b/pkg/kubelego/watch.go @@ -35,7 +35,7 @@ func (kl *KubeLego) requestReconfigure() error { return err } for _, ing := range allIng { - key, err := cache.MetaNamespaceKeyFunc(ing.Object) + key, err := cache.MetaNamespaceKeyFunc(ing.Object()) if err != nil { return err }