mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 15:29:42 +02:00
remove kubeshell pod constraint (#8185)
This commit is contained in:
parent
701410d259
commit
9732d1b5d8
1 changed files with 0 additions and 5 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue