← Back to Pull requests

webhook: allow annotations and labels on the MutatingWebhookConfiguration #3320

Closed
unknown closed this pull request without merging on Sep 22, 2026 09:43 UTC
View on GitHub
unknown unknown commented on Sep 20, 2026 18:21 UTC
Author

Carries #3142 (@jack1902) forward before the stale bot closes it. Adds webhook.annotations / webhook.labels to the peerpods-webhook chart, rendered on the MutatingWebhookConfiguration. 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 with failurePolicy: Fail an 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"), and helm upgrade --force-conflicts resolves it with the enforcer in place.

Testing. make manifests regenerates chart/templates/webhook-config.yaml identically. helm lint chart clean. helm template with defaults → only the cert-manager annotation; with certManager.enabled=false, webhook.annotations."admissions.enforcer/disabled"=true and webhook.labels.team=x → both rendered; with neither → no annotations: key. Not run against a live AKS cluster; the --force-conflicts behaviour is from the Helm 4 docs.

Diff: 190 lines (+142 / -48) across 2 files Reviewer: david-long1 Review duration: 2361m
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
0.59
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%
57%
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.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
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 58.0% 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: 59.1% (MEDIUM) · Higher = larger blast radius
59.1%
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: 58.0% · Lower = rushed or shallow review
58.0%
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: 24.8% · Safe to merge
24.8%