From 1327a7aba7099c1cb765828614ce6458a05acac8 Mon Sep 17 00:00:00 2001 From: Riccardo Padovani Date: Wed, 10 Feb 2021 11:06:25 +0100 Subject: [PATCH 1/2] Update kubectl documentation with new flags Starting with kops 1.19, kops export kubecfg will also require passing either the --admin or --user flag --- docs/getting_started/kubectl.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/getting_started/kubectl.md b/docs/getting_started/kubectl.md index 59817fca67182..8c6ea4508d4ee 100644 --- a/docs/getting_started/kubectl.md +++ b/docs/getting_started/kubectl.md @@ -11,4 +11,6 @@ NAME= kops export kubecfg ${NAME} ``` -Warning: Note that the exported configuration gives you full admin privileges using TLS certificates that are not easy to rotate. For regular kubectl usage, you should consider using another method for authenticating to the cluster. \ No newline at end of file +Warning: Note that the exported configuration gives you full admin privileges using TLS certificates that are not easy to rotate. For regular kubectl usage, you should consider using another method for authenticating to the cluster. + +If you are using kops >= 1.19.0, kops export kubecfg will also require passing either the --admin or --user flag if the context does not already exist. For more information, see the section "Changes to kubernetes config export" in the [release notes].(https://github.com/kubernetes/kops/releases/tag/v1.19.0) From 9d6edc8e46176d134f67d7dc904e5a06e609256a Mon Sep 17 00:00:00 2001 From: Ciprian Hacman Date: Thu, 11 Feb 2021 09:31:19 +0200 Subject: [PATCH 2/2] Apply suggestions from code review --- docs/getting_started/kubectl.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getting_started/kubectl.md b/docs/getting_started/kubectl.md index 8c6ea4508d4ee..005230812e952 100644 --- a/docs/getting_started/kubectl.md +++ b/docs/getting_started/kubectl.md @@ -13,4 +13,4 @@ kops export kubecfg ${NAME} Warning: Note that the exported configuration gives you full admin privileges using TLS certificates that are not easy to rotate. For regular kubectl usage, you should consider using another method for authenticating to the cluster. -If you are using kops >= 1.19.0, kops export kubecfg will also require passing either the --admin or --user flag if the context does not already exist. For more information, see the section "Changes to kubernetes config export" in the [release notes].(https://github.com/kubernetes/kops/releases/tag/v1.19.0) +If you are using kops >= 1.19.0, kops export kubecfg will also require passing either the --admin or --user flag if the context does not already exist. For more information, see the [release notes](https://kops.sigs.k8s.io/releases/1.19-notes/#changes-to-kubernetes-config-export).