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

AWS SQS Source Kamelet: Add greedy parameter #1070

Merged
merged 3 commits into from
Oct 6, 2022
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
10 changes: 9 additions & 1 deletion kamelets/aws-sqs-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,13 @@ spec:
description: The number of milliseconds before the next poll of the selected stream
type: integer
default: 500
greedy:
title: Greedy Scheduler
description: If greedy is enabled, then the polling will happen immediately again, if the previous run polled 1 or more messages.
type: boolean
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
default: false
dependencies:
- "camel:aws2-sqs"
- "camel:kamelet"
Expand All @@ -146,6 +153,7 @@ spec:
useDefaultCredentialsProvider: "{{useDefaultCredentialsProvider}}"
uriEndpointOverride: "{{?uriEndpointOverride}}"
overrideEndpoint: "{{overrideEndpoint}}"
delay: "{{delay}}"
delay: "{{delay}}"
greedy: "{{greedy}}"
steps:
- to: "kamelet:sink"
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ void testGetKamelets() throws Exception {
@Test
void testGetKameletsDefinition() throws Exception {
JSONSchemaProps props = catalog.getKameletDefinition("aws-sqs-source");
assertEquals(13, props.getProperties().keySet().size());
assertEquals(14, props.getProperties().keySet().size());
assertTrue(props.getProperties().keySet().contains("queueNameOrArn"));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,13 @@ spec:
description: The number of milliseconds before the next poll of the selected stream
type: integer
default: 500
greedy:
title: Greedy Scheduler
description: If greedy is enabled, then the polling will happen immediately again, if the previous run polled 1 or more messages.
type: boolean
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
default: false
dependencies:
- "camel:aws2-sqs"
- "camel:kamelet"
Expand All @@ -146,6 +153,7 @@ spec:
useDefaultCredentialsProvider: "{{useDefaultCredentialsProvider}}"
uriEndpointOverride: "{{?uriEndpointOverride}}"
overrideEndpoint: "{{overrideEndpoint}}"
delay: "{{delay}}"
delay: "{{delay}}"
greedy: "{{greedy}}"
steps:
- to: "kamelet:sink"