From 75a2b3bca860d479dfe9ddf29dbad1cd45776d6c Mon Sep 17 00:00:00 2001 From: ampant Date: Mon, 19 Aug 2019 15:02:27 +0530 Subject: [PATCH] Fix for reporting minion events --- internal/k8s/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/k8s/controller.go b/internal/k8s/controller.go index 2c5cc4f012..e5616a70ae 100644 --- a/internal/k8s/controller.go +++ b/internal/k8s/controller.go @@ -742,7 +742,7 @@ func (lbc *LoadBalancerController) syncIng(task task) { } lbc.recorder.Eventf(ing, eventType, eventTitle, "Configuration for %v(Master) was added or updated %s", key, eventWarningMessage) for _, minion := range mergeableIngExs.Minions { - lbc.recorder.Eventf(ing, eventType, eventTitle, "Configuration for %v/%v(Minion) was added or updated %s", minion.Ingress.Namespace, minion.Ingress.Name, eventWarningMessage) + lbc.recorder.Eventf(minion.Ingress, eventType, eventTitle, "Configuration for %v/%v(Minion) was added or updated %s", minion.Ingress.Namespace, minion.Ingress.Name, eventWarningMessage) } if lbc.reportStatusEnabled() {