mirror of
https://github.com/rancher/rke.git
synced 2025-08-31 14:36:32 +00:00
Pass docker info to host in generate plan
This commit is contained in:
committed by
Darren Shepherd
parent
a2d985ef46
commit
cefe16eb78
@@ -36,6 +36,7 @@ func GeneratePlan(ctx context.Context, rkeConfig *v3.RancherKubernetesEngineConf
|
||||
// rkeConfig.Nodes are already unique. But they don't have role flags. So I will use the parsed cluster.Hosts to make use of the role flags.
|
||||
uniqHosts := hosts.GetUniqueHostList(myCluster.EtcdHosts, myCluster.ControlPlaneHosts, myCluster.WorkerHosts)
|
||||
for _, host := range uniqHosts {
|
||||
host.DockerInfo = hostsInfoMap[host.Address]
|
||||
clusterPlan.Nodes = append(clusterPlan.Nodes, BuildRKEConfigNodePlan(ctx, myCluster, host, hostsInfoMap[host.Address]))
|
||||
}
|
||||
return clusterPlan, nil
|
||||
|
Reference in New Issue
Block a user