You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/01/25 16:03:25 UTC

[GitHub] [camel-k] apupier opened a new issue #2943: [regression] Cannot provide 2 resources with 1.8.0

apupier opened a new issue #2943:
URL: https://github.com/apache/camel-k/issues/2943


   When the 2 resources have same content, the errors in Operator log are:
   ```
   {
   	"level": "error",
   	"ts": 1643123820.7433438,
   	"logger": "controller.integration-controller",
   	"msg": "Reconciler error",
   	"reconciler group": "camel.apache.org",
   	"reconciler kind": "Integration",
   	"name": "test-java-deploy-with-resources",
   	"namespace": "default",
   	"error": "error executing post actions: error during apply resource: default/test-java-deploy-with-resources: failed to create typed patch object: errors:\n  .spec.template.spec.containers[name=\"integration\"].volumeMounts: duplicate entries for key [mountPath=\"/etc/camel/resources\"]\n  .spec.template.spec.volumes: duplicate entries for key [name=\"cm-73803b0d73dab7d44dcbc1223c34672ca281559d\"]",
   	"errorVerbose": "error during apply resource: default/test-java-deploy-with-resources: failed to create typed patch object: errors:\n  .spec.template.spec.containers[name=\"integration\"].volumeMounts: duplicate entries for key [mountPath=\"/etc/camel/resources\"]\n  .spec.template.spec.volumes: duplicate entries for key [name=\"cm-73803b0d73dab7d44dcbc1223c34672ca281559d\"]\nerror executing post actions\ngithub.com/apache/camel-k/pkg/trait.Apply\n\tgithub.com/apache/camel-k/pkg/trait/trait.go:55\ngithub.com/apache/camel-k/pkg/controller/integration.(*monitorAction).Handle\n\tgithub.com/apache/camel-k/pkg/controller/integration/monitor.go:118\ngithub.com/apache/camel-k/pkg/controller/integration.(*reconcileIntegration).Reconcile\n\tgithub.com/apache/camel-k/pkg/controller/integration/integration_controller.go:309\ngithub.com/apache/camel-k/pkg/util/monitoring.(*instrumentedReconciler).Reconcile\n\tgithub.com/apache/camel-k/pkg/util/monitoring/controller.go:70\nsigs.k8s.io/control
 ler-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/controller.go:298\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/controller.go:253\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/controller.go:214\nruntime.goexit\n\truntime/asm_amd64.s:1371",
   	"stacktrace": "sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/controller.go:214"
   }
   ```
   
   and
   ```
   {
   	"level": "error",
   	"ts": 1643123779.723916,
   	"logger": "controller.integration-controller",
   	"msg": "Reconciler error",
   	"reconciler group": "camel.apache.org",
   	"reconciler kind": "Integration",
   	"name": "test-java-deploy-with-resources",
   	"namespace": "default",
   	"error": "error executing post actions: error during apply resource: default/test-java-deploy-with-resources: failed to create typed patch object: errors:\n  .spec.template.spec.volumes: duplicate entries for key [name=\"cm-73803b0d73dab7d44dcbc1223c34672ca281559d\"]\n  .spec.template.spec.containers[name=\"integration\"].volumeMounts: duplicate entries for key [mountPath=\"/etc/camel/resources\"]",
   	"errorVerbose": "error during apply resource: default/test-java-deploy-with-resources: failed to create typed patch object: errors:\n  .spec.template.spec.volumes: duplicate entries for key [name=\"cm-73803b0d73dab7d44dcbc1223c34672ca281559d\"]\n  .spec.template.spec.containers[name=\"integration\"].volumeMounts: duplicate entries for key [mountPath=\"/etc/camel/resources\"]\nerror executing post actions\ngithub.com/apache/camel-k/pkg/trait.Apply\n\tgithub.com/apache/camel-k/pkg/trait/trait.go:55\ngithub.com/apache/camel-k/pkg/controller/integration.(*monitorAction).Handle\n\tgithub.com/apache/camel-k/pkg/controller/integration/monitor.go:118\ngithub.com/apache/camel-k/pkg/controller/integration.(*reconcileIntegration).Reconcile\n\tgithub.com/apache/camel-k/pkg/controller/integration/integration_controller.go:309\ngithub.com/apache/camel-k/pkg/util/monitoring.(*instrumentedReconciler).Reconcile\n\tgithub.com/apache/camel-k/pkg/util/monitoring/controller.go:70\nsigs.k8s.io/control
 ler-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/controller.go:298\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/controller.go:253\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/controller.go:214\nruntime.goexit\n\truntime/asm_amd64.s:1371",
   	"stacktrace": "sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/controller.go:214"
   }
   ```
   In this case, we can see a single Configmap created.
   
   
   When teh content of the resources are diffeezent, we can see 2 configmaps created but there are these 2 errors:
   ```
   {
   	"level": "error",
   	"ts": 1643126159.1656606,
   	"logger": "controller.integration-controller",
   	"msg": "Reconciler error",
   	"reconciler group": "camel.apache.org",
   	"reconciler kind": "Integration",
   	"name": "test-java-deploy-with-resources",
   	"namespace": "default",
   	"error": "error executing post actions: error during apply resource: default/test-java-deploy-with-resources: failed to create typed patch object: .spec.template.spec.containers[name=\"integration\"].volumeMounts: duplicate entries for key [mountPath=\"/etc/camel/resources\"]",
   	"errorVerbose": "error during apply resource: default/test-java-deploy-with-resources: failed to create typed patch object: .spec.template.spec.containers[name=\"integration\"].volumeMounts: duplicate entries for key [mountPath=\"/etc/camel/resources\"]\nerror executing post actions\ngithub.com/apache/camel-k/pkg/trait.Apply\n\tgithub.com/apache/camel-k/pkg/trait/trait.go:55\ngithub.com/apache/camel-k/pkg/controller/integration.(*monitorAction).Handle\n\tgithub.com/apache/camel-k/pkg/controller/integration/monitor.go:118\ngithub.com/apache/camel-k/pkg/controller/integration.(*reconcileIntegration).Reconcile\n\tgithub.com/apache/camel-k/pkg/controller/integration/integration_controller.go:309\ngithub.com/apache/camel-k/pkg/util/monitoring.(*instrumentedReconciler).Reconcile\n\tgithub.com/apache/camel-k/pkg/util/monitoring/controller.go:70\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/con
 troller/controller.go:298\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/controller.go:253\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/controller.go:214\nruntime.goexit\n\truntime/asm_amd64.s:1371",
   	"stacktrace": "sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/controller.go:214"
   }
   ```
   and
   ```
   {
   	"level": "error",
   	"ts": 1643126138.6682713,
   	"logger": "controller.integration-controller",
   	"msg": "Reconciler error",
   	"reconciler group": "camel.apache.org",
   	"reconciler kind": "Integration",
   	"name": "test-java-deploy-with-resources",
   	"namespace": "default",
   	"error": "error executing post actions: error during apply resource: default/test-java-deploy-with-resources: failed to create typed patch object: .spec.template.spec.containers[name=\"integration\"].volumeMounts: duplicate entries for key [mountPath=\"/etc/camel/resources\"]",
   	"errorVerbose": "error during apply resource: default/test-java-deploy-with-resources: failed to create typed patch object: .spec.template.spec.containers[name=\"integration\"].volumeMounts: duplicate entries for key [mountPath=\"/etc/camel/resources\"]\nerror executing post actions\ngithub.com/apache/camel-k/pkg/trait.Apply\n\tgithub.com/apache/camel-k/pkg/trait/trait.go:55\ngithub.com/apache/camel-k/pkg/controller/integration.(*monitorAction).Handle\n\tgithub.com/apache/camel-k/pkg/controller/integration/monitor.go:118\ngithub.com/apache/camel-k/pkg/controller/integration.(*reconcileIntegration).Reconcile\n\tgithub.com/apache/camel-k/pkg/controller/integration/integration_controller.go:309\ngithub.com/apache/camel-k/pkg/util/monitoring.(*instrumentedReconciler).Reconcile\n\tgithub.com/apache/camel-k/pkg/util/monitoring/controller.go:70\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/con
 troller/controller.go:298\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/controller.go:253\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/controller.go:214\nruntime.goexit\n\truntime/asm_amd64.s:1371",
   	"stacktrace": "sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/controller.go:214"
   }
   ```


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-k] apupier commented on issue #2943: [regression] Cannot provide 2 resources with 1.8.0

Posted by GitBox <gi...@apache.org>.
apupier commented on issue #2943:
URL: https://github.com/apache/camel-k/issues/2943#issuecomment-1058075641


   I tried with 1.8.1 but i still have the same errors
   
   


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-k] apupier edited a comment on issue #2943: [regression] Cannot provide 2 resources with 1.8.0

Posted by GitBox <gi...@apache.org>.
apupier edited a comment on issue #2943:
URL: https://github.com/apache/camel-k/issues/2943#issuecomment-1058075641


   I tried with 1.8.1 but i still have the same errors
   
   double-checked the kamel installation: `{"level":"info","ts":1646313742.1552255,"logger":"cmd","msg":"Camel K Operator Version: 1.8.1"}`
   ```
   ./kamel version
   Camel K Client 1.8.1
   ```
   
   exempel of errro (which seems really the same (even the line numbers which migth be strange):
   
   ```json
   {
   	"level": "error",
   	"ts": 1646316143.3936555,
   	"logger": "controller.integration-controller",
   	"msg": "Reconciler error",
   	"reconciler group": "camel.apache.org",
   	"reconciler kind": "Integration",
   	"name": "test-multiple-resources",
   	"namespace": "default",
   	"error": "error executing post actions: error during apply resource: default/test-multiple-resources: failed to create typed patch object: .spec.template.spec.containers[name=\"integration\"].volumeMounts: duplicate entries for key [mountPath=\"/etc/camel/resources\"]",
   	"errorVerbose": "error during apply resource: default/test-multiple-resources: failed to create typed patch object: .spec.template.spec.containers[name=\"integration\"].volumeMounts: duplicate entries for key [mountPath=\"/etc/camel/resources\"]\nerror executing post actions\ngithub.com/apache/camel-k/pkg/trait.Apply\n\tgithub.com/apache/camel-k/pkg/trait/trait.go:55\ngithub.com/apache/camel-k/pkg/controller/integration.(*monitorAction).Handle\n\tgithub.com/apache/camel-k/pkg/controller/integration/monitor.go:118\ngithub.com/apache/camel-k/pkg/controller/integration.(*reconcileIntegration).Reconcile\n\tgithub.com/apache/camel-k/pkg/controller/integration/integration_controller.go:309\ngithub.com/apache/camel-k/pkg/util/monitoring.(*instrumentedReconciler).Reconcile\n\tgithub.com/apache/camel-k/pkg/util/monitoring/controller.go:70\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/
 controller.go:298\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/controller.go:253\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/controller.go:214\nruntime.goexit\n\truntime/asm_amd64.s:1371",
   	"stacktrace": "sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/controller.go:214"
   }
   ```
   


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-k] squakez commented on issue #2943: [regression] Cannot provide 2 resources with 1.8.0

Posted by GitBox <gi...@apache.org>.
squakez commented on issue #2943:
URL: https://github.com/apache/camel-k/issues/2943#issuecomment-1022051802


   I had a look, and as I suspected it's a bug. As a mitigation, while we fix it, you may create an external configmap with 2 entries, and use it from your Integration, ie:
   ```
   k create configmap my-cm --from-literal=test1.txt="test" --from-literal=test2.txt="test"
   kamel run --resource configmap:my-cm test.groovy --dev
   ```
   test.groovy
   ```
   from('file:/etc/camel/resources/my-cm/?noop=true&idempotent=false')
       .log('resource file content is: ${body} consumed from ${header.CamelFileName}')
   ```


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-k] apupier commented on issue #2943: [regression] Cannot provide 2 resources with 1.8.0

Posted by GitBox <gi...@apache.org>.
apupier commented on issue #2943:
URL: https://github.com/apache/camel-k/issues/2943#issuecomment-1060706850


   > Can you please share the Integration yaml configuration (ie, `kubectl get Integration xyz -o yaml`)?
   
   provided in the new issue https://github.com/apache/camel-k/issues/3077#issuecomment-1060706525


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-k] apupier commented on issue #2943: [regression] Cannot provide 2 resources with 1.8.0

Posted by GitBox <gi...@apache.org>.
apupier commented on issue #2943:
URL: https://github.com/apache/camel-k/issues/2943#issuecomment-1021343490


   cc @squakez 


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-k] squakez closed issue #2943: [regression] Cannot provide 2 resources with 1.8.0

Posted by GitBox <gi...@apache.org>.
squakez closed issue #2943:
URL: https://github.com/apache/camel-k/issues/2943


   


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-k] apupier commented on issue #2943: [regression] Cannot provide 2 resources with 1.8.0

Posted by GitBox <gi...@apache.org>.
apupier commented on issue #2943:
URL: https://github.com/apache/camel-k/issues/2943#issuecomment-1021343490


   cc @squakez 


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-k] apupier edited a comment on issue #2943: [regression] Cannot provide 2 resources with 1.8.0

Posted by GitBox <gi...@apache.org>.
apupier edited a comment on issue #2943:
URL: https://github.com/apache/camel-k/issues/2943#issuecomment-1058075641


   I tried with 1.8.1 but i still have the same errors
   
   double-checked the kamel installation: `{"level":"info","ts":1646313742.1552255,"logger":"cmd","msg":"Camel K Operator Version: 1.8.1"}`
   ```
   ./kamel version
   Camel K Client 1.8.1
   ```
   
   example of error which seems really the same (even the line numbers which migth be strange):
   
   ```json
   {
   	"level": "error",
   	"ts": 1646316143.3936555,
   	"logger": "controller.integration-controller",
   	"msg": "Reconciler error",
   	"reconciler group": "camel.apache.org",
   	"reconciler kind": "Integration",
   	"name": "test-multiple-resources",
   	"namespace": "default",
   	"error": "error executing post actions: error during apply resource: default/test-multiple-resources: failed to create typed patch object: .spec.template.spec.containers[name=\"integration\"].volumeMounts: duplicate entries for key [mountPath=\"/etc/camel/resources\"]",
   	"errorVerbose": "error during apply resource: default/test-multiple-resources: failed to create typed patch object: .spec.template.spec.containers[name=\"integration\"].volumeMounts: duplicate entries for key [mountPath=\"/etc/camel/resources\"]\nerror executing post actions\ngithub.com/apache/camel-k/pkg/trait.Apply\n\tgithub.com/apache/camel-k/pkg/trait/trait.go:55\ngithub.com/apache/camel-k/pkg/controller/integration.(*monitorAction).Handle\n\tgithub.com/apache/camel-k/pkg/controller/integration/monitor.go:118\ngithub.com/apache/camel-k/pkg/controller/integration.(*reconcileIntegration).Reconcile\n\tgithub.com/apache/camel-k/pkg/controller/integration/integration_controller.go:309\ngithub.com/apache/camel-k/pkg/util/monitoring.(*instrumentedReconciler).Reconcile\n\tgithub.com/apache/camel-k/pkg/util/monitoring/controller.go:70\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/
 controller.go:298\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/controller.go:253\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/controller.go:214\nruntime.goexit\n\truntime/asm_amd64.s:1371",
   	"stacktrace": "sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/controller.go:214"
   }
   ```
   


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-k] apupier edited a comment on issue #2943: [regression] Cannot provide 2 resources with 1.8.0

Posted by GitBox <gi...@apache.org>.
apupier edited a comment on issue #2943:
URL: https://github.com/apache/camel-k/issues/2943#issuecomment-1058075641


   I tried with 1.8.1 but i still have the same errors
   
   double-checked the kamel installation: `{"level":"info","ts":1646313742.1552255,"logger":"cmd","msg":"Camel K Operator Version: 1.8.1"}`
   ```
   ./kamel version
   Camel K Client 1.8.1
   ```
   
   


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-k] squakez commented on issue #2943: [regression] Cannot provide 2 resources with 1.8.0

Posted by GitBox <gi...@apache.org>.
squakez commented on issue #2943:
URL: https://github.com/apache/camel-k/issues/2943#issuecomment-1058960460


   Can you please share the Integration yaml configuration (ie, `kubectl get Integration xyz -o yaml`)?


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-k] apupier edited a comment on issue #2943: [regression] Cannot provide 2 resources with 1.8.0

Posted by GitBox <gi...@apache.org>.
apupier edited a comment on issue #2943:
URL: https://github.com/apache/camel-k/issues/2943#issuecomment-1058075641


   I tried with 1.8.1 but i still have the same errors
   
   double-checked the kamel installation: `{"level":"info","ts":1646313742.1552255,"logger":"cmd","msg":"Camel K Operator Version: 1.8.1"}`
   ```
   ./kamel version
   Camel K Client 1.8.1
   ```
   
   exempel of errro (which seems really the same (even the line numbers which migth be strange):
   
   ```
   {
   	"level": "error",
   	"ts": 1646316143.3936555,
   	"logger": "controller.integration-controller",
   	"msg": "Reconciler error",
   	"reconciler group": "camel.apache.org",
   	"reconciler kind": "Integration",
   	"name": "test-multiple-resources",
   	"namespace": "default",
   	"error": "error executing post actions: error during apply resource: default/test-multiple-resources: failed to create typed patch object: .spec.template.spec.containers[name=\"integration\"].volumeMounts: duplicate entries for key [mountPath=\"/etc/camel/resources\"]",
   	"errorVerbose": "error during apply resource: default/test-multiple-resources: failed to create typed patch object: .spec.template.spec.containers[name=\"integration\"].volumeMounts: duplicate entries for key [mountPath=\"/etc/camel/resources\"]\nerror executing post actions\ngithub.com/apache/camel-k/pkg/trait.Apply\n\tgithub.com/apache/camel-k/pkg/trait/trait.go:55\ngithub.com/apache/camel-k/pkg/controller/integration.(*monitorAction).Handle\n\tgithub.com/apache/camel-k/pkg/controller/integration/monitor.go:118\ngithub.com/apache/camel-k/pkg/controller/integration.(*reconcileIntegration).Reconcile\n\tgithub.com/apache/camel-k/pkg/controller/integration/integration_controller.go:309\ngithub.com/apache/camel-k/pkg/util/monitoring.(*instrumentedReconciler).Reconcile\n\tgithub.com/apache/camel-k/pkg/util/monitoring/controller.go:70\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/
 controller.go:298\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/controller.go:253\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/controller.go:214\nruntime.goexit\n\truntime/asm_amd64.s:1371",
   	"stacktrace": "sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/controller.go:214"
   }```
   


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-k] apupier edited a comment on issue #2943: [regression] Cannot provide 2 resources with 1.8.0

Posted by GitBox <gi...@apache.org>.
apupier edited a comment on issue #2943:
URL: https://github.com/apache/camel-k/issues/2943#issuecomment-1058075641


   I tried with 1.8.1 but i still have the same errors
   
   double-checked the kamel installation: `{"level":"info","ts":1646313742.1552255,"logger":"cmd","msg":"Camel K Operator Version: 1.8.1"}`
   ```
   ./kamel version
   Camel K Client 1.8.1
   ```
   
   example of error which seems really the same (even the line numbers which migth be strange):
   
   ```json
   {
   	"level": "error",
   	"ts": 1646316143.3936555,
   	"logger": "controller.integration-controller",
   	"msg": "Reconciler error",
   	"reconciler group": "camel.apache.org",
   	"reconciler kind": "Integration",
   	"name": "test-multiple-resources",
   	"namespace": "default",
   	"error": "error executing post actions: error during apply resource: default/test-multiple-resources: failed to create typed patch object: .spec.template.spec.containers[name=\"integration\"].volumeMounts: duplicate entries for key [mountPath=\"/etc/camel/resources\"]",
   	"errorVerbose": "error during apply resource: default/test-multiple-resources: failed to create typed patch object: .spec.template.spec.containers[name=\"integration\"].volumeMounts: duplicate entries for key [mountPath=\"/etc/camel/resources\"]\nerror executing post actions\ngithub.com/apache/camel-k/pkg/trait.Apply\n\tgithub.com/apache/camel-k/pkg/trait/trait.go:55\ngithub.com/apache/camel-k/pkg/controller/integration.(*monitorAction).Handle\n\tgithub.com/apache/camel-k/pkg/controller/integration/monitor.go:118\ngithub.com/apache/camel-k/pkg/controller/integration.(*reconcileIntegration).Reconcile\n\tgithub.com/apache/camel-k/pkg/controller/integration/integration_controller.go:309\ngithub.com/apache/camel-k/pkg/util/monitoring.(*instrumentedReconciler).Reconcile\n\tgithub.com/apache/camel-k/pkg/util/monitoring/controller.go:70\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/
 controller.go:298\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/controller.go:253\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/controller.go:214\nruntime.goexit\n\truntime/asm_amd64.s:1371",
   	"stacktrace": "sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/controller.go:214"
   }
   ```
   the difference that I spotted with 1.8.0 is that 2 configmap are created even if the two files have the same content


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org