mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-06-26 16:24:54 +00:00
Update provider.go
This commit is contained in:
parent
6714606901
commit
44b8e3634e
@ -86,10 +86,7 @@ func (provider *Provider) CreatePod(ctx context.Context, podName string, podImag
|
||||
}
|
||||
|
||||
func (provider *Provider) RemovePod(ctx context.Context, podName string) {
|
||||
err := provider.clientSet.CoreV1().Pods(provider.Namespace).Delete(ctx, podName, metav1.DeleteOptions{})
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
provider.clientSet.CoreV1().Pods(provider.Namespace).Delete(ctx, podName, metav1.DeleteOptions{})
|
||||
}
|
||||
|
||||
func getClientSet(config *restclient.Config) *kubernetes.Clientset {
|
||||
|
Loading…
Reference in New Issue
Block a user