mirror of
https://github.com/rancher/rke.git
synced 2025-09-01 06:56:29 +00:00
use k8s version info from kontainer-driver-metadata
This commit is contained in:
committed by
Alena Prokharchyk
parent
8c8e3d1c6b
commit
c191ed6202
3
main.go
3
main.go
@@ -1,6 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/rancher/rke/metadata"
|
||||
"os"
|
||||
"regexp"
|
||||
|
||||
@@ -30,8 +31,8 @@ func mainErr() error {
|
||||
if ctx.GlobalBool("debug") {
|
||||
logrus.SetLevel(logrus.DebugLevel)
|
||||
}
|
||||
logrus.Debugf("RKE version %s", app.Version)
|
||||
if released.MatchString(app.Version) {
|
||||
metadata.RKEVersion = app.Version
|
||||
return nil
|
||||
}
|
||||
logrus.Warnf("This is not an officially supported version (%s) of RKE. Please download the latest official release at https://github.com/rancher/rke/releases/latest", app.Version)
|
||||
|
Reference in New Issue
Block a user