Skip to content

Commit

Permalink
fix(apache#1980): Support data types in Kamelets
Browse files Browse the repository at this point in the history
- Adds input/output/error data type spec to Kamelet CRD. The data type specifications provides additional information to the user such as what kind of input is required to use a Kamelet and what output is produced by the Kamelet.
- The data type specifications can be used by tooling and data type converters to improve the overall usability of Kamelets
- Deprecate former types field and the EventTypeSpec
  • Loading branch information
christophd committed Mar 3, 2023
1 parent cf639a6 commit 880b993
Show file tree
Hide file tree
Showing 33 changed files with 1,488 additions and 155 deletions.
14 changes: 7 additions & 7 deletions addons/strimzi/duck/client/internalclientset/fake/register.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions addons/strimzi/duck/client/internalclientset/scheme/register.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

72 changes: 60 additions & 12 deletions config/crd/bases/camel.apache.org_kameletbindings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7687,6 +7687,21 @@ spec:
description: Sink is the destination of the integration defined by
this binding
properties:
dataTypes:
additionalProperties:
description: DataTypeReference references to the specification
of a data type by its scheme and format name
properties:
format:
description: the data type format name
type: string
scheme:
description: the data type component scheme
type: string
type: object
description: DataTypes defines the data type of the data produced/consumed
by the endpoint and references a given data type specification.
type: object
properties:
description: Properties are a key value representation of endpoint
properties
Expand Down Expand Up @@ -7731,8 +7746,8 @@ spec:
type: object
types:
additionalProperties:
description: EventTypeSpec represents a specification for an
event type
description: 'EventTypeSpec represents a specification for an
event type Deprecated: In favor of using DataTypeSpec'
properties:
mediaType:
description: media type as expected for HTTP media types
Expand Down Expand Up @@ -7893,8 +7908,9 @@ spec:
type: string
type: object
type: object
description: Types defines the schema of the data produced/consumed
by the endpoint
description: 'Types defines the data type of the data produced/consumed
by the endpoint and references a given data type specification.
Deprecated: In favor of using DataTypes'
type: object
uri:
description: URI can be used to specify the (Camel) endpoint explicitly
Expand All @@ -7904,6 +7920,21 @@ spec:
description: Source is the starting point of the integration defined
by this binding
properties:
dataTypes:
additionalProperties:
description: DataTypeReference references to the specification
of a data type by its scheme and format name
properties:
format:
description: the data type format name
type: string
scheme:
description: the data type component scheme
type: string
type: object
description: DataTypes defines the data type of the data produced/consumed
by the endpoint and references a given data type specification.
type: object
properties:
description: Properties are a key value representation of endpoint
properties
Expand Down Expand Up @@ -7948,8 +7979,8 @@ spec:
type: object
types:
additionalProperties:
description: EventTypeSpec represents a specification for an
event type
description: 'EventTypeSpec represents a specification for an
event type Deprecated: In favor of using DataTypeSpec'
properties:
mediaType:
description: media type as expected for HTTP media types
Expand Down Expand Up @@ -8110,8 +8141,9 @@ spec:
type: string
type: object
type: object
description: Types defines the schema of the data produced/consumed
by the endpoint
description: 'Types defines the data type of the data produced/consumed
by the endpoint and references a given data type specification.
Deprecated: In favor of using DataTypes'
type: object
uri:
description: URI can be used to specify the (Camel) endpoint explicitly
Expand All @@ -8124,6 +8156,21 @@ spec:
description: Endpoint represents a source/sink external entity (could
be any Kubernetes resource or Camel URI)
properties:
dataTypes:
additionalProperties:
description: DataTypeReference references to the specification
of a data type by its scheme and format name
properties:
format:
description: the data type format name
type: string
scheme:
description: the data type component scheme
type: string
type: object
description: DataTypes defines the data type of the data produced/consumed
by the endpoint and references a given data type specification.
type: object
properties:
description: Properties are a key value representation of endpoint
properties
Expand Down Expand Up @@ -8169,8 +8216,8 @@ spec:
type: object
types:
additionalProperties:
description: EventTypeSpec represents a specification for
an event type
description: 'EventTypeSpec represents a specification for
an event type Deprecated: In favor of using DataTypeSpec'
properties:
mediaType:
description: media type as expected for HTTP media types
Expand Down Expand Up @@ -8333,8 +8380,9 @@ spec:
type: string
type: object
type: object
description: Types defines the schema of the data produced/consumed
by the endpoint
description: 'Types defines the data type of the data produced/consumed
by the endpoint and references a given data type specification.
Deprecated: In favor of using DataTypes'
type: object
uri:
description: URI can be used to specify the (Camel) endpoint
Expand Down
Loading

0 comments on commit 880b993

Please sign in to comment.