From 826051ac54dd7d8ce8a8c6685537bce74aa3c565 Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Thu, 15 Oct 2020 16:12:58 +0300 Subject: [PATCH] Set correct status on failure events Signed-off-by: Stefan Prodan --- controllers/kustomization_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/kustomization_controller.go b/controllers/kustomization_controller.go index 0a798195..0d374a32 100644 --- a/controllers/kustomization_controller.go +++ b/controllers/kustomization_controller.go @@ -188,7 +188,7 @@ func (r *KustomizationReconciler) Reconcile(req ctrl.Request) (ctrl.Result, erro reconciledKustomization, reconcileErr := r.reconcile(*kustomization.DeepCopy(), source) if reconcileErr != nil { // broadcast the error - r.event(kustomization, source.GetArtifact().Revision, events.EventSeverityError, reconcileErr.Error(), nil) + r.event(reconciledKustomization, source.GetArtifact().Revision, events.EventSeverityError, reconcileErr.Error(), nil) } // update status