Skip to content

Event exposures need to watch applications#404

Open
julius-malcovsky wants to merge 2 commits into
mainfrom
fix/event-watch
Open

Event exposures need to watch applications#404
julius-malcovsky wants to merge 2 commits into
mainfrom
fix/event-watch

Conversation

@julius-malcovsky
Copy link
Copy Markdown
Contributor

It can happen that a new event exposure gets stuck waiting for an application to become ready. The application actually is ready, but the exposure doesnt watch the CR.

julius-malcovsky and others added 2 commits May 25, 2026 16:58
Co-authored-by: Björn Kottner <BjoernKarma@users.noreply.github.com>
Co-authored-by: Ismael Garba <iagarba@users.noreply.github.com>
Co-authored-by: Stefan Siber <stefan-ctrl@users.noreply.github.com>
Co-authored-by: Ron Gummich <ron96g@users.noreply.github.com>
Co-authored-by: Björn Kottner <BjoernKarma@users.noreply.github.com>
Co-authored-by: Ismael Garba <iagarba@users.noreply.github.com>
Co-authored-by: Stefan Siber <stefan-ctrl@users.noreply.github.com>
Co-authored-by: Ron Gummich <ron96g@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 25, 2026 15:09
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses cases where newly created EventExposure resources can remain stuck waiting for the provider Application to become ready, because the EventExposure controller previously did not watch Application updates.

Changes:

  • Added an Application watch to the EventExposure controller so provider readiness/status changes trigger reconciles.
  • Implemented MapApplicationToEventExposure to enqueue EventExposure reconciles for exposures referencing the changed Application.
  • Added a //nolint:dupl annotation to document intentional similarity between the exposure/subscription application-mapping functions.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
event/internal/controller/eventexposure_controller.go Watches Application resources and maps application updates to affected EventExposure reconcile requests.
event/internal/controller/eventsubscription_controller.go Adds a //nolint:dupl annotation to document intentional duplication with the new exposure mapping function.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Member

@stefan-ctrl stefan-ctrl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

3 participants