This is an automated email from the ASF dual-hosted git repository. nferraro pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 7044a6ed8dfaff414a11c57deb93765e0e964387 Author: nicolaferraro <[email protected]> AuthorDate: Tue Oct 19 10:26:36 2021 +0200 chore: add authorization to MQTT Kamelet --- mqtt-sink.kamelet.yaml | 13 +++++++++++++ mqtt-source.kamelet.yaml | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/mqtt-sink.kamelet.yaml b/mqtt-sink.kamelet.yaml index e279e74..39e1331 100644 --- a/mqtt-sink.kamelet.yaml +++ b/mqtt-sink.kamelet.yaml @@ -30,6 +30,17 @@ spec: description: The URL of the broker where to establish the connection type: string example: "tcp://mosquitto:1883" + username: + title: Username + description: Username to use when connecting to the MQTT broker + type: string + password: + title: Password + description: Password to use when connecting to the MQTT broker + type: string + format: password + x-descriptors: + - urn:alm:descriptor:com.tectonic.ui:password dependencies: - "camel:paho" - "camel:kamelet" @@ -41,3 +52,5 @@ spec: uri: paho:{{topic}} parameters: brokerUrl: "{{brokerUrl}}" + userName: "{{?username}}" + password: "{{?password}}" diff --git a/mqtt-source.kamelet.yaml b/mqtt-source.kamelet.yaml index 1ae863a..e3d69e0 100644 --- a/mqtt-source.kamelet.yaml +++ b/mqtt-source.kamelet.yaml @@ -35,6 +35,17 @@ spec: description: The client ID to use when connecting to the resource type: string default: "mqtt-source" + username: + title: Username + description: Username to use when connecting to the MQTT broker + type: string + password: + title: Password + description: Password to use when connecting to the MQTT broker + type: string + format: password + x-descriptors: + - urn:alm:descriptor:com.tectonic.ui:password dependencies: - "camel:paho" - "camel:kamelet" @@ -44,5 +55,7 @@ spec: parameters: brokerUrl: "{{brokerUrl}}" clientId: "{{clientId}}" + userName: "{{?username}}" + password: "{{?password}}" steps: - to: kamelet:sink
