nicolaferraro commented on a change in pull request #253: add an option to 
always generate a docker image
URL: https://github.com/apache/camel-k/pull/253#discussion_r238966668
 
 

 ##########
 File path: pkg/trait/deployment.go
 ##########
 @@ -39,12 +41,47 @@ func newDeploymentTrait() *deploymentTrait {
 }
 
 func (d *deploymentTrait) appliesTo(e *Environment) bool {
-       return e.Integration != nil && e.Integration.Status.Phase == 
v1alpha1.IntegrationPhaseDeploying
+       if e.Integration != nil && e.Integration.Status.Phase == 
v1alpha1.IntegrationPhaseDeploying {
+               return true
+       }
+
+       if d.ContainerImage == true &&
 
 Review comment:
   Maybe it makes more sense to move this code in a separate trait, there seems 
to be two distinct sections in this trait and the deployment trait is not 
active in all profiles.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to