Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert all the parameters with multiple possible values to enum #1291

Merged
merged 16 commits into from
Feb 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
c7f5164
Convert all the parameters with multiple possible values to enum - In…
oscerd Feb 9, 2023
9d670b4
Convert all the parameters with multiple possible values to enum - In…
oscerd Feb 9, 2023
aa4e962
Convert all the parameters with multiple possible values to enum - Jo…
oscerd Feb 9, 2023
5605cc7
Convert all the parameters with multiple possible values to enum - Jo…
oscerd Feb 9, 2023
10719da
Convert all the parameters with multiple possible values to enum - Mo…
oscerd Feb 9, 2023
dadd823
Convert all the parameters with multiple possible values to enum - Mo…
oscerd Feb 9, 2023
55eb124
Convert all the parameters with multiple possible values to enum - Pu…
oscerd Feb 9, 2023
79597ca
Convert all the parameters with multiple possible values to enum - Pu…
oscerd Feb 9, 2023
f6fa977
Convert all the parameters with multiple possible values to enum - Pu…
oscerd Feb 9, 2023
173641a
Convert all the parameters with multiple possible values to enum - Pu…
oscerd Feb 9, 2023
3244a48
Convert all the parameters with multiple possible values to enum - Sa…
oscerd Feb 9, 2023
8d4acc3
Convert all the parameters with multiple possible values to enum - Sa…
oscerd Feb 9, 2023
6c451d0
Convert all the parameters with multiple possible values to enum - SF…
oscerd Feb 9, 2023
b3d2214
Convert all the parameters with multiple possible values to enum - SF…
oscerd Feb 9, 2023
3fa263b
Convert all the parameters with multiple possible values to enum - XJ…
oscerd Feb 9, 2023
20875dd
Convert all the parameters with multiple possible values to enum - XJ…
oscerd Feb 9, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion kamelets/infinispan-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,11 @@ spec:
default: "infinispan"
eventTypes:
title: Infinispan Cluster Name
description: Specifies the set of event types to register by the consumer. Multiple event can be separated by comma without spaces. The possible event types are CLIENT_CACHE_ENTRY_CREATED, CLIENT_CACHE_ENTRY_MODIFIED, CLIENT_CACHE_ENTRY_REMOVED, CLIENT_CACHE_ENTRY_EXPIRED, CLIENT_CACHE_FAILOVER
description: Specifies the set of event types to register by the consumer. Multiple event can be separated by comma without spaces.
type: string
example: "CLIENT_CACHE_ENTRY_CREATED,CLIENT_CACHE_ENTRY_MODIFIED"
default: "CLIENT_CACHE_ENTRY_CREATED,CLIENT_CACHE_ENTRY_MODIFIED,CLIENT_CACHE_ENTRY_REMOVED,CLIENT_CACHE_ENTRY_EXPIRED,CLIENT_CACHE_FAILOVER"
enum: ["CLIENT_CACHE_ENTRY_CREATED", "CLIENT_CACHE_ENTRY_MODIFIED", "CLIENT_CACHE_ENTRY_REMOVED", "CLIENT_CACHE_ENTRY_EXPIRED", "CLIENT_CACHE_FAILOVER"]
dependencies:
- "camel:kamelet"
- "camel:core"
Expand Down
3 changes: 2 additions & 1 deletion kamelets/jolt-transformation-action.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ spec:
pattern: "^(http|https|file|classpath)://.*"
transform:
title: Transform DSL
description: Specifies the Transform DSL of the endpoint resource. If none is specified Chainr will be used. Possible values are Chainr, Shiftr, Defaultr, Removr and Sortr.
description: Specifies the Transform DSL of the endpoint resource. If none is specified Chainr will be used.
type: string
default: "Chainr"
enum: ["Chainr", "Shiftr", "Defaultr", "Removr", "Sortr"]
dependencies:
- "camel:jolt"
- "camel:kamelet"
Expand Down
3 changes: 2 additions & 1 deletion kamelets/mongodb-sink.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ spec:
type: string
writeConcern:
title: Write Concern
description: The level of acknowledgment requested from MongoDB for write operations. Possible values are ACKNOWLEDGED, W1, W2, W3, UNACKNOWLEDGED, JOURNALED, or MAJORITY.
description: The level of acknowledgment requested from MongoDB for write operations.
type: string
enum: ["ACKNOWLEDGED", "W1", "W2", "W3", "UNACKNOWLEDGED", "JOURNALED", "MAJORITY"]
createCollection:
title: Collection
description: Create a collection during initialization if it doesn't exist.
Expand Down
11 changes: 7 additions & 4 deletions kamelets/pulsar-sink.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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."
Expand All @@ -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."
Expand Down
14 changes: 9 additions & 5 deletions kamelets/pulsar-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -118,24 +119,27 @@ 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."
type: string
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."
Expand Down
3 changes: 2 additions & 1 deletion kamelets/salesforce-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ spec:
default: https://login.salesforce.com
notifyForFields:
title: Notify For Fields
description: Notify for fields. Possible values are ALL, REFERENCED, SELECT, or WHERE.
description: Notify for fields.
type: string
default: ALL
enum: [ "ALL", "REFERENCED", "SELECT", "WHERE"]
clientId:
title: Consumer Key
description: The Salesforce application consumer key.
Expand Down
3 changes: 2 additions & 1 deletion kamelets/sftp-sink.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,10 @@ spec:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
fileExist:
title: File Existence
description: How to behave in case of file already existent. There are 4 enums. Possible values are Override, Append, Fail, or Ignore.
description: How to behave in case of file already existent.
type: string
default: Override
enum: ["Override", "Append", "Fail", "Ignore"]
binary:
title: Binary
description: Specifies the file transfer mode, BINARY or ASCII. Default is ASCII (false).
Expand Down
3 changes: 2 additions & 1 deletion kamelets/xj-identity-action.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ spec:
properties:
direction:
title: Direction
description: The transform direction, possible values are XML2JSON or JSON2XML
description: The transform direction.
type: string
enum: ["XML2JSON", "JSON2XML"]
dependencies:
- "camel:xj"
- "camel:kamelet"
Expand Down
3 changes: 2 additions & 1 deletion kamelets/xj-template-action.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ spec:
properties:
direction:
title: Direction
description: The transform direction, possible values are XML2JSON or JSON2XML
description: The transform direction.
type: string
enum: ["XML2JSON", "JSON2XML"]
template:
title: Template
description: The inline template to apply a transformation through template.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,11 @@ spec:
default: "infinispan"
eventTypes:
title: Infinispan Cluster Name
description: Specifies the set of event types to register by the consumer. Multiple event can be separated by comma without spaces. The possible event types are CLIENT_CACHE_ENTRY_CREATED, CLIENT_CACHE_ENTRY_MODIFIED, CLIENT_CACHE_ENTRY_REMOVED, CLIENT_CACHE_ENTRY_EXPIRED, CLIENT_CACHE_FAILOVER
description: Specifies the set of event types to register by the consumer. Multiple event can be separated by comma without spaces.
type: string
example: "CLIENT_CACHE_ENTRY_CREATED,CLIENT_CACHE_ENTRY_MODIFIED"
default: "CLIENT_CACHE_ENTRY_CREATED,CLIENT_CACHE_ENTRY_MODIFIED,CLIENT_CACHE_ENTRY_REMOVED,CLIENT_CACHE_ENTRY_EXPIRED,CLIENT_CACHE_FAILOVER"
enum: ["CLIENT_CACHE_ENTRY_CREATED", "CLIENT_CACHE_ENTRY_MODIFIED", "CLIENT_CACHE_ENTRY_REMOVED", "CLIENT_CACHE_ENTRY_EXPIRED", "CLIENT_CACHE_FAILOVER"]
dependencies:
- "camel:kamelet"
- "camel:core"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ spec:
pattern: "^(http|https|file|classpath)://.*"
transform:
title: Transform DSL
description: Specifies the Transform DSL of the endpoint resource. If none is specified Chainr will be used. Possible values are Chainr, Shiftr, Defaultr, Removr and Sortr.
description: Specifies the Transform DSL of the endpoint resource. If none is specified Chainr will be used.
type: string
default: "Chainr"
enum: ["Chainr", "Shiftr", "Defaultr", "Removr", "Sortr"]
dependencies:
- "camel:jolt"
- "camel:kamelet"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ spec:
type: string
writeConcern:
title: Write Concern
description: The level of acknowledgment requested from MongoDB for write operations. Possible values are ACKNOWLEDGED, W1, W2, W3, UNACKNOWLEDGED, JOURNALED, or MAJORITY.
description: The level of acknowledgment requested from MongoDB for write operations.
type: string
enum: ["ACKNOWLEDGED", "W1", "W2", "W3", "UNACKNOWLEDGED", "JOURNALED", "MAJORITY"]
createCollection:
title: Collection
description: Create a collection during initialization if it doesn't exist.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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."
Expand All @@ -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."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -118,24 +119,27 @@ 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."
type: string
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."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ spec:
default: https://login.salesforce.com
notifyForFields:
title: Notify For Fields
description: Notify for fields. Possible values are ALL, REFERENCED, SELECT, or WHERE.
description: Notify for fields.
type: string
default: ALL
enum: [ "ALL", "REFERENCED", "SELECT", "WHERE"]
clientId:
title: Consumer Key
description: The Salesforce application consumer key.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,10 @@ spec:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
fileExist:
title: File Existence
description: How to behave in case of file already existent. There are 4 enums. Possible values are Override, Append, Fail, or Ignore.
description: How to behave in case of file already existent.
type: string
default: Override
enum: ["Override", "Append", "Fail", "Ignore"]
binary:
title: Binary
description: Specifies the file transfer mode, BINARY or ASCII. Default is ASCII (false).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ spec:
properties:
direction:
title: Direction
description: The transform direction, possible values are XML2JSON or JSON2XML
description: The transform direction.
type: string
enum: ["XML2JSON", "JSON2XML"]
dependencies:
- "camel:xj"
- "camel:kamelet"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ spec:
properties:
direction:
title: Direction
description: The transform direction, possible values are XML2JSON or JSON2XML
description: The transform direction.
type: string
enum: ["XML2JSON", "JSON2XML"]
template:
title: Template
description: The inline template to apply a transformation through template.
Expand Down