CNTRLPLANE-3210: Refactor `externaloidc` controller to support different configuration generation logic #893
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.62) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.62 · 248 lines diff across 3 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.330
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.062
Real PR Conversation Timeline
1 comments
"Review active on #893"
general
weight: 0.35
liouk
Description
This PR refactors the existing
externaloidccontroller to better facilitate creating unique generation logic depending on feature gate state. As part of this:-
/generation/kube-apiserverfor kube-apiserver specific generation/validation logic-
/generation/oauth-apiserverfor oauth-apiserver specific generation/validation logicThis PR sets the foundation for future changes to the oauth-apiserver specific configuration generation process as the external claims sourcing feature continues to progress.
This PR was split out from https://github.com/openshift/cluster-authentication-operator/pull/880 which adds new oauth-apiserver configuration generation logic - in case reviewers would like to see how this will be updated in the future.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
Chores
Updated OpenShift dependencies and added oauth-apiserver entry.
Refactor
External OIDC controller now delegates auth config generation to separate kube-apiserver and oauth-apiserver generators, simplifying controller logic.
New
Added dedicated generators for producing apiserver AuthenticationConfiguration for kube-apiserver and oauth-apiserver.
Tests
Expanded and modernized test suites covering generation, validation, CA/discovery checks, and many mapping/validation scenarios.
Documentation
Added package-level documentation for the kube-apiserver generator.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->