dir2config: more logs on cluster templates
This commit is contained in:
parent
36e1367522
commit
d27c4ed7a3
@ -60,9 +60,12 @@ func renderClusterTemplates(cluster *clustersconfig.Cluster, setName string,
|
||||
clusterAsMap["kubernetes_svc_ip"] = cluster.KubernetesSvcIP().String()
|
||||
clusterAsMap["dns_svc_ip"] = cluster.DNSSvcIP().String()
|
||||
|
||||
log.Print("rendering cluster templates with ", clusterAsMap)
|
||||
|
||||
buf := &bytes.Buffer{}
|
||||
|
||||
for _, t := range templates {
|
||||
log.Print("- template: ", setName, ": ", t.Name)
|
||||
fmt.Fprintf(buf, "---\n# %s: %s\n", setName, t.Name)
|
||||
err := t.Execute(buf, clusterAsMap, clusterFuncs(cluster))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user