mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-09-26 04:54:36 +00:00
added interface conversion check (#318)
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user