Skip to content

Conversation

@negz
Copy link
Member

@negz negz commented Mar 13, 2025

Description of your changes

This PR allows a function to optionally set a namespace for its resource requirements.

This means a function can request a specific namespaced extra resource by specifying its apiVersion, kind, namespace, and name in its resource requirements.

A function can also request all resources in a namespace that match a label selector by specifying apiVersion, kind, namespace, and label selectors.

Finally a function can request all namespaced resources across all namespaces by specifying apiVersion, kind, and label selectors (without a namespace).

Nothing changes for requesting cluster scoped resources. Just omit the namespace.

I have:

Need help with this checklist? See the cheat sheet.

@negz negz requested a review from jbw976 March 13, 2025 23:19
@negz negz requested a review from a team as a code owner March 13, 2025 23:19
@negz negz requested review from bobh66 and removed request for a team March 13, 2025 23:19
@negz
Copy link
Member Author

negz commented Mar 13, 2025

I noticed we don't have E2E tests for extra resources. Adding one seems outside the scope of v2 work. Raised #6333 to track.

@negz negz changed the title Support namespaced extra resources [v2] Support namespaced extra resources Mar 13, 2025
This commit allows a function to optionally set a namespace for its
resource requirements.

This means a function can request a specific namespaced extra resource
by specifying its apiVersion, kind, namespace, and name in its resource
requirements.

A function can also request all resources in a namespace that match a
label selector by specifying apiVersion, kind, namespace, and label
selectors.

Finally a function can request all namespaced resources across all
namespaces by specifying apiVersion, kind, and label selectors (without
a namespace).

Nothing changes for requesting cluster scoped resources. Just omit the
namespace.

Signed-off-by: Nic Cope <[email protected]>
@negz negz merged commit af4dc17 into crossplane:v2 Mar 17, 2025
17 checks passed
@negz negz deleted the v2-extra branch March 17, 2025 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants