Skip to content

Question: FieldSelector != is not supported by FakeClient #3242

@marvinbstackit

Description

@marvinbstackit

I am currently writing unit tests in my go application and I list events. These events can be filtered with field selectors to exclude some events. In the code everything is fine, but in the fake client the field slector will be evaluated to only support '=' and '=='. Why is this so and what does it need to support also '!='?

This is the code piece, but in the actual client is never called because the parameter is used in the api call here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions