Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix PyTorchJob create pod failure due to pod webhook #1864

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
}
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

Check warning on line 40 in pkg/webhook/pod/mutating/pod_unavailable_budget.go

View check run for this annotation

Codecov / codecov/patch

pkg/webhook/pod/mutating/pod_unavailable_budget.go#L39-L40

Added lines #L39 - L40 were not covered by tests
} else if pub == nil {
return true, nil
}
Expand Down
Loading