hernanDatgDev opened a new issue, #4923:
URL: https://github.com/apache/camel-k/issues/4923

   ### What happened?
   
   After performing a `helm upgrade` of camel-k from version 2.0.0 > 2.1.0 the 
upgraded operator fails when building the integration kit image and as a result 
no integrations can be run. The error message from the upgraded operator when 
running a test integration is: "Build kit-clbu7f6l6e8c73f95f2g errored: 
**Cannot execute empty task in build** [default/kit-clbu7f6l6e8c73f95f2g]"
   
   Both of these versions of camel-k work as expected when installed directly 
with helm (no upgrade). Interestingly, the IP is identical whether camel-k is 
installed with 2.1.0 or upgraded.
   
   Relevant files:
   * IntegrationPlatform.yaml (as text) before & after the helm upgrade.
   * IntegrationPlatform.yaml (as text) after a `kamel` upgrade from version 
2.0.0 > 2.1.0
   
[ip-original.txt](https://github.com/apache/camel-k/files/13417813/ip-original.txt)
   
[ip-upgraded.txt](https://github.com/apache/camel-k/files/13417814/ip-upgraded.txt)
   
[ip-upgraded-kamel.txt](https://github.com/apache/camel-k/files/13417830/ip-upgraded-kamel.txt)
   
   
   ### Steps to reproduce
   
   1. Install camel-k 2.0.0 with helm
   `helm install camel-k -f myValues.yaml camel-k/camel-k --version 2.0.0`
   2. Upgrade to version 2.1.0 with helm
   `helm upgrade -f myValues.yaml camel-k camel-k/camel-k --version 2.1.0 
--force`
   3. Attempt to successfully run any integration
   `kamel run timer-log.groovy`
   
   📓 NOTE: myValues.yaml only contains basic configurations for container 
registry & maven settings
   
   ### Relevant log output
   
   ```shell
   
{"level":"debug","ts":"2023-11-17T22:05:56Z","logger":"camel-k.builder","msg":"base
 image: eclipse-temurin:17"}
   
{"level":"debug","ts":"2023-11-17T22:05:56Z","logger":"camel-k.builder","msg":"resolved
 base image: eclipse-temurin:17"}
   
{"level":"info","ts":"2023-11-17T22:05:56Z","logger":"camel-k.controller.build","msg":"Build
 duration 
8.182360494s","request-namespace":"default","request-name":"testing","build-attempt":0,"build-result":"Error","build-duration":8.182360494,"api-version":"camel.apache.org/v1","kind":"Build","ns":"default","name":"kit-clbu7f6l6e8c73f95f2g"}
   
{"level":"error","ts":"2023-11-17T22:05:56Z","logger":"camel-k.controller.build","msg":"Build
 kit-clbu7f6l6e8c73f95f2g errored: Cannot execute empty task in build 
[default/kit-clbu7f6l6e8c73f95f2g]","request-namespace":"default","request-name":"kit-clbu7f6l6e8c73f95f2g","api-version":"camel.apache.org/v1","kind":"Build","ns":"default","name":"kit-clbu7f6l6e8c73f95f2g","stacktrace":"github.com/apache/camel-k/v2/pkg/util/log.Logger.Errorf\n\tgithub.com/apache/camel-k/v2/pkg/util/log/log.go:60\ngithub.com/apache/camel-k/v2/pkg/controller/build.(*monitorRoutineAction).updateBuildStatus\n\tgithub.com/apache/camel-k/v2/pkg/controller/build/monitor_routine.go:218\ngithub.com/apache/camel-k/v2/pkg/controller/build.(*monitorRoutineAction).runBuild\n\tgithub.com/apache/camel-k/v2/pkg/controller/build/monitor_routine.go:200"}
   
{"level":"debug","ts":"2023-11-17T22:05:56Z","logger":"camel-k.controller.build","msg":"Reconciling
 Build","request-namespace":"default","request-name":"kit-clbu7f6l6e8c73f95f2g"}
   ```
   
   
   ### Camel K version
   
   2.0.0 & 2.1.0


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to