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() {