diff --git a/pkg/webhook/pod/mutating/pod_unavailable_budget.go b/pkg/webhook/pod/mutating/pod_unavailable_budget.go index 10bd0b796e..d47211ba6b 100644 --- a/pkg/webhook/pod/mutating/pod_unavailable_budget.go +++ b/pkg/webhook/pod/mutating/pod_unavailable_budget.go @@ -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 }