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

chore: fix generated YAML and required props #6

Merged
merged 2 commits into from
Feb 16, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ node_modules
.project
.classpath
.metadata
.vscode
2 changes: 1 addition & 1 deletion docs/generator/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ metadata:
name: %s-binding
spec:
source:
%s sink:
%s sink:
%s
`, k.Name, sourceRef, sinkRef)

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/aws-kinesis-source.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ spec:
region: "EU_WEST_1"
secretKey: "The Secret Key"
stream: "The Stream Name"
sink:
sink:
ref:
kind: InMemoryChannel
apiVersion: messaging.knative.dev/v1
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/aws-sqs-source.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ spec:
queueNameOrArn: "The Queue Name"
region: "eu-west-1"
secretKey: "The Secret Key"
sink:
sink:
ref:
kind: InMemoryChannel
apiVersion: messaging.knative.dev/v1
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/bitcoin-source.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
kind: Kamelet
apiVersion: camel.apache.org/v1alpha1
name: bitcoin-source
sink:
sink:
ref:
kind: InMemoryChannel
apiVersion: messaging.knative.dev/v1
Expand Down
6 changes: 4 additions & 2 deletions docs/modules/ROOT/pages/http-source.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ The following table summarizes the configuration options available for the `http
[width="100%",cols="2,^2,3,^2,^2,^3",options="header"]
|===
| Property| Name| Description| Type| Default| Example
| *url {empty}* *| URL| The URL to fetch for data| string| | `"https://gist.githubusercontent.com/nicolaferraro/e3c72ace3c751f9f88273896611ce5fe/raw/3b6f54060bacb56b6719b7386a4645cb59ad6cc1/quote.json"`
| contentType| Content type| The content type of the resource| string| `"application/json"`|
| period| Period between updates| The interval between fetches in milliseconds| integer| `10000`|
| url| URL| The URL to fetch for data| string| | `"https://gist.githubusercontent.com/nicolaferraro/e3c72ace3c751f9f88273896611ce5fe/raw/3b6f54060bacb56b6719b7386a4645cb59ad6cc1/quote.json"`
|===

NOTE: Fields marked with ({empty}*) are mandatory.
Expand All @@ -39,7 +39,9 @@ spec:
kind: Kamelet
apiVersion: camel.apache.org/v1alpha1
name: http-source
sink:
properties:
url: "https://gist.githubusercontent.com/nicolaferraro/e3c72ace3c751f9f88273896611ce5fe/raw/3b6f54060bacb56b6719b7386a4645cb59ad6cc1/quote.json"
sink:
ref:
kind: InMemoryChannel
apiVersion: messaging.knative.dev/v1
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/jira-source.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ spec:
jiraUrl: "http://my_jira.com:8081"
password: "The Password"
username: "The Username"
sink:
sink:
ref:
kind: InMemoryChannel
apiVersion: messaging.knative.dev/v1
Expand Down
5 changes: 3 additions & 2 deletions docs/modules/ROOT/pages/mqtt-source.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ The following table summarizes the configuration options available for the `mqtt
[width="100%",cols="2,^2,3,^2,^2,^3",options="header"]
|===
| Property| Name| Description| Type| Default| Example
| *brokerUrl {empty}* *| Broker URL| The URL of the broker where to establish the connection| string| | `"tcp://mosquitto:1883"`
| *topic {empty}* *| Topic| The topic to subscribe to| string| | `"mytopic"`
| brokerUrl| Broker URL| The URL of the broker where to establish the connection| string| | `"tcp://mosquitto:1883"`
| clientId| Client ID| The client ID to use when connecting to the resource| string| `"mqtt-source"`|
|===

Expand Down Expand Up @@ -40,8 +40,9 @@ spec:
apiVersion: camel.apache.org/v1alpha1
name: mqtt-source
properties:
brokerUrl: "tcp://mosquitto:1883"
topic: "mytopic"
sink:
sink:
ref:
kind: InMemoryChannel
apiVersion: messaging.knative.dev/v1
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/salesforce-source.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ spec:
query: "SELECT Id, Name, Email, Phone FROM Contact"
topicName: "ContactTopic"
userName: "The Username"
sink:
sink:
ref:
kind: InMemoryChannel
apiVersion: messaging.knative.dev/v1
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/slack-source.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ spec:
properties:
channel: "#myroom"
token: "The Token"
sink:
sink:
ref:
kind: InMemoryChannel
apiVersion: messaging.knative.dev/v1
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/telegram-source.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ spec:
name: telegram-source
properties:
authorizationToken: "The Token"
sink:
sink:
ref:
kind: InMemoryChannel
apiVersion: messaging.knative.dev/v1
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/timer-source.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ spec:
name: timer-source
properties:
message: "hello world"
sink:
sink:
ref:
kind: InMemoryChannel
apiVersion: messaging.knative.dev/v1
Expand Down
2 changes: 2 additions & 0 deletions http-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ spec:
title: "HTTP Source"
description: |-
Periodically fetches an HTTP resource and provides the content as output.
required:
- url
properties:
period:
title: Period between updates
Expand Down
3 changes: 2 additions & 1 deletion mqtt-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ spec:
description: |-
Allows receiving messages from any endpoint that supports the MQTT protocol, such as a message broker.
required:
- topic
- topic
- brokerUrl
properties:
topic:
title: Topic
Expand Down