Skip to content

Commit 8de0f08

Browse files
committed
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 <[email protected]>
1 parent 164bf42 commit 8de0f08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/e2e/backup_restore_cli_suite_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ var _ = ginkgo.Describe("Backup and restore tests via OADP CLI", ginkgo.Label("c
198198
ginkgo.BeforeAll(func() {
199199
// Verify OADP CLI is available (should be installed in Docker image)
200200
log.Print("Verifying OADP CLI is available...")
201-
cmd := exec.Command("kubectl", "oadp", "version")
201+
cmd := exec.Command("kubectl", "oadp", "version", "--client-only")
202202
output, err := cmd.CombinedOutput()
203203
if err != nil {
204204
ginkgo.Fail(fmt.Sprintf("OADP CLI not available: %v, output: %s", err, string(output)))

0 commit comments

Comments
 (0)