Repository navigation
fix(config): write every external tag to the tags field - #829
mycodeself wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
setExternalTagsWithPaved rebuilt the map that GetExternalTags returns from three hardcoded keys, so crossplane-namespace and crossplane-providerconfig-kind never reached spec.forProvider.tags, and never reached the cloud resource. Two namespaced managed resources with the same name in different namespaces got identical external tags. Copy the map as it arrives. GetExternalTags already omits crossplane-namespace for cluster-scoped resources and crossplane-providerconfig-kind for untyped provider config references, so the v1 APIs keep the tags they have today instead of gaining empty ones. Fixes crossplane#826 Signed-off-by: mycodeself <ismael.pineiro@lansweeper.com>
dc296ff to
3e756d9
Compare
Description of your changes
setExternalTagsWithPavedrebuilt the map thatxpresource.GetExternalTagsreturns from three hardcoded keys, socrossplane-namespaceandcrossplane-providerconfig-kindnever reachedspec.forProvider.tagsand never reached the cloud resource. Two namespaced managed resources with the same name in different namespaces ended up with identical external tags.Copy the map as it arrives instead of listing the keys.
GetExternalTagsalready omitscrossplane-namespacefor cluster-scoped resources andcrossplane-providerconfig-kindfor untyped provider config references, so the v1 APIs keep the tags they have today rather than gaining empty ones, and a key added tocrossplane-runtimelater needs no change here.Fixes #826
I have:
make reviewableto ensure this PR is ready for review.backport release-x.ylabels to auto-backport this PR if necessary.