From 8de0f08c58ae00be2635be5e1c25cd01da8ecc91 Mon Sep 17 00:00:00 2001 From: Michal Pryc Date: Thu, 14 Aug 2025 11:55:23 +0200 Subject: [PATCH] OADP CLI check - do not attempt to connect to server Use `--client-only` with `kubectl oadp version` in the CLI availability check to ensure it only reports the client version without attempting to connect to the cluster. Signed-off-by: Michal Pryc --- tests/e2e/backup_restore_cli_suite_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e/backup_restore_cli_suite_test.go b/tests/e2e/backup_restore_cli_suite_test.go index b3bfb01f64..3a64a69cc9 100644 --- a/tests/e2e/backup_restore_cli_suite_test.go +++ b/tests/e2e/backup_restore_cli_suite_test.go @@ -198,7 +198,7 @@ var _ = ginkgo.Describe("Backup and restore tests via OADP CLI", ginkgo.Label("c ginkgo.BeforeAll(func() { // Verify OADP CLI is available (should be installed in Docker image) log.Print("Verifying OADP CLI is available...") - cmd := exec.Command("kubectl", "oadp", "version") + cmd := exec.Command("kubectl", "oadp", "version", "--client-only") output, err := cmd.CombinedOutput() if err != nil { ginkgo.Fail(fmt.Sprintf("OADP CLI not available: %v, output: %s", err, string(output)))