webhook: allow annotations and labels on the MutatingWebhookConfiguration #3320
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.59) × (1 − Review Confidence (0.58)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.59 · 190 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.314
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.059
Real PR Conversation Timeline
1 comments
"Review active on #3320"
general
weight: 0.35
david-long1
Carries #3142 (@jack1902) forward before the stale bot closes it. Adds
webhook.annotations/webhook.labelsto the peerpods-webhook chart, rendered on theMutatingWebhookConfiguration. Fixes #3141.Changed vs #3142. Kept the chart hook and jack1902's authorship. Dropped the Azure provider default that set
admissions.enforcer/disabled: "true"for every AKS install, plus the generator change behind it: per the AKS FAQ the enforcer "automatically excludes kube-system and AKS internal namespaces" and the opt-out is for "a critical use case for deploying something on kube-system (not recommended)". This webhook already excludes kube-system, and withfailurePolicy: Failan opted-out webhook outage would block pod creation in AKS internal namespaces — @mkulke's concern on #3142. Added a README section instead: the failure in #3141 is a server-side-apply field-ownership conflict (conflict with "admissionsenforcer"), andhelm upgrade --force-conflictsresolves it with the enforcer in place.Testing.
make manifestsregenerateschart/templates/webhook-config.yamlidentically.helm lint chartclean.helm templatewith defaults → only the cert-manager annotation; withcertManager.enabled=false,webhook.annotations."admissions.enforcer/disabled"=trueandwebhook.labels.team=x→ both rendered; with neither → noannotations:key. Not run against a live AKS cluster; the--force-conflictsbehaviour is from the Helm 4 docs.