Files
kubernetes/pkg/kubectl/cmd
k8s-merge-robot a6f6a74a9d Merge pull request #27359 from sttts/sttts-kubectl-exec-not-running
Automatic merge from submit-queue

Add not-running check to kubectl-exec

Different cases:
- pod is started, container terminated: 
```
error: error executing remote command: error executing command in container: container not found ("sleep1")
```
- pod has terminated:
```
error: cannot exec into a container in a completed pod; current phase is Succeeded
```
- container does not exist in pod spec:
```
Error from server: container foo is not valid for pod multi-container
```

Fixes https://github.com/openshift/origin/issues/8472#event-681794952
2016-06-25 21:31:03 -07:00
..
2016-05-18 21:23:17 -07:00
2016-05-12 08:21:11 +02:00
2016-05-12 08:21:11 +02:00
2016-05-17 10:24:29 -07:00
2016-05-17 10:24:29 -07:00
2016-05-16 16:50:53 -07:00
2016-05-18 21:23:17 -07:00
2016-05-18 21:23:17 -07:00
2016-05-12 08:21:11 +02:00
2016-05-12 08:21:11 +02:00
2016-03-31 10:53:32 -07:00
2016-05-18 21:23:17 -07:00
2016-05-12 08:21:11 +02:00
2016-05-12 08:21:11 +02:00
2016-05-12 08:21:11 +02:00
2016-03-31 10:53:32 -07:00
2016-05-12 08:21:11 +02:00
2016-05-12 08:21:11 +02:00
2016-05-12 08:21:11 +02:00
2016-03-31 10:53:32 -07:00
2016-05-18 15:06:23 +00:00
2016-05-18 15:06:23 +00:00