cat data/ann.json | cat data/ann.json | jq ' .metadata.annotations ' |
---|---|
{ "metadata": { "annotations": { "deployment.kubernetes.io/revision": "1", "machine.openshift.io/owned": "", "label1" : "stam", "label2" : "another", "label3" : "one" } } } |
{ "deployment.kubernetes.io/revision": "1", "machine.openshift.io/owned": "", "label1": "stam", "label2": "another", "label3": "one" } |