Skip to content

feat(plugin): add Kubernetes events for improved observability#10040

Merged
leonardoce merged 1 commit intomainfrom
dev/plugin-events
Mar 6, 2026
Merged

feat(plugin): add Kubernetes events for improved observability#10040
leonardoce merged 1 commit intomainfrom
dev/plugin-events

Conversation

@mnencia
Copy link
Member

@mnencia mnencia commented Feb 23, 2026

Emit events at key points in the plugin lifecycle to improve user experience. Users can now see plugin registration status, configuration errors, and cleanup progress directly on the service resource using kubectl describe, rather than having to check operator logs.

Events are emitted for successful operations (finalizer added, plugin registered, cleanup started) and failures (missing secrets, invalid certificates, registration errors). Error events include actionable details to help troubleshooting.

Closes #10041

@mnencia mnencia requested a review from a team as a code owner February 23, 2026 08:12
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. enhancement 🪄 New feature or request observability 🔍 Observability, Monitoring, Logging labels Feb 23, 2026
@mnencia mnencia linked an issue Feb 23, 2026 that may be closed by this pull request
2 tasks
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Feb 23, 2026
@leonardoce
Copy link
Contributor

/test

@github-actions
Copy link
Contributor

github-actions bot commented Mar 5, 2026

@leonardoce, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/22718907337

@leonardoce leonardoce force-pushed the dev/cleanup-deleted-service branch 4 times, most recently from ea809c5 to 0d654cd Compare March 6, 2026 07:50
Base automatically changed from dev/cleanup-deleted-service to main March 6, 2026 08:00
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Mar 6, 2026
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Mar 6, 2026
@leonardoce leonardoce added the do not backport This PR must not be backported - it will be in the next minor release label Mar 6, 2026
@leonardoce
Copy link
Contributor

/test

@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2026

@leonardoce, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/22754749960

@leonardoce
Copy link
Contributor

I tested it manually, it works perfectly fine. Let's see if the E2e tests agree with me.

@cnpg-bot cnpg-bot added the ok to merge 👌 This PR can be merged label Mar 6, 2026
Emit events at key points in the plugin lifecycle to improve user
experience. Users can now see plugin registration status, configuration
errors, and cleanup progress directly on the service resource using
kubectl describe, rather than having to check operator logs.

Events are emitted for successful operations (finalizer added, plugin
registered, cleanup started) and failures (missing secrets, invalid
certificates, registration errors). Error events include actionable
details to help troubleshooting.

Closes #10041

Signed-off-by: Marco Nenciarini <[email protected]>
@leonardoce leonardoce merged commit bcaf510 into main Mar 6, 2026
40 checks passed
@leonardoce leonardoce deleted the dev/plugin-events branch March 6, 2026 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not backport This PR must not be backported - it will be in the next minor release enhancement 🪄 New feature or request lgtm This PR has been approved by a maintainer observability 🔍 Observability, Monitoring, Logging ok to merge 👌 This PR can be merged size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Add Kubernetes events to plugin controller for improved observability

4 participants