Open igarashitm opened 5 months ago
At least it succeeds to kubectl apply -f kamelet-with-route.kamelet.yaml
with having a route in spec.template.route
instead of in from
, and kamel describe kamelet
successfully shows the contents
Currently the both route
and from
are allowed under Kamelet spec.template
. Syntactically everything RouteTemplateDefinition
has are allowed.
Upstream issue: https://github.com/apache/camel-k/issues/5118
Please describe the task that needs to be done
Currently it's a custom object with having
FromDefinition
as a child https://github.com/KaotoIO/kaoto-next/blob/main/packages/ui/src/models/kamelets-catalog.ts#L36Kamelet
spec.template
is actually aRouteTemplateDefinition
, so we should be able to useRouteTemplateDefinition
fromcamelYamlDsl.d.ts
We need to investigate if any other adjustment is needed, for example
RouteTemplateDefinition
acceptsroute
as well, andfrom
is optional. It means Kameletspec.template
also acceptsroute
unless some special restriction is added in Camel K (I guess not).