gcloud
was installed using this command in windows Powershell:
(New-Object Net.WebClient).DownloadFile("https://dl.google.com/dl/cloudsdk/channels/rapid/GoogleCloudSDKInstaller.exe", "$env:Temp\GoogleCloudSDKInstaller.exe")
& $env:Temp\GoogleCloudSDKInstaller.exe
$ gcloud -v
Google Cloud SDK 398.0.0
anthos-auth 1.4.3
$ gcloud components install kubectl
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"22+", GitVersion:"v1.22.12-dispatcher-dirty", GitCommit:"fde00375407ad0afadd681a3505054ec83f935ec", GitTreeState:"dirty", BuildDate:"2022-07-19T19:06:19Z", GoVersion:"go1.16.15", Compiler:"gc", Platform:"windows/amd64"}
Server Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.5-gke.1200", GitCommit:"90a16981ade07f163a0233adb631b42ac1fc53ff", GitTreeState:"clean", BuildDate:"2021-10-04T09:25:23Z", GoVersion:"go1.16.7b7", Compiler:"gc", Platform:"linux/amd64"}
Above client version tool has git commit fde00375407ad0afadd681a3505054ec83f935ec
Here is the open source repo for kubectl
: https://github.com/kubernetes/kubectl
Not sure, if gcloud uses the same repo
How to find this specific Git commit from gcloud's kubectl
source repo? fde00375407ad0afadd681a3505054ec83f935ec