kubewarden / kubewarden-end-to-end-tests

Files used to run Kubewarden end-to-end tests
https://kubewarden.io
Apache License 2.0
2 stars 6 forks source link

Use context in retry commands #81

Closed kravciak closed 1 year ago

kravciak commented 1 year ago

We use single machine with 4 runners. Each runner can create k3d cluster. If we run multiple tests at the same time then default context can switch during test run.

retry function parameter is executed in bash -c, so it won't use test context by default. This PR fixes it. It replaces space after kubectl or helm command with space + context:

kubectl [space] ... -> kubectl --context $CONTEXT [space] ....