Skip to content

Ensure namespace list option is propagated to the descriptors client lister #4119

@danail-branekov

Description

@danail-branekov

Steps to reproduce:

  • Change this test to
		It("returns a not found error", func() {
			Expect(err).To(BeAssignableToTypeOf(apierrors.NotFoundError{}))
		})
  • Run the test, see it fails

Dev notes

The reposotiry performs a get via list. List should return an empty result in case the user is not authorised in the corresponding namespace.

When the repostiory lists the builds, it specifies the InNamespace option, however, that namespace option is not propagated when performing the list with the rest client

What we need to do is to make sure that this option is used when performing the rest client list.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

🧊 Icebox

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions