CNTRLPLANE-2449: feat: generate OpenAPI schemas from a running oauth-apiserver instance #211
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.60) × (1 − Review Confidence (0.58)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.60 · 234 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.327
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.060
Real PR Conversation Timeline
1 comments
"Review active on #211"
general
weight: 0.35
ingvagabund
Making the generated files look as close to https://github.com/kubernetes/kubernetes/tree/master/api as possible. The newly added
update-openapi-spec.shmirrors the same pattern from https://github.com/kubernetes/kubernetes/blob/master/hack/update-openapi-spec.sh. The same forverify-openapi-spec.sh.Only
etcdbinary is required running. Otherwise oauth-apiserver errors with:Currently:
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
New Features
Added regenerated OpenAPI v2/v3 specifications for OAuth and user APIs, including expanded schemas and REST path coverage.
Added Kubernetes/OpenShift API discovery artifacts (v2 and v3) listing API groups, resources, and supported operations.
Documentation
Added
api/README documenting generated schema/discovery contents and how to regenerate/verify them.Chores
* Updated specification regeneration and verification workflows to include OpenAPI/discovery generation checks, failing when generated outputs are out of date.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->