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 2019/10/10 21:06:02 UTC
[GitHub] [camel-k-runtime] nicolaferraro commented on a change in pull
request #152: Knative related improvements
nicolaferraro commented on a change in pull request #152: Knative related improvements
URL: https://github.com/apache/camel-k-runtime/pull/152#discussion_r333730357
##########
File path: camel-knative/src/main/java/org/apache/camel/component/knative/KnativeEndpoint.java
##########
@@ -93,17 +96,19 @@ public KnativeComponent getComponent() {
@Override
public Producer createProducer() throws Exception {
- final String version = configuration.getCloudEventsSpecVersion();
- final Processor ceProcessor = CloudEventsProcessors.forSpecversion(version).producerProcessor(this);
+ if (type == Knative.Type.event) {
+ throw new UnsupportedOperationException("knative `events` are supported only as consumer");
Review comment:
Mmh, why? I should be allowed to send events to the broker mesh
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services