fix for issue #15214 (#15215)

fix for issue #15214  added --all-namespaces in a command as the result of command will always be "no resources"
pull/15226/head
shub-asa1 2019-07-01 15:43:18 +05:30 committed by Kubernetes Prow Robot
parent d58847f0c3
commit 1f4345b57b
1 changed files with 1 additions and 1 deletions

View File

@ -56,5 +56,5 @@ kubectl get pods --field-selector=status.phase!=Running,spec.restartPolicy=Alway
You use field selectors across multiple resource types. This `kubectl` command selects all Statefulsets and Services that are not in the `default` namespace: You use field selectors across multiple resource types. This `kubectl` command selects all Statefulsets and Services that are not in the `default` namespace:
```shell ```shell
kubectl get statefulsets,services --field-selector metadata.namespace!=default kubectl get statefulsets,services --all-namespaces --field-selector metadata.namespace!=default
``` ```