You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems to be more of an issue with the SetValue in fieldpath Pave objects.
I understand that you can use SetAnnotations or SetLabels but this requires either merging the existing annotations together, which would often take longer than setting the fields individually, or requires knowing the full annotations or labels at the start. either way it would be nice to use SetValue this way as well. If it is not intended to be used this way, perhaps a comment suggesting alternatives would be good
negz
changed the title
composed.SetValue() sets values incorrectly for labes or metrics containing . character
Document fieldpath semantics
Oct 13, 2023
What happened?
Setting an annotation or label via
SetValue
using a label or annotation key with a "." is set incorrectly ie:prometheus.io.metrics
It will be set as
It should result in
This seems to be more of an issue with the
SetValue
infieldpath
Pave objects.I understand that you can use
SetAnnotations
orSetLabels
but this requires either merging the existing annotations together, which would often take longer than setting the fields individually, or requires knowing the full annotations or labels at the start. either way it would be nice to use SetValue this way as well. If it is not intended to be used this way, perhaps a comment suggesting alternatives would be goodHow can we reproduce it?
using this
composed_test
fileyou will see the following output
What environment did it happen in?
Crossplane version: Latest version
The text was updated successfully, but these errors were encountered: