mirror of
https://github.com/rancher/rke.git
synced 2025-09-16 23:20:56 +00:00
add ignore_docker_version
This commit is contained in:
@@ -15,10 +15,11 @@ import (
|
||||
|
||||
type Host struct {
|
||||
v3.RKEConfigNode
|
||||
DClient *client.Client
|
||||
Dialer Dialer
|
||||
IsControl bool
|
||||
IsWorker bool
|
||||
DClient *client.Client
|
||||
Dialer Dialer
|
||||
IsControl bool
|
||||
IsWorker bool
|
||||
IgnoreDockerVersion bool
|
||||
}
|
||||
|
||||
const (
|
||||
|
@@ -46,8 +46,10 @@ func (h *Host) TunnelUp() error {
|
||||
return fmt.Errorf("Error while determining supported Docker version [%s]: %v", info.ServerVersion, err)
|
||||
}
|
||||
|
||||
if !isvalid {
|
||||
if !isvalid && !h.IgnoreDockerVersion {
|
||||
return fmt.Errorf("Unsupported Docker version found [%s], supported versions are %v", info.ServerVersion, docker.K8sDockerVersions[K8sVersion])
|
||||
} else if !isvalid {
|
||||
logrus.Warnf("Unsupported Docker version found [%s], supported versions are %v", info.ServerVersion, docker.K8sDockerVersions[K8sVersion])
|
||||
}
|
||||
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user