Skip to content

Commit 44bedfe

Browse files
Merge pull request #216 from wking/install-config-drop-dns-server
pkg/types/installconfig: Drop DNSServer
2 parents d07ab5c + 285f7b5 commit 44bedfe

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

Documentation/design/installconfig.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,6 @@ type LibvirtNetwork struct {
128128
Name string `json:"name"`
129129
// IfName is the name of the network interface.
130130
IfName string `json:"if"`
131-
// DNSServer is the name of the DNS server.
132-
DNSServer string `json:"resolver"`
133131
// IPRange is the range of IPs to use.
134132
IPRange string `json:"ipRange"`
135133
}

pkg/asset/installconfig/installconfig_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ func TestInstallConfigGenerate(t *testing.T) {
8787
network:
8888
if: ""
8989
ipRange: ""
90-
name: ""
91-
resolver: ""`,
90+
name: ""`,
9291
},
9392
}
9493
for _, tc := range cases {

pkg/types/installconfig.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,6 @@ type LibvirtNetwork struct {
107107
Name string `json:"name"`
108108
// IfName is the name of the network interface.
109109
IfName string `json:"if"`
110-
// DNSServer is the name of the DNS server.
111-
DNSServer string `json:"resolver"`
112110
// IPRange is the range of IPs to use.
113111
IPRange string `json:"ipRange"`
114112
}

0 commit comments

Comments
 (0)