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

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

Description

@jmcx

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions