You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2023/02/09 13:08:40 UTC
[camel-kamelets] 09/16: Convert all the parameters with multiple possible values to enum - Pulsar Source
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch final-enum-3.20.x
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit b7bc89ace5a8cc5d79a88d469c8062f70ab34e6e
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Feb 9 13:54:49 2023 +0100
Convert all the parameters with multiple possible values to enum - Pulsar Source
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
kamelets/pulsar-sink.kamelet.yaml | 2 +-
kamelets/pulsar-source.kamelet.yaml | 14 +++++++++-----
2 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/kamelets/pulsar-sink.kamelet.yaml b/kamelets/pulsar-sink.kamelet.yaml
index 5a402488..900056d3 100644
--- a/kamelets/pulsar-sink.kamelet.yaml
+++ b/kamelets/pulsar-sink.kamelet.yaml
@@ -51,7 +51,7 @@ spec:
type: string
topicType:
title: Topic Type
- description: "The topic type. Possible values are persistent or non-persistent."
+ description: "The topic type."
type: string
enum: ["persistent", "non-persistent"]
namespaceName:
diff --git a/kamelets/pulsar-source.kamelet.yaml b/kamelets/pulsar-source.kamelet.yaml
index 90a5853a..591e2b07 100644
--- a/kamelets/pulsar-source.kamelet.yaml
+++ b/kamelets/pulsar-source.kamelet.yaml
@@ -51,8 +51,9 @@ spec:
type: string
topicType:
title: Topic Type
- description: "The topic type. Possible values are persistent or non-persistent."
- type: string
+ description: "The topic type."
+ type: string
+ enum: ["persistent", "non-persistent"]
namespaceName:
title: Pulsar Namespace Name
description: The Pulsar Namespace Name
@@ -118,9 +119,10 @@ spec:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
subscriptionInitialPosition:
title: Subscription Initial Position
- description: "Control the initial position in the topic of a newly created subscription. Default is latest message. Possible values are EARLIEST or LATEST."
+ description: "Control the initial position in the topic of a newly created subscription. Default is latest message."
type: string
default: LATEST
+ enum: ["EARLIEST", "LATEST"]
subscriptionName:
title: Subscription Name
description: "Name of the subscription to use."
@@ -128,14 +130,16 @@ spec:
default: subs
subscriptionTopicsMode:
title: Subscription Topics Mode
- description: "Determines to which topics this consumer should be subscribed to - Persistent, Non-Persistent, or both. Only used with pattern subscriptions.Possible values are PersistentOnly, NonPersistentOnly, or AllTopics."
+ description: "Determines to which topics this consumer should be subscribed to - Persistent, Non-Persistent, or both. Only used with pattern subscriptions."
type: string
default: PersistentOnly
+ enum: ["PersistentOnly", "NonPersistentOnly", "AllTopics"]
subscriptionType:
title: Subscription Type
- description: "Type of the subscription. Possible values are EXCLUSIVE, SHARED, FAILOVER, KEY_SHARED."
+ description: "Type of the subscription."
type: string
default: EXCLUSIVE
+ enum: ["EXCLUSIVE", "SHARED", "FAILOVER", "KEY_SHARED"]
topicsPattern:
title: Topic Pattern
description: "Whether the topic is a pattern (regular expression) that allows the consumer to subscribe to all matching topics in the namespace."