diff --git a/cli/kubernetes/watch.go b/cli/kubernetes/watch.go index 7916feef6..b2df708db 100644 --- a/cli/kubernetes/watch.go +++ b/cli/kubernetes/watch.go @@ -33,7 +33,10 @@ func FilteredWatch(ctx context.Context, kubernetesProvider *Provider, targetName return } - pod := e.Object.(*corev1.Pod) + pod, ok := e.Object.(*corev1.Pod) + if !ok { + continue + } if !podFilter.MatchString(pod.Name) { continue