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

acosentino pushed a commit to branch 3.20.x
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 3936b6f7b2034f53fffd05fcfa610bc93b41c7bb
Author: Andrea Cosentino <[email protected]>
AuthorDate: Thu Feb 9 11:03:35 2023 +0100

    Convert all the parameters with multiple possible values to enum - Pulsar 
Sink
    
    Signed-off-by: Andrea Cosentino <[email protected]>
---
 .../src/main/resources/kamelets/pulsar-sink.kamelet.yaml         | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/pulsar-sink.kamelet.yaml 
b/library/camel-kamelets/src/main/resources/kamelets/pulsar-sink.kamelet.yaml
index 0851c03b..5a402488 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/pulsar-sink.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/pulsar-sink.kamelet.yaml
@@ -52,7 +52,8 @@ spec:
       topicType:
         title: Topic Type
         description: "The topic type. Possible values are persistent or 
non-persistent."
-        type: string  
+        type: string 
+        enum: ["persistent", "non-persistent"]
       namespaceName:
         title: Pulsar Namespace Name
         description: The Pulsar Namespace Name
@@ -97,7 +98,7 @@ spec:
           - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
       compressionType:
         title: Compression Type
-        description: "Compression type to use. Possible values are NONE, LZ4, 
ZLIB, ZSTD, or SNAPPY."
+        description: "Compression type to use."
         type: string
         default: "NONE"
         x-descriptors:
@@ -106,6 +107,7 @@ spec:
           - 'urn:alm:descriptor:com.tectonic.ui:select:ZLIB'
           - 'urn:alm:descriptor:com.tectonic.ui:select:ZSTD'
           - 'urn:alm:descriptor:com.tectonic.ui:select:SNAPPY'
+        enum: ["ONE", "LZ4", "ZLIB", "ZSTD", "SNAPPY"]
       initialSequenceId:
         title: Initial SequenceId
         description: "The first message published will have a sequence Id of 
initialSequenceId 1."
@@ -130,13 +132,14 @@ spec:
         default: 50000
       messageRoutingMode:
         title: Message Routing Mode
-        description: "Message Routing Mode to use. Possible values are 
SinglePartition, RoundRobinPartition, CustomPartition"
+        description: "Message Routing Mode to use."
         type: string
         default: "RoundRobinPartition"
         x-descriptors:
           - 'urn:alm:descriptor:com.tectonic.ui:select:SinglePartition'
           - 'urn:alm:descriptor:com.tectonic.ui:select:RoundRobinPartition'
           - 'urn:alm:descriptor:com.tectonic.ui:select:CustomPartition'
+        enum: ["SinglePartition", "RoundRobinPartition", "CustomPartition"]
       producerName:
         title: Producer Name
         description: "Name of the producer. If unset, lets Pulsar select a 
unique identifier."

Reply via email to