skip updating to rc version of Golang

pull/13735/head
Steven Powell 2022-03-01 12:02:12 -08:00
parent d5f7933a16
commit 595a340b7a
1 changed files with 5 additions and 0 deletions

View File

@ -154,6 +154,11 @@ func main() {
if err != nil || stable == "" || stableMM == "" {
klog.Fatalf("Unable to get Golang stable version: %v", err)
}
// skip rc versions
if strings.Contains(stable, "rc") {
klog.Warningf("Golang stable version is a release candidate, skipping: %s", stable)
return
}
data := Data{StableVersion: stable, StableVersionMM: stableMM, K8SVersion: k8sVersion}
klog.Infof("Golang stable version: %s", data.StableVersion)