Quantcast
Channel: Active questions tagged jq - Stack Overflow
Viewing all articles
Browse latest Browse all 657

yq to get values from key value pair

$
0
0

I have a simple values.yaml file which has below data:

images:  tags:    one: abc:v0.3-16-07    two: xyz:ng-0.23.0    pq: qaa:0df1e21e752b3d3.2020-04-27_1

Using

yq -r --yaml-output ".images.tags" values.yaml

I can get below output

one: abc:v0.3-16-07two: xyz:ng-0.23.0pq: qaa:0df1e21e752b3d3.2020-04-27_1

But how can i get the values from the above?


Viewing all articles
Browse latest Browse all 657

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>