From 8c6cf84801b7cdbe5bb8d874305461d7cb68644b Mon Sep 17 00:00:00 2001 From: Simon Westcott Date: Fri, 12 May 2017 09:05:02 +0100 Subject: [PATCH] Unified context discovery --- kubectx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kubectx b/kubectx index 403f61d..8cd4342 100755 --- a/kubectx +++ b/kubectx @@ -40,8 +40,7 @@ current_context() { } get_contexts() { - kubectl config view \ - -o=jsonpath='{range .contexts[*].name}{@}{"\n"}{end}' + kubectl config get-contexts --output=name } list_contexts() {