Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/e2e/backup_restore_cli_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's how currently oadp client is implemented but IMO the flag should be --client to match what is in the kubectl:

https://kubernetes.io/docs/reference/kubectl/#operations

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's more a parallel to how velero CLI is doing, not exactly kubectl

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think keep it same as velero CLI, and propose velero CLI upstream match kubectl in the future.

output, err := cmd.CombinedOutput()
if err != nil {
ginkgo.Fail(fmt.Sprintf("OADP CLI not available: %v, output: %s", err, string(output)))
Expand Down