[ 
https://issues.apache.org/jira/browse/CAMEL-23666?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18085590#comment-18085590
 ] 

Raymond commented on CAMEL-23666:
---------------------------------

Yes, I understand. The goal is of course to push as many things to 
install-time. It's better to disable it one time, than run a filter a million 
times. Also, I want to limit the number of kamelets, because this saves 
maintenance and startup time.

One of the goals, is to have kamelets with a route that links to another route, 
and routes that doesn't do that, but I like to maintain one kamelet. I first 
did some transformation, and yaml manipulation, but that made the loading more 
complex, so that's why I turned to default Camel using disabled.

If this make things too complex you can close this ticket.

> [Kamelet/Route Templates] Support optionals for endpoints uris
> --------------------------------------------------------------
>
>                 Key: CAMEL-23666
>                 URL: https://issues.apache.org/jira/browse/CAMEL-23666
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core, camel-kamelet
>            Reporter: Raymond
>            Priority: Minor
>
> Currently Kamelets and Route Templates support optional endpoint options on 
> URI. For example:
> {code:java}
> - to:
>     uri: "aws2-s3:{{bucketNameOrArn}}"
>     parameters:
>       secretKey: "{{?secretKey}}"
>       accessKey: "{{?accessKey}}"
>       region: "{{region}}"
>       autoCreateBucket: "{{autoCreateBucket}}"
>       useDefaultCredentialsProvider: "{{useDefaultCredentialsProvider}}"
>       useProfileCredentialsProvider: "{{useProfileCredentialsProvider}}"
>       useSessionCredentials: "{{useSessionCredentials}}"
>       uriEndpointOverride: "{{?uriEndpointOverride}}"
>       profileCredentialsName: "{{?profileCredentialsName}}"
>       sessionToken: "{{?sessionToken}}"
>       overrideEndpoint: "{{overrideEndpoint}}"
>       forcePathStyle: "{{forcePathStyle}}"
>       keyName: "{{?keyName}}" {code}
> All parameters that has a ? like \{{?secretKey}} are ingored when they are 
> not provided when creating a new template/kamelet. 
> Sometimes I provide a complete uri:
> {code:java}
> - to:
>     uri: "{{uri}}"{code}
> , but this endpoint is not always needed. In this case I would like to set 
> this:
> {code:java}
> - to:
>     uri: "{{?uri}}"{code}
> Where the complete node/endpoint is ignored/disabled when no uri is provided 
> or is null.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to