Skip to content

Commit 0c24749

Browse files
authored
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
1 parent b9565be commit 0c24749

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cluster/gce/gci/configure-helper.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2923,7 +2923,7 @@ Or you can download it at:
29232923
https://storage.googleapis.com/kubernetes-release/release/${version}/kubernetes-src.tar.gz
29242924
29252925
It is based on the Kubernetes source at:
2926-
https://github.com/kubernetes/kubernetes/tree/${gitref}
2926+
https://github.com/kubernetes/kubernetes/tree/${gitref/-gke.*/}
29272927
${devel}
29282928
For Kubernetes copyright and licensing information, see:
29292929
/home/kubernetes/LICENSES

0 commit comments

Comments
 (0)