Skip to content

Instantly share code, notes, and snippets.

@rsmitty
Last active September 1, 2016 17:35
Show Gist options
  • Save rsmitty/fcd3f28a217eb30562d2bb9404df38e6 to your computer and use it in GitHub Desktop.
Save rsmitty/fcd3f28a217eb30562d2bb9404df38e6 to your computer and use it in GitHub Desktop.
GCR Tag Search

#####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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment