Consider this JSON document check syntax I want to generate a series of strings that combines the id field with each of the values. So output I ...
Consider this JSON document check syntax I want to generate a series of strings that combines the id field with each of the values. So output I ...
How can I remove all (parent) nodes with the "type: array" key/value pair using yq v4? Before: After: I use yq (https://github.com/mikefarah/yq ...
Let's assume that you want to inject an extra container to all the Pods submitted to the cluster. You could save the YAML configuration for the extra ...
I have a yml file that is automatically generated depending on the received parameters in GitLab, it can contain many triggers (structure will be the ...
I am trying to get the results of the following structure from a yaml file Using yq by mikefarah v4.30.4: But I get this output: Trying other ...
I have a YAML file with semantic versioning number like this: version: 1.0.1 I need to increment PATCH part of the version. Is it possible to do it ...
I have below content in yml file: Below snippet needs to be added to the existing under category: Expected Output: Tried below: But none ...
We have upgraded yq from version 3.x.x to version 4.x.x and there is a part that does not work the same when getting a key value from the following st ...
I have an xml dictionary file based on the xdxf dictionary format here that I would like to convert (and round trip) to yaml. This format (with DTD) ...
I am using yq tool to write data to a yaml file , but i am unable to write the data persistently to the yaml file. when executed the below command it ...
I would like to have command in Makefile that allows me to change service's target in docker-compose.yaml respectively to target given command paramet ...
I would like to update the value for CONTEXT. The following command updates the value however it does not return the whole yaml: The output of th ...
I have a YAML file which I am converting into JSON files using yq. It generates the following output, Then I am creating another JSON based on the ...
I want to run a yq command such that for every Type:AWS::Serverless::Function resources, I'd like to grab the value of the Handler and make another ...
There is documentation explaining how to sort an array using yq https://mikefarah.gitbook.io/yq/operators/sort But it'd like to shuffle (random sorti ...
I have an example yaml as such, and I'd like to append Policy2 into the Policies block for all resources that has Type: AWS::Serverless::Function F ...
My sample yaml file looks like: So, the jenkins pipeline takes 2 inputs, i.e., the name of the input1 and input2. Post creation, I need to update t ...
I have a yml file, from which I am obtaining a key with yq and I am storing it in a variable in bash, I am trying to do another query with the value o ...
I'm using yq and i'm struggling to figure out the below problem. Given a file.yaml containing the below: what is the yq command i need to replace ...
I am trying to create a multiple map in a values.yaml as follows. and this is the next output: Error: Cannot multiply !!null with !!map The yaml ...