Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Can't use --source on a CloudEvents source #100

Open
jmcx opened this issue Nov 2, 2022 · 3 comments
Open

Can't use --source on a CloudEvents source #100

jmcx opened this issue Nov 2, 2022 · 3 comments

Comments

@jmcx
Copy link

jmcx commented Nov 2, 2022

How to reproduce

tmctl create source cloudevents
tmctl create transformation --source foo-cloudeventssource --from my-configs/trans1.txt
Error: "foo-cloudeventssource" event types: event types: unexpected end of JSON input

Thoughts

I think I understand why this doesn't work: because the CLI is looking for the "type" definition (in a CRD or in an instance of a CRD) that it can use in the Trigger filter, but won't find one for CloudEvents source, because the type is provided at runtime along with an event.

I don't yet have ideas on how to solve this but wanted to log it now to keep track of it.

Although one short-term fix would be update the error message to indicate that this won't work for this specific event source (assuming that is indeed the case).

@tzununbekov
Copy link
Member

The latest update on this problem is posted in this comment. I have nothing to add to this issue at this moment.

@tzununbekov tzununbekov removed their assignment Nov 7, 2022
@jmcx
Copy link
Author

jmcx commented Jan 4, 2023

Can we close this for now @tzununbekov ?

@tzununbekov
Copy link
Member

I don't know - I did nothing for this issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants