From 38a44e4c2044470dd2e54d9cd62204902ef44d6f Mon Sep 17 00:00:00 2001 From: Ritika Patil Date: Fri, 8 Nov 2024 15:02:32 -0600 Subject: [PATCH] feat: (PSKD-815) Update container-structure-test to verify kubectl version --- container-structure-test.yaml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/container-structure-test.yaml b/container-structure-test.yaml index eb11800a..2e704817 100644 --- a/container-structure-test.yaml +++ b/container-structure-test.yaml @@ -34,12 +34,9 @@ commandTests: az version -o tsv expectedOutput: ["2.64.0\t2.64.0\t1.1.0"] - name: "kubectl version" - command: "bash" - args: - - -c - - | - kubectl version --client - expectedOutput: ["Client Version:\tv1.30.6\nKustomize Version:\tv5.0.4*"] + command: "kubectl" + args: ["version", "--client"] + expectedOutput: ["Client Version: v1.30.6"] metadataTest: workdir: "/viya4-iac-azure"