mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-06-22 14:32:35 +00:00
added interface conversion check (#318)
This commit is contained in:
parent
9c98a4c2b1
commit
111d000c12
@ -33,7 +33,10 @@ func FilteredWatch(ctx context.Context, kubernetesProvider *Provider, targetName
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
pod := e.Object.(*corev1.Pod)
|
pod, ok := e.Object.(*corev1.Pod)
|
||||||
|
if !ok {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
if !podFilter.MatchString(pod.Name) {
|
if !podFilter.MatchString(pod.Name) {
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user