Skip to content

fix: prevent per-asset event deduplication by encoding asset identity in action field#230

Open
tiraboschi wants to merge 1 commit into
openshift-virtualization:mainfrom
tiraboschi:CNV-91395
Open

fix: prevent per-asset event deduplication by encoding asset identity in action field#230
tiraboschi wants to merge 1 commit into
openshift-virtualization:mainfrom
tiraboschi:CNV-91395

Conversation

@tiraboschi

Copy link
Copy Markdown
Member

The Kubernetes events broadcaster deduplicates on (action, reason, regarding, related, ...). All per-asset events shared the same action (equal to reason) and the same regarding object (HCO), so only the last asset's event survived per reconciliation cycle.

Encode the target asset's Kind/Namespace/Name into the action field so each asset produces a distinct dedup key while the reason field stays unchanged for kubectl filtering.

Fixes: https://redhat.atlassian.net/browse/CNV-91395

… in action field

The Kubernetes events broadcaster deduplicates on (action, reason,
regarding, related, ...). All per-asset events shared the same action
(equal to reason) and the same regarding object (HCO), so only the last
asset's event survived per reconciliation cycle.

Encode the target asset's Kind/Namespace/Name into the action field so
each asset produces a distinct dedup key while the reason field stays
unchanged for kubectl filtering.

Fixes: https://redhat.atlassian.net/browse/CNV-91395

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Simone Tiraboschi <stirabos@redhat.com>
@openshift-ci

openshift-ci Bot commented Jul 3, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign dominikholler for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

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.

1 participant