Skip to content

[BUG] PlatformLibrary returns None result for Get Pod Names By Selector when there's pod without labels in a namespace #112

@Beauline

Description

@Beauline

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions