diff --git a/pkg/kubernetes/kubernetes.go b/pkg/kubernetes/kubernetes.go index a2efe3bec7..306719e001 100644 --- a/pkg/kubernetes/kubernetes.go +++ b/pkg/kubernetes/kubernetes.go @@ -275,6 +275,9 @@ func (h *Client) waitForPodDeleted(ctx context.Context, p *corev1.Pod) error { switch { case apierrors.IsNotFound(err): return nil + case apierrors.IsForbidden(err): + // in Kubernetes 1.32+, NodeRestriction plugin won't let us list a pod which is not on our node, including deleted ones + return nil case err != nil: if IsRetryableError(err) { return retry.ExpectedError(err)