Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

round-trip the fieldPath value in FromFieldPath patches through integer-preserving JSON unmarhsal #105

Merged
merged 1 commit into from
Apr 19, 2024

Conversation

ravilr
Copy link
Contributor

@ravilr ravilr commented Apr 6, 2024

this fixes the remaining issue reported in #101 w.r.t appendSlice patch policy in function-p-and-t having different behavior than the native P&T.

As explained in #101 (comment), the from source field value is being round-trip'ed through Kubernetes JSON decoder, so that the json integers are unmarshaled as int64 consistent with to/dest value handling here.

@ravilr
Copy link
Contributor Author

ravilr commented Apr 6, 2024

@phisco @negz PTAL.

Copy link

@jtyr jtyr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, let's merge it!

Copy link
Member

@negz negz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent, thank you!

@negz negz merged commit 876c9d9 into crossplane-contrib:main Apr 19, 2024
6 checks passed
@ravilr ravilr deleted the json_unmarshall branch April 20, 2024 16:07
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.

Merge patch behavior not compatible with Native P&T
3 participants