Skip to content
Draft
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
16 changes: 14 additions & 2 deletions example/pxeboot_config.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,14 @@
tftpServer: tftp://[2001:db8::1]/ipxe/x86_64/ipxe
ipxeServer: http://[2001:db8::1]/ipxe/boot6
tftpAddress:
ipv4:
amd64: tftp://192.168.0.1/x86_64/amd64.efi
arm64: tftp://192.168.0.1/aarch64/arm64.efi
ipv6:
amd64: tftp://[2001:db8::1]/x86_64/amd64.efi
arm64: tftp://[2001:db8::1]/aarch64/arm64.efi
ipxeAddress:
ipv4:
amd64: http://192.168.0.2/ipxe/boot4.pxe
arm64: http://192.168.0.2/ipxe/boot4.pxe
ipv6:
amd64: http://[2001:db8::2]/ipxe/boot6.pxe
arm64: http://[2001:db8::2]/ipxe/boot6.pxe
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ require (
github.com/google/gopacket v1.1.19 // indirect
github.com/google/pprof v0.0.0-20251007162407-5df77e3f7d1d // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/jinzhu/copier v0.4.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/mattn/go-colorable v0.1.14 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ github.com/ironcore-dev/ipam v0.2.4 h1:8dEbvggTmLfZFykhyBCPdN6oAQvHfnWPFM5p9Y2Wq
github.com/ironcore-dev/ipam v0.2.4/go.mod h1:p5+URcAMcCEcYnNjPCnzu7btQcejU8veEZDFbkaTcps=
github.com/ironcore-dev/metal-operator v0.1.0 h1:0GqpKgfH5hG5jULUESsTr1dUH73ip3YJYIqtV8kBqoY=
github.com/ironcore-dev/metal-operator v0.1.0/go.mod h1:JMxYoN5PJ0jvKhWlpV6kR9fhBXdLy2NNtvzJXXN/Iuc=
github.com/jinzhu/copier v0.4.0 h1:w3ciUoD19shMCRargcpm0cm91ytaBhDvuRpz1ODO/U8=
github.com/jinzhu/copier v0.4.0/go.mod h1:DfbEm0FYsaqBcKcFuvmOZb218JkPGtvSHsKg8S8hyyg=
github.com/josharian/native v1.1.0 h1:uuaP0hAbW7Y4l0ZRQ6C9zfb7Mg1mbFKry/xzDAfmtLA=
github.com/josharian/native v1.1.0/go.mod h1:7X/raswPFr05uY3HiLlYeyQntB6OO7E/d2Cu7qoaN2w=
github.com/joshdk/go-junit v1.0.0 h1:S86cUKIdwBHWwA6xCmFlf3RTLfVXYQfvanM5Uh+K6GE=
Expand Down
24 changes: 21 additions & 3 deletions internal/api/pxeboot_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,25 @@

package api

type PxebootConfig struct {
TFTPServer string `yaml:"tftpServer"`
IPXEServer string `yaml:"ipxeServer"`
type Arch string

const (
AMD64 Arch = "amd64"
ARM64 Arch = "arm64"
UnknownArch Arch = "unknown"
)

type PxeBootConfig struct {
TFTPAddress Addresses `yaml:"tftpAddress"`
IPXEAddress Addresses `yaml:"ipxeAddress"`
}

type Addresses struct {
IPv4 map[Arch]string `yaml:"ipv4"`
IPv6 map[Arch]string `yaml:"ipv6"`
}

type Architectures struct {
Amd64 string `yaml:"amd64"`
Arm64 string `yaml:"arm64"`
}
Loading
Loading