Skip to content

Using logical and-operation in evaluation results in new element #704

Answered by mikefarah
ErikLundJensen asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the clear example, this looks like a bug, I'll work on the fix.

In the meantime, although it's a bit cumbersome, you can do this:

yq eval '(.apps[] | (select (.name == "myproxy") | select(has("feature")) | select(.feature == "abc-123")).image.tag) = "2.0.0"' values.yml

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mikefarah
Comment options

@ErikLundJensen
Comment options

Answer selected by ErikLundJensen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants