fix: stop dropping ClusterRoles from the metrics server manifest #354
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 231 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.326
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #354"
general
weight: 0.35
linkvt
sortMetricsResourcesordered the metrics server resources by writing each one into a fixed slot per kind, so it kept at most one ClusterRole. KEDA 2.21.0 adds the aggregatedkeda:editandkeda:viewClusterRoles, andparseManifestsFromFilesent them to the metrics server group like any other ClusterRole.keda:viewthen took the slot ofkeda-external-metrics-readerandkeda:editwas lost, so a fresh install with the 2.21.0 manifests would leave the HPA controller unable to read external metrics.keda:editandkeda:viewtogether with the KEDA operator: they grant access to KEDA's own resources and carry thekeda-operatorlabels.The current 2.20.2 manifests aren't affected, since they have one resource per slot, but this has to merge before the 2.21.0 manifests land.
Checklist
Part of #349
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
Bug Fixes
Controller deployment manifests now include the
keda-operator,keda:edit, andkeda:viewClusterRole resources in the appropriate manifest.* Metrics resources are now processed in a consistent order, with the external metrics controller’s ClusterRoleBinding ordered before other ClusterRoleBindings. Unrecognized resource kinds retain their relative order.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->