Describe the bug
To get list of pods by labels in a namespace Get Pod Name Names By Selector keyword is used, which returns None in case if in a namespace there's a pod without labels - some debug pod in my case even if there're pods matching the provided selector in that namespace.
To Reproduce
Steps to reproduce the behavior:
create some temporary debug pod in the target namespace
run integration tests
run test case which uses Get Pod Names By Selector, provide selector for pod that exists in the namespace
Accepted result:
AttributeError: 'NoneType' object has no attribute 'items'
Expected behavior
Get pods list matching the selector
Screenshots
Environment:
- Application Version:
- K8S Version:
Additional context