可以在集群中查看待安装节点、并直接安装节点

This commit is contained in:
GoEdgeLab
2020-10-26 21:14:26 +08:00
parent 7bb652162a
commit 16ab3a5497
36 changed files with 850 additions and 185 deletions

View File

@@ -76,6 +76,9 @@ func (this *InstallAction) RunGet(params struct {
apiNodes := apiNodesResp.Nodes
apiEndpoints := []string{}
for _, apiNode := range apiNodes {
if !apiNode.IsOn {
continue
}
apiEndpoints = append(apiEndpoints, apiNode.AccessAddrs...)
}
this.Data["apiEndpoints"] = "\"" + strings.Join(apiEndpoints, "\", \"") + "\""