From d27c4ed7a3fc386569a4d6df93f845bda42c2836 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Cluseau?= Date: Wed, 16 Oct 2019 16:21:12 +1100 Subject: [PATCH] dir2config: more logs on cluster templates --- cmd/dkl-dir2config/render-cluster.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/dkl-dir2config/render-cluster.go b/cmd/dkl-dir2config/render-cluster.go index fcbbb10..735a2ed 100644 --- a/cmd/dkl-dir2config/render-cluster.go +++ b/cmd/dkl-dir2config/render-cluster.go @@ -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))