mirror of
https://github.com/rancher/rke.git
synced 2025-06-01 11:46:17 +00:00
add ignore_docker_version
This commit is contained in:
parent
e30d90f5c4
commit
c671552a27
@ -20,6 +20,7 @@ network:
|
|||||||
flannel_cni_image: quay.io/coreos/flannel-cni:v0.2.0
|
flannel_cni_image: quay.io/coreos/flannel-cni:v0.2.0
|
||||||
|
|
||||||
ssh_key_path: ~/.ssh/test
|
ssh_key_path: ~/.ssh/test
|
||||||
|
ignore_docker_version: false
|
||||||
|
|
||||||
nodes:
|
nodes:
|
||||||
- address: 1.1.1.1
|
- address: 1.1.1.1
|
||||||
|
@ -40,6 +40,9 @@ func (c *Cluster) InvertIndexHosts() error {
|
|||||||
if err := newHost.RegisterDialer(c.Dialer); err != nil {
|
if err := newHost.RegisterDialer(c.Dialer); err != nil {
|
||||||
return fmt.Errorf("Failed to register new Dialer for host [%s]: %v", host.Address, err)
|
return fmt.Errorf("Failed to register new Dialer for host [%s]: %v", host.Address, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
newHost.IgnoreDockerVersion = c.IgnoreDockerVersion
|
||||||
|
|
||||||
for _, role := range host.Role {
|
for _, role := range host.Role {
|
||||||
logrus.Debugf("Host: " + host.Address + " has role: " + role)
|
logrus.Debugf("Host: " + host.Address + " has role: " + role)
|
||||||
switch role {
|
switch role {
|
||||||
|
@ -273,8 +273,8 @@ func getServiceConfig(reader *bufio.Reader) (*v3.RKEConfigServices, error) {
|
|||||||
return &servicesConfig, nil
|
return &servicesConfig, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func getAuthConfig(reader *bufio.Reader) (*v3.AuthConfig, error) {
|
func getAuthConfig(reader *bufio.Reader) (*v3.AuthnConfig, error) {
|
||||||
authConfig := v3.AuthConfig{}
|
authConfig := v3.AuthnConfig{}
|
||||||
|
|
||||||
authType, err := getConfig(reader, "Authentication Strategy", "x509")
|
authType, err := getConfig(reader, "Authentication Strategy", "x509")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -15,10 +15,11 @@ import (
|
|||||||
|
|
||||||
type Host struct {
|
type Host struct {
|
||||||
v3.RKEConfigNode
|
v3.RKEConfigNode
|
||||||
DClient *client.Client
|
DClient *client.Client
|
||||||
Dialer Dialer
|
Dialer Dialer
|
||||||
IsControl bool
|
IsControl bool
|
||||||
IsWorker bool
|
IsWorker bool
|
||||||
|
IgnoreDockerVersion bool
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -46,8 +46,10 @@ func (h *Host) TunnelUp() error {
|
|||||||
return fmt.Errorf("Error while determining supported Docker version [%s]: %v", info.ServerVersion, err)
|
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])
|
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
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user