From b692fddd3251c1bffe564b3da401cef46f76e903 Mon Sep 17 00:00:00 2001 From: Ismail Alidzhikov Date: Tue, 2 Jul 2019 18:09:09 +0300 Subject: [PATCH] kubectl config set-context --current (#15194) Signed-off-by: ialidzhikov --- content/en/docs/concepts/policy/limit-range.md | 2 +- .../docs/concepts/overview/working-with-objects/namespaces.md | 2 +- .../docs/concepts/overview/working-with-objects/namespaces.md | 2 +- .../docs/concepts/overview/working-with-objects/namespaces.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/content/en/docs/concepts/policy/limit-range.md b/content/en/docs/concepts/policy/limit-range.md index 1ab6073fe3..455f51b1aa 100644 --- a/content/en/docs/concepts/policy/limit-range.md +++ b/content/en/docs/concepts/policy/limit-range.md @@ -69,7 +69,7 @@ kubectl create namespace limitrange-demo To avoid passing the target limitrange-demo in your kubectl commands, change your context with the following command ```shell -kubectl config set-context $(kubectl config current-context) --namespace=limitrange-demo +kubectl config set-context --current --namespace=limitrange-demo ``` Here is the configuration file for a LimitRange object: diff --git a/content/es/docs/concepts/overview/working-with-objects/namespaces.md b/content/es/docs/concepts/overview/working-with-objects/namespaces.md index e4ad987e0f..2b1c179828 100644 --- a/content/es/docs/concepts/overview/working-with-objects/namespaces.md +++ b/content/es/docs/concepts/overview/working-with-objects/namespaces.md @@ -79,7 +79,7 @@ Puedes indicar de forma permanente el espacio de nombres para todas las llamadas en dicho contexto. ```shell -kubectl config set-context $(kubectl config current-context) --namespace= +kubectl config set-context --current --namespace= # Validate it kubectl config view | grep namespace: ``` diff --git a/content/id/docs/concepts/overview/working-with-objects/namespaces.md b/content/id/docs/concepts/overview/working-with-objects/namespaces.md index 7931e097a5..91637e6719 100644 --- a/content/id/docs/concepts/overview/working-with-objects/namespaces.md +++ b/content/id/docs/concepts/overview/working-with-objects/namespaces.md @@ -67,7 +67,7 @@ kubectl --namespace= get pods Kamu dapat menyimpan konfigurasi *namespace* untuk semua perintah `kubectl` dengan perintah: ```shell -kubectl config set-context $(kubectl config current-context) --namespace= +kubectl config set-context --current --namespace= # Cek namespace kubectl config view | grep namespace: ``` diff --git a/content/ko/docs/concepts/overview/working-with-objects/namespaces.md b/content/ko/docs/concepts/overview/working-with-objects/namespaces.md index ae052bb8fc..119cf34fe6 100644 --- a/content/ko/docs/concepts/overview/working-with-objects/namespaces.md +++ b/content/ko/docs/concepts/overview/working-with-objects/namespaces.md @@ -76,7 +76,7 @@ kubectl --namespace= get pods 영구적으로 저장할 수 있다. ```shell -kubectl config set-context $(kubectl config current-context) --namespace= +kubectl config set-context --current --namespace= # 확인하기 kubectl config view | grep namespace: ```