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{}
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)
if err != nil {
log.Fatalf("cluster %q: addons %q: failed to render %q: %v",
cluster.Name, cluster.Addons, addon.Name, err)
}
fmt.Fprintln(buf)
}
return buf.String()