fix last refs to bootstrap-pods

This commit is contained in:
Mikaël Cluseau 2023-05-15 16:54:29 +02:00
parent b1cdb30622
commit a8ccb6990b
2 changed files with 3 additions and 3 deletions

View File

@ -166,7 +166,7 @@ func (ctx *renderContext) renderConfigTo(buf io.Writer, configTemplate *clusters
ba, err := yaml.Marshal(namePod.Pod)
if err != nil {
return "", fmt.Errorf("bootstrap pod %s: failed to render: %v", name, err)
return "", fmt.Errorf("static pod %s: failed to render: %v", name, err)
}
defs = append(defs, config.FileDef{

View File

@ -121,7 +121,7 @@ func FromDir(
}
}
// cluster bootstrap pods
// cluster static pods
for _, host := range config.Hosts {
bpSet := host.StaticPods
if bpSet == "" {
@ -133,7 +133,7 @@ func FromDir(
}
templates := make([]*Template, 0)
if err = loadTemplates(path.Join("bootstrap-pods", bpSet), &templates); err != nil {
if err = loadTemplates(path.Join("static-pods", bpSet), &templates); err != nil {
return nil, err
}