Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ linters:
- errcheck
- ginkgolinter
- goconst
- gocyclo
- govet
- ineffassign
- lll
Expand Down
9 changes: 9 additions & 0 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,15 @@ func main() {
setupLog.Info("Ignoring --default-httpboot-uki-url because --default-httpboot-oci-image is set")
}

ipxeControllersEnabled := controllers.Enabled(ipxeBootConfigController) || controllers.Enabled(serverBootConfigControllerPxe)
httpControllersEnabled := controllers.Enabled(httpBootConfigController) || controllers.Enabled(serverBootConfigControllerHttp)
if ipxeControllersEnabled && httpControllersEnabled {
setupLog.Error(nil, "invalid controller combination: iPXE and HTTPBoot controllers cannot run together; "+
"use --controllers to enable only one boot method group "+
"(ipxe group: ipxebootconfig, serverbootconfigpxe; http group: httpbootconfig, serverbootconfighttp)")
os.Exit(1)
}

// set the correct ipxe service URL by getting the address from the environment
if controllers.Enabled(ipxeBootConfigController) || controllers.Enabled(serverBootConfigControllerPxe) {
if ipxeServiceURL == "" {
Expand Down
Loading