Skip to content

Instantly share code, notes, and snippets.

@mgoodness
Created January 5, 2019 02:21
Show Gist options
  • Save mgoodness/3998eb4aab8ca01a6b5468f76586f48f to your computer and use it in GitHub Desktop.
Save mgoodness/3998eb4aab8ca01a6b5468f76586f48f to your computer and use it in GitHub Desktop.

Revisions

  1. mgoodness created this gist Jan 5, 2019.
    9 changes: 9 additions & 0 deletions k8s-api.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    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}
    }