Top "Yq" questions

yq is a lightweight and portable command-line YAML processor.

Yq: retrieve object keys names

I have a YAML file (docker-compose file in my case) that looks like this: networks: foo: some_opts: "covfefe" bar: …

shell yaml jq yq
Replace value in yaml if name : xxx with bash

I want to change yaml file value based on name: Example: spec: containers: - name: app1 image: imageurl.com command: [] …

bash yaml yq
How to insert or add a field in a yaml after a specific key in yq

I have a k8s yaml file with below block spec: replicas: 1 strategy: type: Recreate and I want to add …

kubernetes yaml jq yq