Commit d742a10
committed
BATS: helm-install-rancher: wait for Available instead of helm --wait
The rancher Deployment uses the default `progressDeadlineSeconds` (10m),
which is shorter than the initial `rancher/rancher` image pull (~487 MB)
on slow networks (notably WSL2 on Windows). When that deadline lapses,
Kubernetes marks the Deployment Failed with `ProgressDeadlineExceeded`;
`helm --wait` reads that condition and bails out before its own
`--timeout` would have allowed the pull to complete.
Drop `helm --wait` and wait on `Available` directly with
`kubectl wait --for=condition=Available --timeout=30m`. `Available` is
driven by Ready replica count and is unaffected by
`ProgressDeadlineExceeded`, so once the pull eventually completes and
the pod goes Ready the wait succeeds.
Also `--set replicas=1` since this is a single-node cluster — running
three Rancher replicas adds no test coverage and consumes scarce VM
memory.
Signed-off-by: Jan Dubois <jan.dubois@suse.com>1 parent 4e994f1 commit d742a10
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
116 | | - | |
| 115 | + | |
117 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
118 | 126 | | |
119 | 127 | | |
120 | 128 | | |
| |||
0 commit comments