You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2022/11/18 18:23:59 UTC
[camel-kamelets] 10/10: FTP / SFTP connectors missing setting for binary mode transfers - FTPS Source and Sink
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch fix-1156-0.9.x
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 5138ff7d9c06d0a71e915e80df74fde86e418b2c
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Nov 18 19:21:48 2022 +0100
FTP / SFTP connectors missing setting for binary mode transfers - FTPS Source and Sink
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
.../src/main/resources/kamelets/ftps-sink.kamelet.yaml | 8 ++++++++
.../src/main/resources/kamelets/ftps-source.kamelet.yaml | 8 ++++++++
2 files changed, 16 insertions(+)
diff --git a/library/camel-kamelets/src/main/resources/kamelets/ftps-sink.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/ftps-sink.kamelet.yaml
index 8fc9b2e4..513067ac 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/ftps-sink.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/ftps-sink.kamelet.yaml
@@ -82,6 +82,13 @@ spec:
description: "Specifies how the Kamelet behaves if the file already exists. Possible values are Override, Append, Fail, or Ignore."
type: string
default: Override
+ binary:
+ title: Binary
+ description: Specifies the file transfer mode, BINARY or ASCII. Default is ASCII (false).
+ type: boolean
+ default: false
+ x-descriptors:
+ - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
dependencies:
- "camel:ftp"
- "camel:core"
@@ -108,3 +115,4 @@ spec:
password: "{{password}}"
passiveMode: "{{passiveMode}}"
fileExist: "{{fileExist}}"
+ binary: "{{binary}}"
diff --git a/library/camel-kamelets/src/main/resources/kamelets/ftps-source.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/ftps-source.kamelet.yaml
index 7ab7d841..9656a6be 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/ftps-source.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/ftps-source.kamelet.yaml
@@ -87,6 +87,13 @@ spec:
default: true
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
+ binary:
+ title: Binary
+ description: Specifies the file transfer mode, BINARY or ASCII. Default is ASCII (false).
+ type: boolean
+ default: false
+ x-descriptors:
+ - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
dependencies:
- "camel:ftp"
- "camel:core"
@@ -99,6 +106,7 @@ spec:
passiveMode: "{{passiveMode}}"
recursive: "{{recursive}}"
idempotent: "{{idempotent}}"
+ binary: "{{binary}}"
steps:
- set-header:
name: file