From a23fcb57278977a553ca9f0692bca403e244e44c Mon Sep 17 00:00:00 2001 From: Jesse Glick Date: Tue, 25 Jun 2019 11:44:38 -0400 Subject: [PATCH] kubectl config set-context --current (#15039) --- .../docs/concepts/overview/working-with-objects/namespaces.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/docs/concepts/overview/working-with-objects/namespaces.md b/content/en/docs/concepts/overview/working-with-objects/namespaces.md index 539ad212ca..4a3e2761f7 100644 --- a/content/en/docs/concepts/overview/working-with-objects/namespaces.md +++ b/content/en/docs/concepts/overview/working-with-objects/namespaces.md @@ -80,7 +80,7 @@ You can permanently save the namespace for all subsequent kubectl commands in th context. ```shell -kubectl config set-context $(kubectl config current-context) --namespace= +kubectl config set-context --current --namespace= # Validate it kubectl config view | grep namespace: ```