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

Adding autoCreate option to FTP too #1354

Merged
merged 8 commits into from
Mar 10, 2023
8 changes: 8 additions & 0 deletions kamelets/ftp-sink.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@ spec:
default: false
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
autoCreate:
title: Autocreate Missing Directories
description: Automatically create the directory the files should be written to.
type: boolean
default: true
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
dependencies:
- "camel:ftp"
- "camel:core"
Expand Down Expand Up @@ -118,3 +125,4 @@ spec:
passiveMode: "{{passiveMode}}"
fileExist: "{{fileExist}}"
binary: "{{binary}}"
autoCreate: "{{autoCreate}}"
8 changes: 8 additions & 0 deletions kamelets/ftp-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,13 @@ spec:
default: false
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
autoCreate:
title: Autocreate Missing Directories
description: Automatically create starting directory.
type: boolean
default: true
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
dependencies:
- "camel:ftp"
- "camel:core"
Expand All @@ -108,6 +115,7 @@ spec:
recursive: "{{recursive}}"
idempotent: "{{idempotent}}"
binary: "{{binary}}"
autoCreate: "{{autoCreate}}"
steps:
- set-header:
name: file
Expand Down
4 changes: 2 additions & 2 deletions kamelets/sftp-sink.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ spec:
default: true
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
autocreate:
autoCreate:
title: Autocreate Missing Directories
description: Automatically create the directory the files should be written to.
type: boolean
Expand Down Expand Up @@ -154,4 +154,4 @@ spec:
passiveMode: "{{passiveMode}}"
fileExist: "{{fileExist}}"
binary: "{{binary}}"
autocreate: "{{autocreate}}"
autoCreate: "{{autoCreate}}"
4 changes: 2 additions & 2 deletions kamelets/sftp-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ spec:
default: true
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
autocreate:
autoCreate:
title: Autocreate Missing Directories
description: Automatically create starting directory.
type: boolean
Expand All @@ -152,7 +152,7 @@ spec:
idempotent: "{{idempotent}}"
ignoreFileNotFoundOrPermissionError: "{{ignoreFileNotFoundOrPermissionError}}"
binary: "{{binary}}"
autocreate: "{{autocreate}}"
autoCreate: "{{autoCreate}}"
steps:
- set-body:
simple: "${body.getBody()}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@ spec:
default: false
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
autoCreate:
title: Autocreate Missing Directories
description: Automatically create the directory the files should be written to.
type: boolean
default: true
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
dependencies:
- "camel:ftp"
- "camel:core"
Expand Down Expand Up @@ -118,3 +125,4 @@ spec:
passiveMode: "{{passiveMode}}"
fileExist: "{{fileExist}}"
binary: "{{binary}}"
autoCreate: "{{autoCreate}}"
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,13 @@ spec:
default: false
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
autoCreate:
title: Autocreate Missing Directories
description: Automatically create starting directory.
type: boolean
default: true
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
dependencies:
- "camel:ftp"
- "camel:core"
Expand All @@ -108,6 +115,7 @@ spec:
recursive: "{{recursive}}"
idempotent: "{{idempotent}}"
binary: "{{binary}}"
autoCreate: "{{autoCreate}}"
steps:
- set-header:
name: file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ spec:
default: true
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
autocreate:
autoCreate:
title: Autocreate Missing Directories
description: Automatically create the directory the files should be written to.
type: boolean
Expand Down Expand Up @@ -154,4 +154,4 @@ spec:
passiveMode: "{{passiveMode}}"
fileExist: "{{fileExist}}"
binary: "{{binary}}"
autocreate: "{{autocreate}}"
autoCreate: "{{autoCreate}}"
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ spec:
default: true
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
autocreate:
autoCreate:
title: Autocreate Missing Directories
description: Automatically create starting directory.
type: boolean
Expand All @@ -152,7 +152,7 @@ spec:
idempotent: "{{idempotent}}"
ignoreFileNotFoundOrPermissionError: "{{ignoreFileNotFoundOrPermissionError}}"
binary: "{{binary}}"
autocreate: "{{autocreate}}"
autoCreate: "{{autoCreate}}"
steps:
- set-body:
simple: "${body.getBody()}"
Expand Down