From d16e0f027ce56a9cab2310b6c48b3b47c07584b4 Mon Sep 17 00:00:00 2001 From: desmax74 Date: Thu, 27 Jul 2023 19:23:54 +0200 Subject: [PATCH] [KOGITO-8792] Review build failures and signal the reasoning in the Events API Signed-off-by: desmax74 --- controllers/builder/containerbuilder.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/controllers/builder/containerbuilder.go b/controllers/builder/containerbuilder.go index ef8f8a492..ef1fc7010 100644 --- a/controllers/builder/containerbuilder.go +++ b/controllers/builder/containerbuilder.go @@ -64,11 +64,9 @@ func (c *containerBuilderManager) Schedule(build *operatorapi.SonataFlowBuild) e if err = build.Status.SetInnerBuild(containerBuilder); err != nil { return err } - if containerBuilder != nil { - build.Status.BuildPhase = operatorapi.BuildPhase(containerBuilder.Status.Phase) - build.Status.Error = containerBuilder.Status.Error - build.Status.ImageTag = imageNameTag - } + build.Status.BuildPhase = operatorapi.BuildPhase(containerBuilder.Status.Phase) + build.Status.Error = containerBuilder.Status.Error + build.Status.ImageTag = imageNameTag return nil }