Add crossplane-namespace tag to managed resources#876
Conversation
Since Crossplane v2 supports namespaced resources, it is quite fitting to also mention the namespace of a resource in its tags. Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
📝 WalkthroughWalkthroughAdds a new exported tag key for namespace and updates GetExternalTags to include the object’s namespace when present. Introduces a corresponding test case verifying the namespace tag is populated for namespaced objects. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Thanks for the update. One quick clarification: should cluster-scoped objects explicitly omit the namespace tag, or include it with an empty value for consistency? Pre-merge checks✅ Passed checks (3 passed)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used📓 Path-based instructions (2)**/*.go⚙️ CodeRabbit configuration file
Files:
**/*_test.go⚙️ CodeRabbit configuration file
Files:
🧬 Code graph analysis (1)pkg/resource/resource_test.go (3)
🔇 Additional comments (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description of your changes
Since Crossplane v2 supports namespaced resources, it is quite fitting to also
mention the namespace of a resource in its tags.
I have:
earthly +reviewableto ensure this PR is ready for review.backport release-x.ylabels to auto-backport this PR.Need help with this checklist? See the cheat sheet.