Skip to content

Commit

Permalink
Use new struct for DNS and NTP servers
Browse files Browse the repository at this point in the history
  • Loading branch information
simcod committed Oct 17, 2024
1 parent 0803b1b commit 9f10187
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ require (
github.com/metal-stack/go-hal v0.5.3
github.com/metal-stack/go-lldpd v0.4.7
github.com/metal-stack/metal-api v0.34.0
github.com/metal-stack/metal-go v0.37.2-0.20241004105754-bb5ae18aeb54
github.com/metal-stack/metal-go v0.37.2-0.20241017122234-aba7451bd663
github.com/metal-stack/pixie v0.3.4
github.com/metal-stack/v v1.0.3
// archiver must stay in version v2.1.0, see replace below
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -915,8 +915,8 @@ github.com/metal-stack/go-lldpd v0.4.7 h1:Y3FALidODscleqJCS6sGgBunxyLX1scNT7cMoK
github.com/metal-stack/go-lldpd v0.4.7/go.mod h1:CYKuwnjSZ6zYmAMKLy45/QAQJKj5xZnkfv2zyi+B33o=
github.com/metal-stack/metal-api v0.34.0 h1:/FZ14svO43D0OMoo3JfiupdBwaOwjUZcHl4qeoe4z4g=
github.com/metal-stack/metal-api v0.34.0/go.mod h1:6ayMjTemhyua2nD/RWsxKxkd9zBY1fRxxGGG9/OlGlU=
github.com/metal-stack/metal-go v0.37.2-0.20241004105754-bb5ae18aeb54 h1:UgAbaE+1Bp3yOHadUDMLRMCtPXWQPkvittgtkbqTF+c=
github.com/metal-stack/metal-go v0.37.2-0.20241004105754-bb5ae18aeb54/go.mod h1:3MJTYCS4YJz8D8oteTKhjpaAKNMMjMKYDrIy9awHGtQ=
github.com/metal-stack/metal-go v0.37.2-0.20241017122234-aba7451bd663 h1:QAPaowID4+qy3sQZlct0R+DflMGOi3mmnCBrev2QNv8=
github.com/metal-stack/metal-go v0.37.2-0.20241017122234-aba7451bd663/go.mod h1:3MJTYCS4YJz8D8oteTKhjpaAKNMMjMKYDrIy9awHGtQ=
github.com/metal-stack/metal-lib v0.18.1 h1:Kjmf/Z/6pWemR8O6ttbNPQ9PjeT3ON60sBNu51Lgi1M=
github.com/metal-stack/metal-lib v0.18.1/go.mod h1:GJjipRpHmpd2vjBtsaw9gGk5ZFan7NlShyjIsTdY1x4=
github.com/metal-stack/pixie v0.3.4 h1:Z/hhh1BAF3Dmj+e1aex+8ikFUEUYUZGU90pwcsNBhcs=
Expand Down
4 changes: 2 additions & 2 deletions pkg/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ type InstallerConfig struct {
// FirewallRules if not empty firewall rules to enforce
FirewallRules *models.V1FirewallRules `yaml:"firewall_rules"`
// DNSServers for the machine
DNSServers []string `yaml:"dns_servers"`
DNSServers []*models.MetalDNSServer `yaml:"dns_servers"`
// NTPServers for the machine
NTPServers []string `yaml:"ntp_servers"`
NTPServers []*models.MetalNTPServer `yaml:"ntp_servers"`
}

// FIXME legacy structs remove once old images are gone
Expand Down

0 comments on commit 9f10187

Please sign in to comment.