MOTD: Remove '-gke.*' in link to source version

When actually running in GKE, the version will contain "-gke.*". This makes the reference / link to the source version invalid.
Workaround by using bash variable expansion to remove this gke version substring.

Ex following:
- https://github.com/kubernetes/kubernetes/tree/v1.18.20-gke.501
Should actually be:
- https://github.com/kubernetes/kubernetes/tree/v1.18.20
This commit is contained in:
Alex 2021-08-23 19:55:36 +09:00 committed by GitHub
parent b9565beef0
commit 0c2474968e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2923,7 +2923,7 @@ Or you can download it at:
https://storage.googleapis.com/kubernetes-release/release/${version}/kubernetes-src.tar.gz
It is based on the Kubernetes source at:
https://github.com/kubernetes/kubernetes/tree/${gitref}
https://github.com/kubernetes/kubernetes/tree/${gitref/-gke.*/}
${devel}
For Kubernetes copyright and licensing information, see:
/home/kubernetes/LICENSES