Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Create Kamelet Definition Editor #2154

Open
igarashitm opened this issue Jul 15, 2023 · 0 comments
Open

Create Kamelet Definition Editor #2154

igarashitm opened this issue Jul 15, 2023 · 0 comments
Labels
feature request Thumbs up the issue to vote for it metadata

Comments

@igarashitm
Copy link
Contributor

igarashitm commented Jul 15, 2023

Please describe the feature that you want to propose

Kamelet has extra metadata that other DSL doesn't have, but vital for Kamelet specification.
https://camel.apache.org/camel-k/1.12.x/apis/kamelets.html#_camel_apache_org_v1alpha1_KameletSpec

Definition

defines the formal configuration of the Kamelet
https://camel.apache.org/camel-k/1.12.x/apis/kamelets.html#_camel_apache_org_v1alpha1_JSONSchemaProps
Especially properties defined here
https://github.com/apache/camel-kamelets/blob/fe958c866ae29dd93887ec38298bd8ca1b32a5fb/kamelets/avro-deserialize-action.kamelet.yaml#L42
is referenced as a property placehoder in the template route
https://github.com/apache/camel-kamelets/blob/fe958c866ae29dd93887ec38298bd8ca1b32a5fb/kamelets/avro-deserialize-action.kamelet.yaml#L60

We need to provide a user assist to show those already defined properties as a candidate for the template route parameter value. One option is when user type {{, show candidates from existing properties. This feature will be re-used for generic property placeholder support across all DSLs, but only Kamelet has spec.definition.properties locally.
Other DSLs would depend on external property file, k8s configmap, etc.
The other way around also has a room to assist users, for example when user put property placeholder that doesn't exist, automatically create one in spec.definition.properties.

Types / DataTypes

data specification types for the events consumed/produced by the Kamelet
https://camel.apache.org/camel-k/1.12.x/apis/kamelets.html#_camel_apache_org_v1alpha1_EventTypeSpec
https://camel.apache.org/camel-k/next/apis/kamelets.html#_camel_apache_org_v1alpha1_DataTypesSpec

Types / DataTypes will be leveraged for Data Mapper in the future #253

Metadata schema endpoint

First migrate schema mockup in UI to the backend
#2160 (comment)

@igarashitm igarashitm added feature request Thumbs up the issue to vote for it metadata labels Jul 15, 2023
@igarashitm igarashitm added this to the 1.2.0 milestone Jul 15, 2023
@Delawen Delawen removed this from the 1.2.0 milestone Jul 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature request Thumbs up the issue to vote for it metadata
Projects
None yet
Development

No branches or pull requests

2 participants