Skip to content

Commit

Permalink
[KOGITO-8792] Review build failures and signal the reasoning in the E…
Browse files Browse the repository at this point in the history
…vents API

Signed-off-by: desmax74 <[email protected]>
  • Loading branch information
desmax74 committed Jul 27, 2023
1 parent 6f843b3 commit d16e0f0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions controllers/builder/containerbuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit d16e0f0

Please sign in to comment.