Skip to content

Klient.Resources.List function documentation incorrectly states namespace as supported argument #503

@kraashen

Description

@kraashen

What happened?

In the klient documentation, the List() function call signature is specified as

func (_ Resource) List(ctx context.Context, namespace string, l ObjectList, opts ...ListOption) error

along with the provided examples following this implementation. But in the code, it is used otherwise:

func (r *Resources) List(ctx context.Context, objs k8s.ObjectList, opts ...ListOption) error {
...

Going through the examples' code, it seems that the List() function is used in the latter manner.

What did you expect to happen?

Documentation matches the implementation.

How can we reproduce it (as minimally and precisely as possible)?

N/A

Anything elese we need to know?

No response

E2E Provider Used

kind

e2e-framework Version

0.6.0

OS version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions