Skip to content

[release-1.21] Move AggregationRuleTransform to shared common package to fix eventing RBAC race#2327

Merged
knative-prow[bot] merged 1 commit into
knative:release-1.21from
knative-prow-robot:cherry-pick-2316-to-release-1.21
Jul 4, 2026
Merged

[release-1.21] Move AggregationRuleTransform to shared common package to fix eventing RBAC race#2327
knative-prow[bot] merged 1 commit into
knative:release-1.21from
knative-prow-robot:cherry-pick-2316-to-release-1.21

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-robot knative-prow-robot force-pushed the cherry-pick-2316-to-release-1.21 branch from 387aeae to 14ae5b9 Compare July 4, 2026 23:10
@knative-prow knative-prow Bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jul 4, 2026
@knative-prow knative-prow Bot requested review from aliok and houshengbo July 4, 2026 23:10
@codecov

codecov Bot commented Jul 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 63.52%. Comparing base (497eeeb) to head (14ae5b9).
⚠️ Report is 1 commits behind head on release-1.21.

Additional details and impacted files
@@               Coverage Diff                @@
##           release-1.21    #2327      +/-   ##
================================================
+ Coverage         63.45%   63.52%   +0.07%     
================================================
  Files                49       49              
  Lines              1899     1900       +1     
================================================
+ Hits               1205     1207       +2     
+ Misses              600      599       -1     
  Partials             94       94              

☔ 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.

@houshengbo

Copy link
Copy Markdown
Contributor

/lgtm
/approve

@knative-prow knative-prow Bot added the lgtm Indicates that a PR is ready to be merged. label Jul 4, 2026
@knative-prow

knative-prow Bot commented Jul 4, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: houshengbo, knative-prow-robot

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

The pull request process is described 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 added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 4, 2026
@knative-prow knative-prow Bot merged commit 79c589b into knative:release-1.21 Jul 4, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. 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.

3 participants