Skip to content

Commit

Permalink
fix PyTorchJob create pod failure due to pod webhook
Browse files Browse the repository at this point in the history
Signed-off-by: liheng.zms <[email protected]>
  • Loading branch information
zmberg committed Dec 18, 2024
1 parent 535ba1b commit 0062033
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/webhook/pod/mutating/pod_unavailable_budget.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ func (h *PodCreateHandler) pubMutatingPod(ctx context.Context, req admission.Req
}
pub, err := podunavailablebudget.GetPubForPod(h.Client, pod)
if err != nil {
return false, err
klog.ErrorS(err, "Failed to get pub for pod", "pod", klog.KObj(pod))
return false, nil
} else if pub == nil {
return true, nil
}
Expand Down

0 comments on commit 0062033

Please sign in to comment.