install: clarify --wait flag behavior, default false

Keep the existing opt-in behavior (consistent with velero backup create and velero restore create, where waiting is disabled by default and enabled with --wait), and clarify it in the command help text. Add tests pinning the --wait default (false) and flag parsing.

Signed-off-by: Mustafa Senoglu <mmustafasenoglu0@gmail.com>
This commit is contained in:
Mustafa Senoglu
2026-09-15 11:14:29 +03:00
parent 193cfdc58f
commit c1d6ff9c1d
3 changed files with 64 additions and 0 deletions
+1
View File
@@ -372,6 +372,7 @@ All namespaced resources will be placed in the 'velero' namespace by default.
The '--namespace' flag can be used to specify a different namespace to install into.
By default, the command returns immediately after creating resources.
Use '--wait' to wait for the Velero Deployment to be ready before proceeding.
Use '-o yaml' or '-o json' with '--dry-run' to output all generated resources as text instead of sending the resources to the server.