kuttl
kuttl copied to clipboard
Unexpected test failures on StatefulSet assertions
What happened:
When polling a statefulset to determine readiness status, kuttl appears to error out due to this issue.
Essentially, it is possible for an STS to be created without a .status.readyReplicas
key. When this key is defined in an assertion, its absence triggers the error.
What you expected to happen:
I would expect polling to continue until the key was available in the map. But instead it appears to exit immediately.
How to reproduce it (as minimally and precisely as possible):
The test in this folder demonstrates the problem.
Anything else we need to know?:
Environment:
- Kubernetes version (use
kubectl version
): 1.22 - KUTTL version (use
kubectl kuttl version
): 0.11.1 - Cloud provider or hardware configuration: Github Actions
- OS (e.g. from /etc/os-release): Linux