Using logical and-operation in evaluation results in new element #704
-
First, thanks for the great work and for the new 4.x releases. Given the following input in the file values.yaml
and the command
results in update of the image.tag for the app with the name "myproxy":
This really great as that was not possible in yq version 3.x However, when removing the field "feature" from the input file values.yaml like this:
and execute the same command then the result includes a feature: null as seen below:
I wonder how a new element "feature" is added to the output structure as it is only used in the select statement. Version info: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
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:
|
Beta Was this translation helpful? Give feedback.
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: