From d4be96fd3ebf4c0e329d6e6b22d7e42f57608b52 Mon Sep 17 00:00:00 2001 From: Zihong Zheng Date: Fri, 9 Feb 2018 11:30:15 -0800 Subject: [PATCH] Emit event on RuntimeInfo error --- pkg/controller/controller.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/controller/controller.go b/pkg/controller/controller.go index 333a799ee9..73f7ec6491 100644 --- a/pkg/controller/controller.go +++ b/pkg/controller/controller.go @@ -295,6 +295,7 @@ func (lbc *LoadBalancerController) sync(key string) (err error) { } lb, err := lbc.toRuntimeInfo(ing) if err != nil { + lbc.ctx.Recorder(ing.Namespace).Eventf(ing, apiv1.EventTypeWarning, "Ingress", err.Error()) return err } lbs := []*loadbalancers.L7RuntimeInfo{lb}