Tolerate missing config ConfigMaps at webhook startup #16686
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
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
dsimansk
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
Store.WatchConfigsto useWatchWithDefaultwhen the watcher implementsDefaultingWatcher, registering a synthetic empty default for each ConfigMap.OnConfigChangedas soon as the ConfigMaps appear. Watchers that aren'tDefaultingWatcherfall back to the previousWatch()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.