Skip to content

Call to get namespaced resources is calling the API to retrieve them all? #3122

Open
@ggallen

Description

@ggallen

I seem to see this this call:

	cm := &corev1.ConfigMap{}
	err := r.Get(ctx, types.NamespacedName{Name: "sink-filters", Namespace: "kubearchive"}, cm)

Translating into this request under the covers:

https://10.96.0.1:443/api/v1/configmaps?limit=500&resourceVersion=0

Even though I have specified a name and a namespace, it seems to be trying to get all (up to 500) ConfigMaps. Is this expected behavior or is my call somehow wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    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