From 4be5c2ec4def779bbc1b0001998030dd9bd97a85 Mon Sep 17 00:00:00 2001 From: Dean Coakley Date: Fri, 15 May 2020 16:43:00 +0100 Subject: [PATCH] Fix error logging of master/minion ingresses --- internal/k8s/controller.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/k8s/controller.go b/internal/k8s/controller.go index e6a8b7afa6..cf17d74177 100644 --- a/internal/k8s/controller.go +++ b/internal/k8s/controller.go @@ -603,7 +603,7 @@ func (lbc *LoadBalancerController) GetManagedIngresses() ([]extensions.Ingress, if isMinion(&ing) { master, err := lbc.FindMasterForMinion(&ing) if err != nil { - glog.Errorf("Ignoring Ingress %v(Minion): %v", ing, err) + glog.Errorf("Ignoring Ingress %v(Minion): %v", ing.Name, err) continue } if !lbc.configurator.HasIngress(master) { @@ -612,7 +612,7 @@ func (lbc *LoadBalancerController) GetManagedIngresses() ([]extensions.Ingress, if _, exists := mergeableIngresses[master.Name]; !exists { mergeableIngress, err := lbc.createMergableIngresses(master) if err != nil { - glog.Errorf("Ignoring Ingress %v(Master): %v", master, err) + glog.Errorf("Ignoring Ingress %v(Master): %v", master.Name, err) continue } mergeableIngresses[master.Name] = mergeableIngress @@ -1294,7 +1294,7 @@ func (lbc *LoadBalancerController) createIngresses(ings []extensions.Ingress) (r } mergeableIng, err := lbc.createMergableIngresses(master) if err != nil { - glog.Errorf("Ignoring Ingress %v(Master): %v", master, err) + glog.Errorf("Ignoring Ingress %v(Master): %v", master.Name, err) continue }