fix for issue #15214 added --all-namespaces in a command as the result of command will always be "no resources"pull/15226/head
parent
d58847f0c3
commit
1f4345b57b
|
@ -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
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue