From e2caa9fd1c1cdb8fc9ee43b1b0a57a2729ecd9f4 Mon Sep 17 00:00:00 2001 From: jlandowner Date: Thu, 13 Jun 2024 11:03:55 +0900 Subject: [PATCH] Fix #805 --- internal/controllers/instance_controller.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/controllers/instance_controller.go b/internal/controllers/instance_controller.go index d02fdd84..52a5c2bb 100644 --- a/internal/controllers/instance_controller.go +++ b/internal/controllers/instance_controller.go @@ -162,9 +162,9 @@ func (r *instanceReconciler) reconcileObjects(ctx context.Context, inst cosmov1a created, err := r.apply(ctx, &built, r.FieldManager) if err != nil { errs = append(errs, fmt.Errorf("failed to create resource: kind = %s name = %s: %w", built.GetKind(), built.GetName(), err)) - } else { - kosmo.InstanceEventf(r.Recorder, inst, corev1.EventTypeNormal, "Synced", "%s %s is created", built.GetKind(), built.GetName()) + continue } + kosmo.InstanceEventf(r.Recorder, inst, corev1.EventTypeNormal, "Synced", "%s %s is created", built.GetKind(), built.GetName()) currAppliedMap[created.GetUID()] = unstToObjectRef(created) } else {