crossplane.io/external-name
takes precedence over krm.kcl.dev/composition-resource-name
in composition resource names
#217
Labels
bug
Something isn't working
What happened?
I have a Composition where a MR is created with Observe managementPolicies and I set
crossplane.io/external-name
annotation to the name of the observed resource:The
_metadata
lambda sets bothmetadata.name
andkrm.kcl.dev/composition-resource-name
using different values:When I read the
option("params").ocds
map this MR is stored with a key equal tometadata.name
value, even though I would have expected it to use thekrm.kcl.dev/composition-resource-name
instead.It looks like the
metadata.name
is taking precedence overkrm.kcl.dev/composition-resource-name
, maybe it's related to the changes introduced with #81 and in particular https://github.com/ytsarev/function-kcl/blob/9d72b1c4fab4e1a5ec12f7425fa3464549024ed7/pkg/resource/res.go#L476-L481?How can we reproduce it?
What environment did it happen in?
Function version: 0.10.10
Kubernetes version 1.32
Kubernetes distro: kind
OS: Ubuntu 24.04.1 LTS
The text was updated successfully, but these errors were encountered: