fix(addons): separator

This commit is contained in:
Mikaël Cluseau 2019-01-22 18:43:46 +13:00
parent 376b77fd6b
commit 92b4b1010c

View File

@ -112,13 +112,15 @@ func renderAddons(cluster *clustersconfig.Cluster) string {
buf := &bytes.Buffer{} buf := &bytes.Buffer{}
for _, addon := range addons { for _, addon := range addons {
fmt.Fprintf(buf, "# addon: %s\n", addon.Name) fmt.Fprintf(buf, "---\n# addon: %s\n", addon.Name)
err := addon.Execute(buf, clusterAsMap, nil) err := addon.Execute(buf, clusterAsMap, nil)
if err != nil { if err != nil {
log.Fatalf("cluster %q: addons %q: failed to render %q: %v", log.Fatalf("cluster %q: addons %q: failed to render %q: %v",
cluster.Name, cluster.Addons, addon.Name, err) cluster.Name, cluster.Addons, addon.Name, err)
} }
fmt.Fprintln(buf)
} }
return buf.String() return buf.String()