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

SFTP Kamelet Source: Support ignoreFileNotFoundOrPermissionError parameter #995

Merged
merged 2 commits into from
Aug 2, 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
8 changes: 8 additions & 0 deletions kamelets/sftp-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,13 @@ spec:
default: true
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
ignoreFileNotFoundOrPermissionError:
title: Ignore File Not Found Or Permission Error
description: Whether to ignore when (trying to list files in directories or when downloading a file), which does not exist or due to permission error. By default when a directory or file does not exists or insufficient permission, then an exception is thrown. Setting this option to true allows to ignore that instead.
type: boolean
default: false
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
dependencies:
- "camel:ftp"
- "camel:core"
Expand All @@ -99,6 +106,7 @@ spec:
passiveMode: "{{passiveMode}}"
recursive: "{{recursive}}"
idempotent: "{{idempotent}}"
ignoreFileNotFoundOrPermissionError: "{{ignoreFileNotFoundOrPermissionError}}"
steps:
- set-header:
name: file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,13 @@ spec:
default: true
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
ignoreFileNotFoundOrPermissionError:
title: Ignore File Not Found Or Permission Error
description: Whether to ignore when (trying to list files in directories or when downloading a file), which does not exist or due to permission error. By default when a directory or file does not exists or insufficient permission, then an exception is thrown. Setting this option to true allows to ignore that instead.
type: boolean
default: false
x-descriptors:
- 'urn:alm:descriptor:com.tectonic.ui:checkbox'
dependencies:
- "camel:ftp"
- "camel:core"
Expand All @@ -99,6 +106,7 @@ spec:
passiveMode: "{{passiveMode}}"
recursive: "{{recursive}}"
idempotent: "{{idempotent}}"
ignoreFileNotFoundOrPermissionError: "{{ignoreFileNotFoundOrPermissionError}}"
steps:
- set-header:
name: file
Expand Down