https://github.com/framsouza/list-gke-versions
This code will print a list of the GKE clusters with the version
https://github.com/framsouza/list-gke-versions
Last synced: about 1 month ago
JSON representation
This code will print a list of the GKE clusters with the version
- Host: GitHub
- URL: https://github.com/framsouza/list-gke-versions
- Owner: framsouza
- Created: 2022-08-24T08:06:22.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-24T08:11:13.000Z (almost 4 years ago)
- Last Synced: 2025-07-13T17:50:15.629Z (11 months ago)
- Language: Go
- Size: 52.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# List GKE version
This code will print the current version of the masters and nodes running on GKE.
### Usage
First, make sure you have the `GOOGLE_APPLICATION_CREDENTIALS` environment variable set as per the google docs.
It will require one argument which is `project`.
You can choose to build the binary by running:
```
go build -o list-gke-version
```
and run it as:
```
./list-gke-version -project=
```
or without buidling the binary
```
go run main.go -project=
```
### Output expected
```
CLUSTER NAME MASTER VERSION NODE VERSION
mygke-apps-global-eu 1.21.12-gke.2200 1.21.12-gke.2200
test-gke 1.21.12-gke.2200 1.21.12-gke.2200
mygke-apps-cd-stag 1.21.13-gke.900 1.21.13-gke.900
mygke-apps-cd-prod 1.21.12-gke.2200 1.21.12-gke.2200
mygke-apps-prod 1.21.12-gke.2200 1.21.12-gke.2200
mygke-apps-devs-aac 1.21.13-gke.900 1.21.13-gke.900
mygke-apps-es 1.21.13-gke.900 1.21.13-gke.900
mygke-apps-global 1.21.12-gke.2200 1.21.12-gke.2200
mygke-apps-nick 1.22.10-gke.600 1.22.10-gke.600
mygke-apps-nick 1.21.12-gke.2200 1.16.15-gke.4901
mygke-apps-rele 1.21.12-gke.2200 1.21.12-gke.2200
mygke-apps-stage 1.21.12-gke.2200 1.21.12-gke.2200
mygke-apps-ops 1.21.12-gke.2200 1.21.12-gke.2200
mygke-apps-web 1.21.12-gke.2200 1.21.12-gke.2200
mygke-apps-au 1.21.12-gke.2200 1.21.12-gke.2200
mygke-apps-jarpy 1.21.13-gke.900 1.21.13-gke.900 %
```