dir2config: switch to includes instead of ad-hoc defaults
This commit is contained in:
@ -11,13 +11,13 @@ import (
|
||||
)
|
||||
|
||||
func (ctx *renderContext) renderBootstrapPods() (pods []namePod) {
|
||||
if ctx.Cluster.BootstrapPods == "" {
|
||||
if ctx.Host.BootstrapPods == "" {
|
||||
return
|
||||
}
|
||||
|
||||
bootstrapPods, ok := src.BootstrapPods[ctx.Cluster.BootstrapPods]
|
||||
bootstrapPods, ok := src.BootstrapPods[ctx.Host.BootstrapPods]
|
||||
if !ok {
|
||||
log.Fatalf("no bootstrap pods template named %q", ctx.Cluster.BootstrapPods)
|
||||
log.Fatalf("no bootstrap pods template named %q", ctx.Host.BootstrapPods)
|
||||
}
|
||||
|
||||
// render bootstrap pods
|
||||
|
Reference in New Issue
Block a user