Skip to content

Conversation

@jaypipes
Copy link
Member

@jaypipes jaypipes commented Oct 4, 2025

When looking up a JSONPath in the output of a list operation, one specifies the path like so: $[0].status.podIP. However, the way that we were transforming UnstructuredList to any was incorrect and therefore the github.com/theory/jsonpath.Select() function wasn't understanding the provided input. This patch fixes this problem by changing the input from []map[string]any to []any.

When looking up a JSONPath in the output of a list operation, one
specifies the path like so: `$[0].status.podIP`. However, the way that
we were transforming UnstructuredList to any was incorrect and therefore
the github.com/theory/jsonpath.Select() function wasn't understanding
the provided input. This patch fixes this problem by changing the input
from []map[string]any to []any.

Signed-off-by: Jay Pipes <[email protected]>
@jaypipes jaypipes merged commit b5ae420 into gdt-dev:main Oct 4, 2025
7 checks passed
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.

1 participant