← Back to Pull requests

Tolerate missing config ConfigMaps at webhook startup #16686

Open
unknown opened this pull request with 176 lines diff across 2 files
View on GitHub
unknown unknown commented on Sep 02, 2026 10:10 UTC
Author

Fixes #16658

The config Store registers its ConfigMaps with the InformedWatcher using plain Watch(), so the watcher fatals at startup if config-defaults, config-features, or config-autoscaler is absent. On a cold start this deadlocks against the config validating webhook (failurePolicy: Fail), which cannot admit the ConfigMaps while the webhook itself is down.

<!-- Please include the 'why' behind your changes if no issue exists -->

Proposed Changes

  • Override Store.WatchConfigs to use WatchWithDefault when the watcher implements DefaultingWatcher, registering a synthetic empty default for each ConfigMap.
  • The InformedWatcher then treats a missing ConfigMap as "use the default" instead of failing, so the webhook boots on built-in defaults and can then admit the real ConfigMaps.
  • Real values are picked up via OnConfigChanged as soon as the ConfigMaps appear. Watchers that aren't DefaultingWatcher fall back to the previous Watch() behaviour.
  • Release Note

    <!-- Enter your extended release note in the below block. If the PR requires
    additional action from users switching to the new release, include the string
    "action required". If no release note is required, write "NONE". -->

    ``release-note
    Fix a webhook startup deadlock where the config ConfigMaps could not be created because the webhook was waiting on those same ConfigMaps to start.
    ``

    Diff: 176 lines (+132 / -44) across 2 files Reviewer: dsimansk Review duration: 109730m
    All Vouch review confidence checks passed
    Residual risk 0.36 = Change Risk (0.66) × (1 − Review Confidence (0.45)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.66 · 176 lines diff across 2 files
    0.66
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    44%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.310
    Sensitive Paths sensitive_paths
    0.066
    Real PR Conversation Timeline
    1 comments
    "Review active on #16686"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: medium confidence: 44.7% reviewed sensitive_module
    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: 65.6% (HIGH) · Higher = larger blast radius
    65.6%
    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: 44.7% · Lower = rushed or shallow review
    44.7%
    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: 36.3% · Moderate risk
    36.3%