Skip to content

Commit

Permalink
print kubectl version
Browse files Browse the repository at this point in the history
  • Loading branch information
tonglil committed Aug 20, 2019
1 parent ef524a4 commit 01bde19
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions auth-gke.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ set -euo pipefail

main() {
_trace gcloud container clusters get-credentials "$CLUSTER" --project "$PROJECT" --zone "${LOCATION:-${ZONE:-}}"
# Display after getting credentials because gcloud sets the version based on the cluster version
_trace kubectl version
}

# Display the underlying command
Expand Down

0 comments on commit 01bde19

Please sign in to comment.