This commit is contained in:
Mikaël Cluseau
2019-01-30 13:56:45 +11:00
parent 7ac7382719
commit a9454af71b
2 changed files with 5 additions and 2 deletions

View File

@ -100,6 +100,10 @@ func main() {
}
func renderAddons(cluster *clustersconfig.Cluster) string {
if len(cluster.Addons) == 0 {
return ""
}
addons := src.Addons[cluster.Addons]
if addons == nil {
log.Fatalf("cluster %q: no addons with name %q", cluster.Name, cluster.Addons)