...
We use the next values for the kud-installer.yaml
to to properly run tests with Containerd and Kata Containers.
Code Block | ||
---|---|---|
| ||
CONTAINER_RUNTIME: “containerd” KUD_ENABLE_TESTS: "true" ENABLE_KATA_WEBHOOK: "false" KATA_WEBHOOK_RUNTIMECLASS: "kata-clh" |
If ENABLEIf ENABLE_KATA_WEBHOOK
is is set to true, then every pod that could run as a Kata container (e.g. infrastructure pods) will mutate to run as a Kata container. This could lead to some pods to be stuck in pending. If KUD_ENABLE_TESTS
is is set to true, then the webhook will be started before the verification tests are run to force Kata eligible pods to run as a Kata container. The webhook will be uninstalled after the tests run if ENABLE_KATA_WEBHOOK
is is set to false.
Notes:
We recommend to only enable the webhook provided by the Kata project for testing purposes as it may not meet production needs.
...
`bashate` test is used to check the shell scripts coding style. i.e. Trailing Whitespace. We find all files with suffix '`.sh' sh` and run `bashate` against the files. './cmd/bpa-operator/vendor/' directory is All vendor directories are excluded.
Golang testing:
BPA Operator:
...