#####Add this to end of ~/.bash_profile:
gcrsearch() { curl -s "$1/tags/list" | jq '.manifest[].tag[]' | sort; }
alias gcrtags=gcrsearch
#####After opening a new term, use like:
spencers-mbp:~ spencer$ gcrtags https://gcr.io/v2/google_containers/kube-apiserver
"v1.2.0"
...
"v1.4.0-alpha.2"
"v1.4.0-alpha.3"
#####Note: This only works for v2 GCR endpoints.