mirror of https://github.com/portainer/portainer
remove kubeshell pod constraint (#8185)
parent
701410d259
commit
9732d1b5d8
|
@ -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")
|
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{
|
podData := &portainer.KubernetesShellPod{
|
||||||
Namespace: shellPod.Namespace,
|
Namespace: shellPod.Namespace,
|
||||||
PodName: shellPod.Name,
|
PodName: shellPod.Name,
|
||||||
|
|
Loading…
Reference in New Issue