Skip to content

NC | Backport to 5.18.2 #8911

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

Merged
merged 1 commit into from
Mar 27, 2025
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
14 changes: 13 additions & 1 deletion docs/bucket-notifications.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A notification json has these fields:
If not specified, the notification is relevant for all events.
- TopicArn: The connection file (see below). (To specify a Kafka target topic, see "Kafka Connection Fields" below).

Example for a bucket's notification configuration, in a file:
Example for a bucket's notification configuration on containerized environment, in a file:
{
"TopicConfigurations": [
{
Expand All @@ -23,6 +23,18 @@ Example for a bucket's notification configuration, in a file:
]
}

Example for a bucket's notification configuration on Non-containerized environment, in a file:
{
"TopicConfigurations": [
{
"Id": "created_from_s3op",
"TopicArn": "secret-name/connect",
"Events": [
"s3:ObjectCreated:*"
]
}
]
}

## Connection File
A connection file contains some fields that specify the target notification server.
Expand Down
2 changes: 1 addition & 1 deletion src/manage_nsfs/health.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ class NSFSHealth {
const connection_file_path = this.config_fs.get_connection_path_by_name(config_file_name);
const test_notif_err = await notifications_util.test_notifications([{
name: config_data.name,
topic: [this.config_fs.json(config_file_name)]
topic: [config_file_name]
}], this.config_fs.config_root);
if (test_notif_err) {
res = get_invalid_object(config_data.name, connection_file_path, undefined, test_notif_err.code);
Expand Down