Skip to content

Commit 01bde19

Browse files
committed
print kubectl version
1 parent ef524a4 commit 01bde19

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

auth-gke.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ set -euo pipefail
33

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

810
# Display the underlying command

0 commit comments

Comments
 (0)