Ensure autobuilt overlays include contextual overlay contents.
Following #1249, autobuilt overlays were being built with no contents. This change follows the pattern in `wwctl overlay build` to include configured overlays when none are explicitly specified. Inspired by #1296. Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
@@ -38,6 +38,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||
- Replace slice in templates with sprig substr. #1093
|
||||
- Fix an invalid format issue for the GitHub nightly build action. #1258
|
||||
|
||||
## v4.5.6, unreleased
|
||||
|
||||
### Fixed
|
||||
|
||||
- Ensure autobuilt overlays include contextual overlay contents. #1296
|
||||
|
||||
## v4.5.5, 2024-07-05
|
||||
|
||||
### Fixed
|
||||
|
||||
@@ -63,7 +63,11 @@ func getOverlayFile(
|
||||
}
|
||||
|
||||
if build {
|
||||
err = overlay.BuildOverlay(n, context, stage_overlays)
|
||||
if len(stage_overlays) > 0 {
|
||||
err = overlay.BuildSpecificOverlays([]node.NodeInfo{n}, stage_overlays)
|
||||
} else {
|
||||
err = overlay.BuildAllOverlays([]node.NodeInfo{n})
|
||||
}
|
||||
if err != nil {
|
||||
wwlog.Error("Failed to build overlay: %s, %s, %s\n%s",
|
||||
n.Id.Get(), stage_overlays, stage_file, err)
|
||||
|
||||
Reference in New Issue
Block a user