-
Notifications
You must be signed in to change notification settings - Fork 71
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
Missing data type transformer from null to type camel:azure-storage-blob:application-cloudevents on the exchange #1777
Comments
That's probably because you run Camel K with Apache Camel 3.20.x which is the default in Camel K 2.x You can try to update to Camel 4.x as described in this post: https://camel.apache.org/blog/2023/09/camel-4-on-camel-k/ |
Oh wait, wrong Apache Camel 4.x is the default since Camel K 2.1 |
Sorry for the noise. must be something else. Let me see where this data type is supposed to live |
I don't know exactly, but the data type implementation for Your Pipe uses a Camel and Kamelets version in the runtime and the data type might not be available in this version. I recall that the specific data type has been moved from Kamelets utils library to Camel core library in the past. I try to figure out what version this data type must be available |
Thanks, @christophd |
The data type for Azure Storage Blob has been added in camel-kamelets 4.1.0 and migrated in Camel in 4.2.0.
So in the last official release of Camel K (the 2.1.0) the data type for Azure Storage Blob is not available. |
Thanks - can I override that somehow? |
So, main is also still using, 4.0.0 |
Yes, also the nightly are still using that version. |
One thing you could try to do, it's overriding the Kamelets. In particular you could try to change this line in the Kamelet you have in the cluster: https://github.com/apache/camel-kamelets/blob/v4.1.0/kamelets/azure-storage-blob-source.kamelet.yaml#L155 and use the 4.1.0 version instead of 4.0.0 (I suppose it's 4.0.0 listed there). That way you could at least have the bean from the library. Let us know if it works. |
@oscerd you mean in here: apiVersion: camel.apache.org/v1
kind: Pipe
metadata:
name: azure-storage-blob-source-pipe
spec:
integration:
dependencies:
- "camel:cloudevents"
source:
ref:
kind: Kamelet
apiVersion: camel.apache.org/v1
name: azure-storage-blob-source
dataTypes:
out:
format: azure-storage-blob:application-cloudevents
properties:
accountName: XXX
containerName: YYY
accessKey: some-key
sink:
# dataTypes:
# in:
# format: http:application-cloudevents
ref:
kind: Broker
apiVersion: eventing.knative.dev/v1
name: kamelet |
No, you need to modify the azure-storage-blob-source Kamelet definition and look at the dependency section |
It's a CR installed by camel k |
Camel K runtime needs to wait for Camel-Quarkus to update to Camel 4.1.x or 4.2.x The latest available Camel-Quarkus version is 3.2.3 which uses Camel 4.0.3 Camel K is the last piece in a long chain of dependencies. We try to change this in order to loosen the dependency chain a bit |
So, I tried to patch it:
But, in the pod for the
|
I have no other attempt to try, I think you should wait for a new camel-k release. |
Let's hope that the nightly is updated before 😄 it still points to 4.0.0, for some reason |
@squakez is is feasible to try to have a nightly pointing a new Camel version 4.2.0? |
@oscerd the problem is that we need a Camel-Quarkus release pointing to Camel 4.2.0. But I just learned that there has been such a release of Camel-Quarkus 3.6 pointing to Camel 4.2.0 last week. So we can use that one and do a new Camel K runtime release that will then use Camel 4.2.0 |
Yes, it sounds good. |
In the meantime you could try one more thing: Go to and apply this Kamelet in your user namespace: It points to the Kamelets utils library 4.1.0 which should have the data type included. I think it is worth a try |
@matzew I see your patch may have done something similar using Kamelets utils library 4.1.0 but I am not sure if this change really gets into the Pipe runtime because the image for the Pipe may not be rebuilt because of that patch. To be sure you may delete all integrationkits from the operator namespace. |
He tried that already, I guess |
Turns out this is related to camel-k#5047 because service discovery mechanism for data types has been broken. Fixed with camel-k#5055 |
Trying to use the
azure-storage-blog
Kamelet, like:But I am getting:
When I remove the following:
than I get binary into my "consumer function" (behind a trigger of the given brker)
The text was updated successfully, but these errors were encountered: