Skip to content

Conversation

tommyp1ckles
Copy link
Contributor

No description provided.

Signed-off-by: Tom Hadlaw <tom.hadlaw@isovalent.com>
@joamaki
Copy link
Contributor

joamaki commented May 29, 2025

I like the idea and looks like goccy is only 14k lines so seems reasonable enough of a dependency. Let's drop vendor though. And maybe lets call this yamlpath instead as yq makes you think this is the actual yq command or close to it. Also the command should have fairly detailed help with examples. I would also love if we'd add jsonpath too.

An alternative could be to consider adding a proper jq command with https://github.com/itchyny/gojq along with perhaps a "yaml2json" option for converting yaml to json first so we wouldn't need a separate command for yaml. The benefit of this would be that we can do comparisons and so on. Downside is that this is fairly big dependency. Would need to think careful whether we want this to end up in all binaries using cilium/hive or whether we'd try to make sure it only is used by test binaries.

@joamaki
Copy link
Contributor

joamaki commented Oct 6, 2025

Here's another approach to this using JMESPath: #61. Not fully sure what way we should go...

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.

2 participants