Skip to content

feat: enable namespaced references in generated resolvers#110

Merged
negz merged 1 commit intocrossplane:crossplane-v2from
jbw976:namespace-refs
Jun 7, 2025
Merged

feat: enable namespaced references in generated resolvers#110
negz merged 1 commit intocrossplane:crossplane-v2from
jbw976:namespace-refs

Conversation

@jbw976
Copy link
Copy Markdown
Member

@jbw976 jbw976 commented Jun 6, 2025

Description of your changes

This PR updates the resolver generator to factor in the namespace of the given instance for which references are being resolved. When a reference is going to be resolved during the reconciliation of a managed resource, the namespace of the instance will now be passed into crossplane-runtime's Resolve() method, as part of the ResolutionRequest struct.

Part of crossplane/crossplane#6381

Note the base branch for this PR is a new crossplane-v2 branch, not main - we can let this change bake in that v2 branch for a bit until it's time to ship v2.

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

These changes have been tested as demonstrated in this demo repo: https://github.com/jbw976/demo-upjet-namespaced-refs

Signed-off-by: Jared Watts <jbw976@gmail.com>
@negz negz merged commit 9102d33 into crossplane:crossplane-v2 Jun 7, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants