-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No matches for kind "Subscription" in version "messaging.knative.dev/v1alpha1" #1636
Comments
Which is the solution to solve this issue? I have one channel consumer, and I have this error, I can't deploy the integration properly... |
This will be fixed in next patch release. Until then, a simple workaround is this one. Instead of:
Use:
This will create a Knative service. Then you can create a subscription resource by hand to bind the channel to the service: https://knative.dev/docs/eventing/event-delivery/ |
But one question, I have in the producer this: .to("knative:channel/creacionpac") and in the consumer, I have this: from("knative:channel/creacionpac") I have to change both of them, or only the consumer? Which is the workaround solution? |
Only the consumer |
But where must I to indicate the name of the channel, creacionpac? apiVersion: messaging.knative.dev/v1 |
Like: apiVersion: messaging.knative.dev/v1beta1
kind: Subscription
metadata:
name: mysubscription
spec:
channel:
apiVersion: messaging.knative.dev/v1
kind: InMemoryChannel
name: your-source-channel
subscriber:
ref:
apiVersion: serving.knative.dev/v1
kind: Service
name: the-name-of-your-integration |
Which is the relation with the from in the consumer? from("knative:endpoint/default") This default, what must be? |
Just "default", you don't have to change it. That uri exposes a knative endpoint, the name is irrelevant so we conventionally set it to "default". |
Ok, thanks a lot Nicola... I think I need to follow learning all of this technology... Thanks for your continuous support... |
Other question, how can i invoke to an external url, because if i try to call to an external url in a knative integration, gives me one error, endpoint not found. I invoke the external url using recipientslist. |
It shouldn't matter what kind of integration you're running, to call an external URL you should use the Btw, you can ask questions in the Gitter channel, to avoid polluting issues. |
Sorry, I know that this issue is not related with the last two questions that I have asked you. But I have asked in the Gitter channel, and I don't have reply. The question is: I have one question, I have some integrations in camel-k and knative, and I want to know how can I propagate the body from the first knative service to the last one? Because I need to have available in all the integrations. |
@nicolaferraro Thanks for the update, but in case of Kafka channel it would not work correctly for v1beta1. channel:
apiVersion: messaging.knative.dev/v1alpha1
kind: KafkaChannel
name: salesforce
subscriber:
ref:
apiVersion: serving.knative.dev/v1
kind: Service
name: camel-k-kafa-consumer So the channel must be declared for v1alpha1, like so: apiVersion: messaging.knative.dev/v1alpha1
kind: KafkaChannel
metadata:
name: salesforce I've not checked out what about InMemoryChannel but I may assume it's the same. |
Hi @MaciekLeks, we're adding auto-discovery for KafkaChannel v1beta1 in next 1.2.0 release.
And it should do what you expect. |
We should upgrade the eventing resources to v1beta1 at least.
E.g. Subscription is no longer present at version v1alpha1.
The text was updated successfully, but these errors were encountered: