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 2021/07/12 19:47:24 UTC

[GitHub] [camel-k] squakez opened a new issue #2493: [CMD] kamel bind empty error handler

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


   I think the test spotted an hidden issue:
   ```
   === RUN   TestKamelCLIBind/bind_timer_to_log
   KameletBinding.camel.apache.org "test-timer-source-to-log" is invalid: []: Invalid value: map[string]interface {}{"kind":"KameletBinding", "apiVersion":"camel.apache.org/v1alpha1", "metadata":map[string]interface {}{"uid":"2948e0fe-e2f1-11eb-b545-000d3a02688e", "selfLink":"", "clusterName":"", "name":"test-timer-source-to-log", "namespace":"test-6a95d672-8ac8-4df7-8688-1eacb6220973", "creationTimestamp":"2021-07-12T09:11:37Z", "generation":1}, "spec":map[string]interface {}{"source":map[string]interface {}{"ref":map[string]interface {}{"kind":"Kamelet", "namespace":"test-6a95d672-8ac8-4df7-8688-1eacb6220973", "name":"test-timer-source", "apiVersion":"camel.apache.org/v1alpha1"}, "properties":map[string]interface {}{"message":"helloTest"}}, "sink":map[string]interface {}{"uri":"log:info"}, "errorHandler":interface {}(nil)}}: validation failure list:
   spec.errorHandler in body must be of type object: "null"
   ```
   Probably the `bind` operation is setting a `null` error handler, when instead it should be omitted as empty.
   
   _Originally posted by @squakez in https://github.com/apache/camel-k/issues/2461#issuecomment-878239462_


-- 
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 #2493: [CMD] kamel bind empty error handler

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


   I am having a look at it. cc @vsokolov00 


-- 
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] nicolaferraro closed issue #2493: [CMD] `kamel bind` empty error handler

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


   


-- 
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