Skip to content
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

chore: Introduce Kamelet input/output data types #1162

Merged
merged 28 commits into from
Dec 2, 2022

Commits on Dec 1, 2022

  1. Introduce Kamelet input/output data types

    - Introduce data type converters
    - Add data type processor to auto convert exchange message from/to given data type
    - Let user choose which data type to use (via Kamelet property)
    - Add data type registry and annotation based loader to find data type implementations by component scheme and name
    
    Relates to CAMEL-18698 and apache/camel-k#1980
    christophd committed Dec 1, 2022
    Configuration menu
    Copy the full SHA
    e79d447 View commit details
    Browse the repository at this point in the history
  2. Refine Kamelet data type solution with review comments

    - Cache converter in DataTypeProcessor so lookup is only done once
    - Add lazy loading of component converters via resource path lookup (DataTypeConverterResolver)
    - Only load standard converters via annotation package scan
    christophd committed Dec 1, 2022
    Configuration menu
    Copy the full SHA
    4760cf6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    609eb4f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    239a377 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    911ac23 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a8c2214 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    7a42538 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    2795728 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    8420067 View commit details
    Browse the repository at this point in the history
  10. Remove AWS S3 Json output type

    Not a robust solution at the moment
    christophd committed Dec 1, 2022
    Configuration menu
    Copy the full SHA
    5f84f84 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    e82a3c0 View commit details
    Browse the repository at this point in the history
  12. Fix AWS DDB sink Kamelet

    christophd committed Dec 1, 2022
    Configuration menu
    Copy the full SHA
    c94bee7 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    d14ae28 View commit details
    Browse the repository at this point in the history
  14. Fix cloud event type and do not set data content type

    Setting the data content type breaks the Camel Knative producer
    christophd committed Dec 1, 2022
    Configuration menu
    Copy the full SHA
    495ddf2 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    4e28c94 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    14cd806 View commit details
    Browse the repository at this point in the history
  17. Set proper media types

    christophd committed Dec 1, 2022
    Configuration menu
    Copy the full SHA
    b67651e View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    0f2b888 View commit details
    Browse the repository at this point in the history
  19. Remove camel-cloudevents dependency

    - Avoid having the additional dependency in favor of using plain String constants
    christophd committed Dec 1, 2022
    Configuration menu
    Copy the full SHA
    26b6166 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    0f99d4b View commit details
    Browse the repository at this point in the history
  21. Do cache ObjectMapper instance in JsonModelDatType converter

    Also use Camel ClassResolver API to resolve model class
    christophd committed Dec 1, 2022
    Configuration menu
    Copy the full SHA
    4fd0681 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    29e2cc9 View commit details
    Browse the repository at this point in the history
  23. Improve CloudEvents output produced by AWS S3 source

    - Align with CloudEvents spec in creating proper event type and source values
    - Enable Knative YAKS tests
    christophd committed Dec 1, 2022
    Configuration menu
    Copy the full SHA
    4cc1de4 View commit details
    Browse the repository at this point in the history
  24. Simplify Json model data type

    - Remove JacksonDataFormat in favor of using simple ObjectMapper instance
    - Reuse ObjectMapper instance for all exchanges processed by the data type
    christophd committed Dec 1, 2022
    Configuration menu
    Copy the full SHA
    dd0c65e View commit details
    Browse the repository at this point in the history
  25. Fix Knative YAKS tests

    christophd committed Dec 1, 2022
    Configuration menu
    Copy the full SHA
    9dd3251 View commit details
    Browse the repository at this point in the history
  26. Revert existing Kamelets to not use data type converter

    - AWS S3 source Kamelet
    - AWS DDB sink Kamelet
    - JsonToDdbModelConverter utility and unit tests
    christophd committed Dec 1, 2022
    Configuration menu
    Copy the full SHA
    11a8450 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    c8e3f16 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    df62f1a View commit details
    Browse the repository at this point in the history