1
0
mirror of https://github.com/rancher/rke.git synced 2025-08-18 14:57:03 +00:00

revert back to ignore docker version

This commit is contained in:
galal-hussein 2018-01-22 21:31:03 +02:00
parent c2f4ada95e
commit c425298f69
3 changed files with 11 additions and 11 deletions

View File

@ -47,7 +47,7 @@ func (c *Cluster) InvertIndexHosts() error {
RKEConfigNode: host, RKEConfigNode: host,
} }
newHost.EnforceDockerVersion = c.EnforceDockerVersion 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)

View File

@ -16,15 +16,15 @@ import (
type Host struct { type Host struct {
v3.RKEConfigNode v3.RKEConfigNode
DClient *client.Client DClient *client.Client
LocalConnPort int LocalConnPort int
IsControl bool IsControl bool
IsWorker bool IsWorker bool
IsEtcd bool IsEtcd bool
EnforceDockerVersion bool IgnoreDockerVersion bool
ToAddEtcdMember bool ToAddEtcdMember bool
ExistingEtcdCluster bool ExistingEtcdCluster bool
SavedKeyPhrase string SavedKeyPhrase string
} }
const ( const (

View File

@ -65,7 +65,7 @@ func checkDockerVersion(ctx context.Context, h *Host) 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 && h.EnforceDockerVersion { 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 { } else if !isvalid {
log.Warnf(ctx, "Unsupported Docker version found [%s], supported versions are %v", info.ServerVersion, docker.K8sDockerVersions[K8sVersion]) log.Warnf(ctx, "Unsupported Docker version found [%s], supported versions are %v", info.ServerVersion, docker.K8sDockerVersions[K8sVersion])