Skip to content

[release-1.22] Move AggregationRuleTransform to shared common package to fix eventing RBAC race#2321

Open
knative-prow-robot wants to merge 1 commit into
knative:release-1.22from
knative-prow-robot:cherry-pick-2316-to-release-1.22
Open

[release-1.22] Move AggregationRuleTransform to shared common package to fix eventing RBAC race#2321
knative-prow-robot wants to merge 1 commit into
knative:release-1.22from
knative-prow-robot:cherry-pick-2316-to-release-1.22

Conversation

@knative-prow-robot

Copy link
Copy Markdown
Contributor

This is an automated cherry-pick of #2316

Fix intermittent 403 RBAC errors for aggregated ClusterRoles (e.g. channelable-manipulator) by
preserving Kubernetes-managed rules during reconciliation for all components, not just Serving.

AggregationRuleTransform was only applied to KnativeServing but not to
KnativeEventing. This caused the operator to continuously overwrite the
rules of aggregated ClusterRoles (e.g. channelable-manipulator) with
empty rules from the manifest, creating a race condition with the
Kubernetes aggregation controller. During the race window, RBAC lookups
against the aggregated role return 403 Forbidden.

Move the transform from knativeserving/common to the shared
reconciler/common package and apply it inside Transform(), so every
component (Serving, Eventing, Kafka) benefits automatically.

Signed-off-by: Christoph Stäbler <cstabler@redhat.com>
@knative-prow

knative-prow Bot commented Jun 16, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: knative-prow-robot
Once this PR has been reviewed and has the lgtm label, please assign aliok 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

@knative-prow knative-prow Bot requested review from houshengbo and matzew June 16, 2026 17:15
@knative-prow knative-prow Bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jun 16, 2026
@codecov

codecov Bot commented Jun 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 63.89%. Comparing base (48fc4b5) to head (db365ed).

Additional details and impacted files
@@               Coverage Diff                @@
##           release-1.22    #2321      +/-   ##
================================================
+ Coverage         63.84%   63.89%   +0.05%     
================================================
  Files                55       55              
  Lines              2478     2479       +1     
================================================
+ Hits               1582     1584       +2     
+ Misses              777      776       -1     
  Partials            119      119              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants