Skip to content

fix bug in var jsonpath selection - #29

Merged
jaypipes merged 1 commit into
gdt-dev:mainfrom
jaypipes:jsonpath
Oct 4, 2025
Merged

fix bug in var jsonpath selection#29
jaypipes merged 1 commit into
gdt-dev:mainfrom
jaypipes:jsonpath

Conversation

@jaypipes

@jaypipes jaypipes commented Oct 4, 2025

Copy link
Copy Markdown
Member

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 <jaypipes@gmail.com>
@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