← Back to Pull requests

AEP-9936: Per-VPA Observation Window #9962

Closed
unknown closed this pull request without merging on Oct 07, 2026 09:06 UTC
View on GitHub
unknown unknown commented on Jul 10, 2026 05:59 UTC
Author

This is the AEP for #9936 (Per-VPA Observation Window).

The proposal adds an optional initialDelaySeconds field on PodUpdatePolicy (named to match Pod probes). During the window, the Updater and the Admission Controller treat the VPA as if updateMode were Off, regardless of the configured mode: no evictions, no in-place resizes, and no recommendation injection into pods created during the window. The Recommender is unaffected and continues to publish recommendations to status.recommendation. After the window elapses, the configured mode takes effect. Works uniformly across Recreate, InPlaceOrRecreate, InPlace, and Initial. Off + initialDelaySeconds silently no-ops.

The gate is a pure function of vpa.CreationTimestamp and the current initialDelaySeconds value, re-evaluated on every reconcile. Gate state is surfaced via an InitialDelayActive status condition and a vpa_initial_delay_active gauge, behind a VPAInitialDelay feature gate.

Refs #9936.

/kind feature
/area vertical-pod-autoscaler
/sig autoscaling
/assign

/cc @omerap12 @adrianmoisey

``release-note
NONE
``

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

Summary by CodeRabbit

Documentation
Added a design proposal for configurable observation windows per Vertical Pod Autoscaler.
Documents an optional initial delay before automated pod updates and admission-time recommendation injection.
Recommendations continue to be published during the configured delay.
Covers validation limits, status conditions, metrics, feature-gate behavior, version compatibility, testing, examples, alternatives, and implementation history.
Defines the proposed delay setting and its evaluation based on VPA creation time.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Diff: 230 lines (+172 / -58) across 2 files Reviewer: iamzili Review duration: 128346m
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.37) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 230 lines diff across 2 files
0.37
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
56%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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 #9962"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 56.8% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 37% (MEDIUM) · Higher = larger blast radius
37%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 56.8% · Lower = rushed or shallow review
56.8%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 16% · Safe to merge
16%