camel-k: Integrations fail with Jib publish strategy
What happened?
Integrations do not run with publish strategy Jib. While using v2.1.0 the build fails before an image can be created with minimal logging detail While using v2.0.0 the build succeeds but the container is not able to be created/deployed
Steps to reproduce
- Install camel-k 2.1.0 or 2.0.0 with
--build-publish-strategy Jib - Run an integration
Relevant log output
2.1.0 logs:
{"level":"info","ts":"2023-12-21T21:16:07Z","logger":"camel-k.maven.build","msg":"OS name: \"linux\", version: \"5.15.49-linuxkit-pr\", arch: \"amd64\", family: \"unix\""}
{"level":"error","ts":"2023-12-21T21:16:22Z","logger":"camel-k","msg":"jib integration image containerization did not run successfully","error":": exit status 1","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/util/log.Errorf\n\tgithub.com/apache/camel-k/v2/pkg/util/log/log.go:227\ngithub.com/apache/camel-k/v2/pkg/builder.(*jibTask).Do\n\tgithub.com/apache/camel-k/v2/pkg/builder/jib.go:124\ngithub.com/apache/camel-k/v2/pkg/controller/build.(*monitorRoutineAction).runBuild\n\tgithub.com/apache/camel-k/v2/pkg/controller/build/monitor_routine.go:167"}
{"level":"info","ts":"2023-12-21T21:16:22Z","logger":"camel-k.controller.build","msg":"Build duration 25.49116277s","request-namespace":"default","request-name":"file-test","build-attempt":2,"build-result":"Failed","build-duration":25.49116277,"api-version":"camel.apache.org/v1","kind":"Build","ns":"default","name":"kit-cm2akkc738hs73cqta0g"}
2.0.0 integration event:
Cannot reconcile Integration file-test: error executing post actions: error during apply resource: default/file-test: Deployment.apps "file-test" is invalid: spec.template.spec.containers[0].image: Required value
2.0.0 logs:
{"level":"info","ts":1703194322.3954227,"logger":"camel-k.maven.build","msg":"BUILD SUCCESS"}
{"level":"info","ts":1703194322.395581,"logger":"camel-k.maven.build","msg":"------------------------------------------------------------------------"}
{"level":"info","ts":1703194322.3977785,"logger":"camel-k.maven.build","msg":"Total time: 02:15 min (Wall Clock)"}
{"level":"info","ts":1703194322.397876,"logger":"camel-k.maven.build","msg":"Finished at: 2023-12-21T21:32:02Z"}
...
{"level":"info","ts":1703194322.6735744,"logger":"camel-k.controller.integration","msg":"Reconciling Integration","request-namespace":"default","request-name":"file-test"}
{"level":"info","ts":1703194322.67364,"logger":"camel-k.controller.integration","msg":"Invoking action monitor","request-namespace":"default","request-name":"file-test","api-version":"camel.apache.org/v1","kind":"Integration","ns":"default","name":"file-test"}
{"level":"error","ts":1703194322.7993717,"msg":"Reconciler error","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration","Integration":{"name":"file-test","namespace":"default"},"namespace":"default","name":"file-test","reconcileID":"114fbd50-21ce-4059-88eb-5e2748bdfdeb","error":"error executing post actions: error during apply resource: default/file-test: Deployment.apps \"file-test\" is invalid: spec.template.spec.containers[0].image: Required value","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.13.1/pkg/internal/controller/controller.go:326\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.13.1/pkg/internal/controller/controller.go:273\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.13.1/pkg/internal/controller/controller.go:234"}
{"level":"info","ts":1703194322.8051429,"logger":"camel-k.controller.integration","msg":"Reconciling Integration","request-namespace":"default","request-name":"file-test"}
Camel K version
2.1.0 & 2.0.0
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 16 (16 by maintainers)
Commits related to this issue
- fix(#5007): Jib publish strategy registry secret — committed to gansheer/camel-k by gansheer 3 years ago
- fix(#5007): Jib publish strategy registry secret — committed to gansheer/camel-k by gansheer 3 years ago
- fix(#5007): Jib publish strategy registry secret — committed to apache/camel-k by gansheer 3 years ago
- fix(#5007): Jib publish strategy registry secret — committed to hernanDatgDev/camel-k by gansheer 3 years ago
- fix(#5007): Jib publish strategy registry secret — committed to mdebarros/camel-k by mdebarros 3 years ago
- fix(#5007): Jib publish strategy registry secret — committed to apache/camel-k by gansheer 3 years ago
@gansheer can you please have a look?