Skip to content

Commit

Permalink
Fix error logging of master/minion ingresses
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean-Coakley committed May 18, 2020
1 parent 2a7e10b commit 1740c64
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/k8s/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit 1740c64

Please sign in to comment.