--wait
flag on package install doesn't do anything when the wait timeout expires before the package is healthy
#5149
Labels
bug
Something isn't working
What happened?
https://docs.crossplane.io/v1.14/cli/command-reference/#wait-for-package-install says that
--wait
will error out if the timeout is hit before the package becomes healthy. This is not true. It just stops waiting and reports success, whether the package is healthy or not.How can we reproduce it?
Install a configuration package with a large number of dependencies. The package won't report healthy until all of the dependencies are installed, but the install command will exit anyway.
crossplane xpkg install configuration ghcr.io/back-stack/showcase-configuration:latest --wait=30s && kubectl get configuration NAME INSTALLED HEALTHY PACKAGE AGE back-stack-showcase-configuration True Unknown ghcr.io/back-stack/showcase-configuration:latest 30s
I would expect the command to error out, as described in the docs.
What environment did it happen in?
Crossplane version:
1.14.4-up.1
kind v0.20.0 go1.20.5 darwin/arm64
Client Version: v1.28.4
Server Version: v1.27.3
The text was updated successfully, but these errors were encountered: