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

Fix #1808 - remove empty x-descriptors field #1814

Merged
merged 1 commit into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 0 additions & 2 deletions kamelets/google-calendar-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,11 @@ spec:
title: Sync Flow
description: Specifies to sync events for incremental synchronization.
type: boolean
x-descriptors:
default: false
consumeFromNow:
title: Consume from now
description: Specfies to consume events in the calendar from now on.
type: boolean
x-descriptors:
default: true
types:
out:
Expand Down
1 change: 0 additions & 1 deletion kamelets/google-mail-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ spec:
title: Mark as Read
description: Mark the message as read once it has been consumed
type: boolean
x-descriptors:
default: true
labels:
title: Gmail Labels
Expand Down
5 changes: 2 additions & 3 deletions kamelets/google-pubsub-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
title: "Google Pubsub Source"
description: |-
Consume messages from Google Cloud Pub/Sub.

If you specify the `serviceAccountKey` property, you must base64 encode it before you pass it as a parameter.
required:
- projectId
Expand All @@ -57,7 +57,6 @@ spec:
title: Synchronous Pull
description: Specifies to synchronously pull batches of messages.
type: boolean
x-descriptors:
default: false
maxMessagesPerPoll:
title: Max Messages Per Poll
Expand All @@ -68,7 +67,7 @@ spec:
title: Concurrent Consumers
description: The number of parallel streams to consume from the subscription.
type: integer
default: 1
default: 1
dependencies:
- "camel:kamelet"
- "camel:google-pubsub"
Expand Down
3 changes: 1 addition & 2 deletions kamelets/google-sheets-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ spec:
title: Split Results
description: True if value range result should be split into rows or columns to process each of them individually.
type: boolean
x-descriptors:
default: true
range:
title: Cells Range
Expand Down Expand Up @@ -141,7 +140,7 @@ spec:
json:
format: "application-json"
description: |-
Json representation of a GoogleSheets ValueRange object that holds all values for the given cell range.
Json representation of a GoogleSheets ValueRange object that holds all values for the given cell range.
Or Json array of values for a single row/column in the range when 'splitResults' mode is enabled.
mediaType: application/json
json-struct:
Expand Down
6 changes: 2 additions & 4 deletions kamelets/google-storage-cdc-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ spec:
Service account key is the basic method for authenticating to the Google Pubsub and Google Storage.

To use this Kamelet you'll need to set up Events notification for your Google Storage Bucket.

You must encode the `serviceAccountKey` property before you pass it as a parameter.
required:
- projectId
Expand All @@ -63,7 +63,6 @@ spec:
title: Synchronous Pull
description: Specifies to synchronously pull batches of messages.
type: boolean
x-descriptors:
default: false
maxMessagesPerPoll:
title: Max Messages Per Poll
Expand All @@ -85,8 +84,7 @@ spec:
If getObject is enabled, then the file created in the Bucket will be
get and returned as body, if not only the event will be returned as body.
type: boolean
x-descriptors:
default: false
default: false
dependencies:
- "camel:kamelet"
- "camel:google-pubsub"
Expand Down
5 changes: 2 additions & 3 deletions kamelets/google-storage-sink.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ spec:
title: "Google Storage Sink"
description: |-
Upload objects to Google Cloud Storage.

If you specify the `serviceAccountKey` property, you must base64 encode it before you pass it as a parameter.

In the header, you can set the `file` / `ce-file` property to specify the filename to upload. If you do set property in the header, the Kamelet uses the exchange ID as filename.
required:
- bucketNameOrArn
Expand All @@ -54,7 +54,6 @@ spec:
title: Autocreate Bucket
description: Specifies to automatically create the Google Cloud Storage bucket.
type: boolean
x-descriptors:
default: false
dependencies:
- "camel:core"
Expand Down
4 changes: 1 addition & 3 deletions kamelets/google-storage-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,11 @@ spec:
title: Auto-delete Objects
description: Specifies to delete objects after consuming them.
type: boolean
x-descriptors:
default: true
autoCreateBucket:
title: Autocreate Bucket
description: Specifies to automatically create the Google Cloud Storage bucket.
type: boolean
x-descriptors:
default: false
dataTypes:
out:
Expand All @@ -80,7 +78,7 @@ spec:
CamelGoogleCloudStorageETag:
title: ETag Value
description: |-
The hex encoded 128-bit MD5 digest of the associated object according to RFC 1864.
The hex encoded 128-bit MD5 digest of the associated object according to RFC 1864.
Is the generation number of the object for which you are retrieving information.
type: string
types:
Expand Down
3 changes: 1 addition & 2 deletions kamelets/http-secured-sink.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ spec:
title: Authentication Preemptive
description: If this option is true, camel-http sends preemptive basic authentication to the server.
type: boolean
x-descriptors:
default: false
authUsername:
title: Authentication Username
Expand Down Expand Up @@ -86,7 +85,7 @@ spec:
constant: "{{method}}"
- to:
uri: "{{url}}"
parameters:
parameters:
authMethod: "{{authMethod}}"
authUsername: "{{authUsername}}"
authPassword: "{{authPassword}}"
Expand Down
1 change: 0 additions & 1 deletion kamelets/infinispan-sink.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ spec:
description: If the Infinispan instance is secured or not
type: boolean
default: true
x-descriptors:
username:
title: Username
description: Username to connect to Infinispan.
Expand Down
1 change: 0 additions & 1 deletion kamelets/infinispan-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ spec:
description: If the Infinispan instance is secured or not
type: boolean
default: true
x-descriptors:
username:
title: Username
description: Username to connect to Infinispan.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,11 @@ spec:
description: If true, periodically commit to ZooKeeper the offset of messages already fetched by the consumer
type: boolean
default: true
x-descriptors:
allowManualCommit:
title: Allow Manual Commit
description: Whether to allow doing manual commits
type: boolean
default: false
x-descriptors:
pollOnError:
title: Poll On Error Behavior
description: What to do if kafka threw an exception while polling for new messages. There are 5 enums and the value can be one of DISCARD, ERROR_HANDLER, RECONNECT, RETRY, STOP
Expand All @@ -89,7 +87,6 @@ spec:
title: Automatically Deserialize Headers
description: When enabled the Kamelet source will deserialize all message headers to String representation.
type: boolean
x-descriptors:
default: true
valueDeserializer:
title: Value Deserializer
Expand Down
5 changes: 1 addition & 4 deletions kamelets/kafka-azure-schema-registry-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,11 @@ spec:
description: If true, periodically commit to ZooKeeper the offset of messages already fetched by the consumer
type: boolean
default: true
x-descriptors:
allowManualCommit:
title: Allow Manual Commit
description: Whether to allow doing manual commits
type: boolean
default: false
x-descriptors:
pollOnError:
title: Poll On Error Behavior
description: What to do if kafka threw an exception while polling for new messages. There are 5 enums and the value can be one of DISCARD, ERROR_HANDLER, RECONNECT, RETRY, STOP
Expand All @@ -109,7 +107,6 @@ spec:
title: Automatically Deserialize Headers
description: When enabled the Kamelet source will deserialize all message headers to String representation.
type: boolean
x-descriptors:
default: true
valueDeserializer:
title: Value Deserializer
Expand All @@ -127,7 +124,7 @@ spec:
title: Specific Avro Value Type
description: The Specific Type Avro will have to deal with
type: string
example: "com.example.Order"
example: "com.example.Order"
dependencies:
- "mvn:org.apache.camel.kamelets:camel-kamelets-utils:4.4.0-SNAPSHOT"
- "camel:kafka"
Expand Down
3 changes: 0 additions & 3 deletions kamelets/kafka-scram-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,11 @@ spec:
description: If true, periodically commit to ZooKeeper the offset of messages already fetched by the consumer
type: boolean
default: true
x-descriptors:
allowManualCommit:
title: Allow Manual Commit
description: Whether to allow doing manual commits
type: boolean
default: false
x-descriptors:
pollOnError:
title: Poll On Error Behavior
description: What to do if kafka threw an exception while polling for new messages. There are 5 enums and the value can be one of DISCARD, ERROR_HANDLER, RECONNECT, RETRY, STOP
Expand All @@ -119,7 +117,6 @@ spec:
title: Automatically Deserialize Headers
description: When enabled the Kamelet source will deserialize all message headers to String representation.
type: boolean
x-descriptors:
default: true
dependencies:
- "mvn:org.apache.camel.kamelets:camel-kamelets-utils:4.4.0-SNAPSHOT"
Expand Down
3 changes: 0 additions & 3 deletions kamelets/kafka-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,11 @@ spec:
description: If true, periodically commit to ZooKeeper the offset of messages already fetched by the consumer
type: boolean
default: true
x-descriptors:
allowManualCommit:
title: Allow Manual Commit
description: Whether to allow doing manual commits
type: boolean
default: false
x-descriptors:
pollOnError:
title: Poll On Error Behavior
description: What to do if kafka threw an exception while polling for new messages. There are 5 enums and the value can be one of DISCARD, ERROR_HANDLER, RECONNECT, RETRY, STOP
Expand All @@ -119,7 +117,6 @@ spec:
title: Automatically Deserialize Headers
description: When enabled the Kamelet source will deserialize all message headers to String representation.
type: boolean
x-descriptors:
default: true
dependencies:
- "mvn:org.apache.camel.kamelets:camel-kamelets-utils:4.4.0-SNAPSHOT"
Expand Down
5 changes: 1 addition & 4 deletions kamelets/kafka-ssl-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,11 @@ spec:
description: If true, periodically commit to ZooKeeper the offset of messages already fetched by the consumer
type: boolean
default: true
x-descriptors:
allowManualCommit:
title: Allow Manual Commit
description: Whether to allow doing manual commits
type: boolean
default: false
x-descriptors:
pollOnError:
title: Poll On Error Behavior
description: What to do if kafka threw an exception while polling for new messages. There are 5 enums and the value can be one of DISCARD, ERROR_HANDLER, RECONNECT, RETRY, STOP
Expand All @@ -99,7 +97,6 @@ spec:
title: Automatically Deserialize Headers
description: When enabled the Kamelet source will deserialize all message headers to String representation.
type: boolean
x-descriptors:
default: true
sslKeyPassword:
description: The password of the private key in the key store file.
Expand Down Expand Up @@ -165,7 +162,7 @@ spec:
sslProtocol: '{{sslProtocol}}'
sslEnabledProtocols: '{{sslEnabledProtocols}}'
sslEndpointAlgorithm: '{{sslEndpointAlgorithm}}'
saslMechanism: '{{saslMechanism}}'
saslMechanism: '{{saslMechanism}}'
groupId: '{{?consumerGroup}}'
autoOffsetReset: '{{autoOffsetReset}}'
pollOnError: '{{pollOnError}}'
Expand Down
5 changes: 2 additions & 3 deletions kamelets/minio-sink.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,8 @@ spec:
example: http://localhost:9000
autoCreateBucket:
title: Autocreate Bucket
description: Specify to automatically create the MinIO bucket.
description: Specify to automatically create the MinIO bucket.
type: boolean
x-descriptors:
default: false
keyName:
title: Key Name
Expand All @@ -89,7 +88,7 @@ spec:
when:
- simple: '${propertiesExist:!keyName}'
steps:
- choice:
- choice:
when:
- simple: "${header[file]}"
steps:
Expand Down
4 changes: 1 addition & 3 deletions kamelets/minio-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ spec:
title: Auto-delete Objects
description: Delete objects after consuming them.
type: boolean
x-descriptors:
default: true
accessKey:
title: Access Key
Expand All @@ -70,9 +69,8 @@ spec:
example: http://localhost:9000
autoCreateBucket:
title: Autocreate Bucket
description: Specifies to automatically create the MinIO bucket.
description: Specifies to automatically create the MinIO bucket.
type: boolean
x-descriptors:
default: false
dependencies:
- "camel:minio"
Expand Down
2 changes: 0 additions & 2 deletions kamelets/mongodb-changes-stream-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,11 @@ spec:
description: whether to enable ssl connection to mongodb
type: boolean
default: true
x-descriptors:
sslValidationEnabled:
title: Enables Ssl Certificates Validation and Host name checks.
description: IMPORTANT this should be disabled only in test environment since can pose security issues.
type: boolean
default: true
x-descriptors:
database:
title: MongoDB Database
description: Sets the name of the MongoDB database to target.
Expand Down
7 changes: 2 additions & 5 deletions kamelets/mongodb-sink.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ spec:
type: string
format: password
x-descriptors:
- urn:camel:group:credentials
- urn:camel:group:credentials
username:
title: MongoDB Username
description: A username for accessing MongoDB.
Expand All @@ -68,13 +68,11 @@ spec:
description: whether to enable ssl connection to mongodb
type: boolean
default: true
x-descriptors:
sslValidationEnabled:
title: Enables Ssl Certificates Validation and Host name checks.
description: IMPORTANT this should be disabled only in test environment since can pose security issues.
type: boolean
default: true
x-descriptors:
database:
title: MongoDB Database
description: The name of the MongoDB database.
Expand All @@ -89,7 +87,6 @@ spec:
description: Create a collection during initialization if it doesn't exist.
type: boolean
default: false
x-descriptors:
types:
in:
mediaType: application/json
Expand Down Expand Up @@ -126,7 +123,7 @@ spec:
- setHeader:
name: CamelMongoDbUpsert
simple: "${header[ce-dbupsert]}"
- to:
- to:
uri: "{{local-mongodb}}:test"
parameters:
createCollection: "{{?createCollection}}"
Expand Down
Loading
Loading