From 9732d1b5d8cc2b99e6c0422b9786cd0fa3af7812 Mon Sep 17 00:00:00 2001 From: Matt Hook Date: Tue, 20 Dec 2022 10:32:49 +1300 Subject: [PATCH] remove kubeshell pod constraint (#8185) --- api/kubernetes/cli/pod.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/api/kubernetes/cli/pod.go b/api/kubernetes/cli/pod.go index 50c921bc2..aa8dcf600 100644 --- a/api/kubernetes/cli/pod.go +++ b/api/kubernetes/cli/pod.go @@ -63,11 +63,6 @@ func (kcl *KubeClient) CreateUserShellPod(ctx context.Context, serviceAccountNam return nil, errors.Wrap(err, "aborting pod creation; error waiting for shell pod ready status") } - if len(shellPod.Spec.Containers) != 1 { - kcl.cli.CoreV1().Pods(portainerNamespace).Delete(context.TODO(), shellPod.Name, metav1.DeleteOptions{}) - return nil, fmt.Errorf("incorrect shell pod state, expecting single container to be present") - } - podData := &portainer.KubernetesShellPod{ Namespace: shellPod.Namespace, PodName: shellPod.Name,