Skip to content

Instantly share code, notes, and snippets.

@rrichards
Forked from mgoodness/k8s-api.sh
Created May 28, 2019 15:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rrichards/816025dbeba921bce1ca215338e9dbdc to your computer and use it in GitHub Desktop.
Save rrichards/816025dbeba921bce1ca215338e9dbdc to your computer and use it in GitHub Desktop.
k8s-api() {
if [[ "$1" == "1.9" ]]; then
url="https://v1-9.docs.kubernetes.io/docs/api-reference/v1.9/"
else
url="https://kubernetes.io/docs/reference/generated/kubernetes-api/v$1/"
fi
open ${url}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment