lburgazzoli commented on a change in pull request #128: Report correct build 
status in case of failure
URL: https://github.com/apache/camel-k/pull/128#discussion_r220199877
 
 

 ##########
 File path: pkg/stub/action/integration/build.go
 ##########
 @@ -81,6 +81,15 @@ func (action *buildAction) Handle(integration 
*v1alpha1.Integration) error {
                        return sdk.Update(target)
                }
 
+               if ctx.Status.Phase == v1alpha1.IntegrationContextPhaseError {
+                       target := integration.DeepCopy()
+                       target.Status.Image = ctx.Status.Image
+                       target.Spec.Context = ctx.Name
+                       target.Status.Phase = v1alpha1.IntegrationPhaseError
 
 Review comment:
   if the integration is already in error phase, we can void updating it

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to