From d0ce1deb47dfadd8cdc25764db134be751e8b7b7 Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Wed, 18 May 2022 13:44:07 -0400 Subject: [PATCH] Fix Kubectl.checkBinary() to be compatible with kubectl@1.24 - This is a backwards compatible change with versions of kubectl going back to at least 1.16 Signed-off-by: Sebastian Malton --- src/main/kubectl/kubectl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kubectl/kubectl.ts b/src/main/kubectl/kubectl.ts index 690b9970b9..d947b5a4ae 100644 --- a/src/main/kubectl/kubectl.ts +++ b/src/main/kubectl/kubectl.ts @@ -155,7 +155,7 @@ export class Kubectl { try { const args = [ "version", - "--client", "true", + "--client", "--output", "json", ]; const { stdout } = await promiseExecFile(path, args);