Skip to content

feat: add notification_enable to harbor_config_system resource#568

Open
listellm wants to merge 2 commits intogoharbor:mainfrom
listellm:feat/add-notification-enable
Open

feat: add notification_enable to harbor_config_system resource#568
listellm wants to merge 2 commits intogoharbor:mainfrom
listellm:feat/add-notification-enable

Conversation

@listellm
Copy link

Summary

Adds support for the notification_enable system configuration parameter to the harbor_config_system resource. This parameter controls the global webhook/notification feature gate in Harbor.

Changes

✨ Added notification_enable field to:

  • models/config.go - ConfigBodySystemPost and ConfigBodyResponse structs
  • provider/resource_config_system.go - Schema attribute and read mapping
  • client/config.go - Body construction in GetConfigSystem()

Motivation

The notification_enable parameter is a critical setting for anyone using harbor_project_webhook resources. When notification_enable is false, all project-level webhook policies are silently ignored. This PR enables declarative management of this setting via Terraform.

Testing

  • ✅ Code builds successfully
  • ⏳ Acceptance tests (will run in CI)

Related Issue

Closes #567

🤖 Generated with Claude Code

@listellm listellm requested a review from a team as a code owner February 13, 2026 10:29
@listellm listellm force-pushed the feat/add-notification-enable branch 2 times, most recently from d78226c to 6759e7b Compare February 13, 2026 10:38
✨ Add support for notification_enable system configuration
🔧 Expose global webhook/notification feature gate in Terraform
📝 Enable declarative management of notification settings

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Signed-off-by: Listell McLean <listell.mclean@e-star.com>
@listellm listellm force-pushed the feat/add-notification-enable branch from 6759e7b to fca8b53 Compare February 13, 2026 10:39
@flbla
Copy link
Contributor

flbla commented Feb 13, 2026

@listellm thanks for the PR, could you please update the documentation ?

@listellm
Copy link
Author

@listellm thanks for the PR, could you please update the documentation ?

Done — documentation has been updated in the latest commit.

@flbla
Copy link
Contributor

flbla commented Feb 24, 2026

I suppose you forgot to push, I can't see the documentation

@listellm
Copy link
Author

I suppose you forgot to push, I can't see the documentation

now pushed

@flbla
Copy link
Contributor

flbla commented Feb 24, 2026

thank you !

- Add `notification_enable` to example usage block
- Document attribute in Optional schema section
- Note webhook silencing behaviour when disabled

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Listell McLean <listell.mclean@e-star.com>
@listellm listellm force-pushed the feat/add-notification-enable branch from 074e630 to 879563d Compare February 24, 2026 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add notification_enable to harbor_config_system resource

2 participants