cat data/ann.json | jq ".metadata.annotations | to_entries | map_values(.value="override-value") " |
---|
[ { "key": "deployment.kubernetes.io/revision", "value": "override-value" }, { "key": "machine.openshift.io/owned", "value": "override-value" }, { "key": "label1", "value": "override-value" }, { "key": "label2", "value": "override-value" }, { "key": "label3", "value": "override-value" } ] |