From 1f4345b57b6fd1eebc6238b7d5d24086d24c5bc7 Mon Sep 17 00:00:00 2001 From: shub-asa1 <48909477+shub-asa1@users.noreply.github.com> Date: Mon, 1 Jul 2019 15:43:18 +0530 Subject: [PATCH] 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" --- .../concepts/overview/working-with-objects/field-selectors.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/docs/concepts/overview/working-with-objects/field-selectors.md b/content/en/docs/concepts/overview/working-with-objects/field-selectors.md index d4e02418e5..1b0b4791f5 100644 --- a/content/en/docs/concepts/overview/working-with-objects/field-selectors.md +++ b/content/en/docs/concepts/overview/working-with-objects/field-selectors.md @@ -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: ```shell -kubectl get statefulsets,services --field-selector metadata.namespace!=default +kubectl get statefulsets,services --all-namespaces --field-selector metadata.namespace!=default ```