fix(pipeline): allow kube-apiserver to reach the PipelineVersion admission webhook #3581
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.60) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.60 · 214 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.321
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.060
Real PR Conversation Timeline
1 comments
"Review active on #3581"
general
weight: 0.35
juliusvonkohout
Fixes #3580
Problem
The
ml-pipelineNetworkPolicy only allows ingress fromkubeflow-profilenamespaces andistio-system. This predates the K8s-native pipelines feature, whereml-pipelineitself serves thepipelineversions.pipelines.kubeflow.orgmutating/validating admission webhooks on port 8443. Admission webhook calls come directly fromkube-apiserver, which is not a pod and cannot be matched viapodSelector/namespaceSelector, so those calls are silently dropped and time out — everyPipelineVersioncreate/update fails while the parentPipelineobject (no webhook) succeeds:Fix
Add a port-only ingress rule for 8443 to
common/kubeflow-namespace/base/kubeflow/ml-pipeline.yaml, matching the existing pattern already used bykatib-controller,spark-operator-webhook,jobset-webhookandtrainer-webhook— all of them scope their webhook port with aports-only rule (nofrom), since the webhook's own TLS/CA is the actual trust boundary, not network segmentation.Verification
Reproduced and bisected against a live cluster (see linked issue for full detail): confirmed
kube-apiserver's network path to theml-pipelinepod's webhook port hangs until timeout while identical traffic to pods without aNetworkPolicysucceeds instantly; after applying the equivalent live patch, the same request succeeds immediately andkubectl applyof aPipelineVersionsucceeds.