Skip to content

ACK runtime pkg/compare/Delta.DifferentAt is not working with fields JSON-Paths  #808

@a-hilaly

Description

@a-hilaly

Describe the bug
delta.DifferentAt doesn't work as expected when getting fields JSON-Path as input - see differentAt unit tests

delta.Add("Spec.X.Y.Z", a, b)
delta.DifferentAt("Spec.X.Y") // returns false
delta.DifferentAt("Y")        // returns true

Expected outcome

delta.Add("Spec.X.Y.Z", a, b)
delta.DifferentAt("Spec.X.Y") // should return true
delta.DifferentAt("Y")        // should return false

/priority important-soon
/good-first-issue
/help-wanted

Metadata

Metadata

Assignees

Labels

area/runtimeIssues or PRs as related to controller runtime, common reconciliation logic, etcgood first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/bugCategorizes issue or PR as related to a bug.priority/important-soonMust be staffed and worked on either currently, or very soon, ideally in time for the next release.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions