This is an automated email from the ASF dual-hosted git repository.

lburgazzoli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/master by this push:
     new 77b8323  api: add in/out/error type schema to v1alpha1.Endpoint
77b8323 is described below

commit 77b8323a3056127ddea2dc7e5fc5cb9f7a37b046
Author: Luca Burgazzoli <lburgazz...@gmail.com>
AuthorDate: Wed Dec 9 13:35:36 2020 +0100

    api: add in/out/error type schema to v1alpha1.Endpoint
---
 pkg/apis/camel/v1alpha1/kamelet_binding_types.go | 2 ++
 pkg/apis/camel/v1alpha1/zz_generated.deepcopy.go | 7 +++++++
 2 files changed, 9 insertions(+)

diff --git a/pkg/apis/camel/v1alpha1/kamelet_binding_types.go 
b/pkg/apis/camel/v1alpha1/kamelet_binding_types.go
index d4d7ac1..04ac92a 100644
--- a/pkg/apis/camel/v1alpha1/kamelet_binding_types.go
+++ b/pkg/apis/camel/v1alpha1/kamelet_binding_types.go
@@ -42,6 +42,8 @@ type Endpoint struct {
        URI *string `json:"uri,omitempty"`
        // Properties are a key value representation of endpoint properties
        Properties *EndpointProperties `json:"properties,omitempty"`
+       // Types defines the schema of the data produced/consumed by the 
endpoint
+       Types map[EventSlot]EventTypeSpec `json:"types,omitempty"`
 }
 
 type EndpointType string
diff --git a/pkg/apis/camel/v1alpha1/zz_generated.deepcopy.go 
b/pkg/apis/camel/v1alpha1/zz_generated.deepcopy.go
index 4f57f13..9741e33 100644
--- a/pkg/apis/camel/v1alpha1/zz_generated.deepcopy.go
+++ b/pkg/apis/camel/v1alpha1/zz_generated.deepcopy.go
@@ -44,6 +44,13 @@ func (in *Endpoint) DeepCopyInto(out *Endpoint) {
                *out = new(EndpointProperties)
                (*in).DeepCopyInto(*out)
        }
+       if in.Types != nil {
+               in, out := &in.Types, &out.Types
+               *out = make(map[EventSlot]EventTypeSpec, len(*in))
+               for key, val := range *in {
+                       (*out)[key] = *val.DeepCopy()
+               }
+       }
 }
 
 // DeepCopy is an autogenerated deepcopy function, copying the receiver, 
creating a new Endpoint.

Reply via email to