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 <liheng.zms@alibaba-inc.com>
  • Loading branch information
zmberg authored and furykerry committed Dec 18, 2024
1 parent b800c5d commit a74b22e
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 @@ -36,7 +36,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 a74b22e

Please sign in to comment.