Skip to content

Commit 99b60d2

Browse files
committed
Change IPs to match hyperkube
1 parent afe4368 commit 99b60d2

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

.travis/kubernetes/dns-test.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ metadata:
9999
spec:
100100
selector:
101101
app: app-1-a
102-
clusterIP: 10.3.0.100
102+
clusterIP: 10.0.0.100
103103
ports:
104104
- name: http
105105
port: 80
@@ -116,7 +116,7 @@ metadata:
116116
spec:
117117
selector:
118118
app: app-1-b
119-
clusterIP: 10.3.0.110
119+
clusterIP: 10.0.0.110
120120
ports:
121121
- name: http
122122
port: 80
@@ -130,7 +130,7 @@ metadata:
130130
spec:
131131
selector:
132132
app: app-c
133-
clusterIP: 10.3.0.115
133+
clusterIP: 10.0.0.115
134134
ports:
135135
- name: c-port
136136
port: 1234
@@ -144,7 +144,7 @@ metadata:
144144
spec:
145145
selector:
146146
app: app-c
147-
clusterIP: 10.3.0.120
147+
clusterIP: 10.0.0.120
148148
ports:
149149
- name: c-port
150150
port: 1234

test/kubernetes_test.go

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var dnsTestCases = []test.Case{
2020
Qname: "svc-1-a.test-1.svc.cluster.local.", Qtype: dns.TypeA,
2121
Rcode: dns.RcodeSuccess,
2222
Answer: []dns.RR{
23-
test.A("svc-1-a.test-1.svc.cluster.local. 303 IN A 10.3.0.100"),
23+
test.A("svc-1-a.test-1.svc.cluster.local. 303 IN A 10.0.0.100"),
2424
},
2525
},
2626
{
@@ -32,14 +32,14 @@ var dnsTestCases = []test.Case{
3232
Qname: "svc-1-a.*.svc.cluster.local.", Qtype: dns.TypeA,
3333
Rcode: dns.RcodeSuccess,
3434
Answer: []dns.RR{
35-
test.A("svc-1-a.test-1.svc.cluster.local. 303 IN A 10.3.0.100"),
35+
test.A("svc-1-a.test-1.svc.cluster.local. 303 IN A 10.0.0.100"),
3636
},
3737
},
3838
{
3939
Qname: "svc-1-a.any.svc.cluster.local.", Qtype: dns.TypeA,
4040
Rcode: dns.RcodeSuccess,
4141
Answer: []dns.RR{
42-
test.A("svc-1-a.test-1.svc.cluster.local. 303 IN A 10.3.0.100"),
42+
test.A("svc-1-a.test-1.svc.cluster.local. 303 IN A 10.0.0.100"),
4343
},
4444
},
4545
{
@@ -56,18 +56,18 @@ var dnsTestCases = []test.Case{
5656
Qname: "*.test-1.svc.cluster.local.", Qtype: dns.TypeA,
5757
Rcode: dns.RcodeSuccess,
5858
Answer: []dns.RR{
59-
test.A("svc-1-a.test-1.svc.cluster.local. 303 IN A 10.3.0.100"),
60-
test.A("svc-1-b.test-1.svc.cluster.local. 303 IN A 10.3.0.110"),
61-
test.A("svc-c.test-1.svc.cluster.local. 303 IN A 10.3.0.115"),
59+
test.A("svc-1-a.test-1.svc.cluster.local. 303 IN A 10.0.0.100"),
60+
test.A("svc-1-b.test-1.svc.cluster.local. 303 IN A 10.0.0.110"),
61+
test.A("svc-c.test-1.svc.cluster.local. 303 IN A 10.0.0.115"),
6262
},
6363
},
6464
{
6565
Qname: "any.test-1.svc.cluster.local.", Qtype: dns.TypeA,
6666
Rcode: dns.RcodeSuccess,
6767
Answer: []dns.RR{
68-
test.A("svc-1-a.test-1.svc.cluster.local. 303 IN A 10.3.0.100"),
69-
test.A("svc-1-b.test-1.svc.cluster.local. 303 IN A 10.3.0.110"),
70-
test.A("svc-c.test-1.svc.cluster.local. 303 IN A 10.3.0.115"),
68+
test.A("svc-1-a.test-1.svc.cluster.local. 303 IN A 10.0.0.100"),
69+
test.A("svc-1-b.test-1.svc.cluster.local. 303 IN A 10.0.0.110"),
70+
test.A("svc-c.test-1.svc.cluster.local. 303 IN A 10.0.0.115"),
7171
},
7272
},
7373
{
@@ -84,9 +84,9 @@ var dnsTestCases = []test.Case{
8484
Qname: "*.*.svc.cluster.local.", Qtype: dns.TypeA,
8585
Rcode: dns.RcodeSuccess,
8686
Answer: []dns.RR{
87-
test.A("svc-1-a.test-1.svc.cluster.local. 303 IN A 10.3.0.100"),
88-
test.A("svc-1-b.test-1.svc.cluster.local. 303 IN A 10.3.0.110"),
89-
test.A("svc-c.test-1.svc.cluster.local. 303 IN A 10.3.0.115"),
87+
test.A("svc-1-a.test-1.svc.cluster.local. 303 IN A 10.0.0.100"),
88+
test.A("svc-1-b.test-1.svc.cluster.local. 303 IN A 10.0.0.110"),
89+
test.A("svc-c.test-1.svc.cluster.local. 303 IN A 10.0.0.115"),
9090
},
9191
},
9292
//TODO: Fix below to all use test.SRV not test.A!
@@ -170,22 +170,22 @@ var dnsTestCases = []test.Case{
170170
},
171171
},
172172
{
173-
Qname: "123.0.3.10.in-addr.arpa.", Qtype: dns.TypePTR,
173+
Qname: "123.0.0.10.in-addr.arpa.", Qtype: dns.TypePTR,
174174
Rcode: dns.RcodeSuccess,
175175
Answer: []dns.RR{},
176176
},
177177
{
178-
Qname: "100.0.3.10.in-addr.arpa.", Qtype: dns.TypePTR,
178+
Qname: "100.0.0.10.in-addr.arpa.", Qtype: dns.TypePTR,
179179
Rcode: dns.RcodeSuccess,
180180
Answer: []dns.RR{
181-
test.PTR("100.0.3.10.in-addr.arpa. 303 IN PTR svc-1-a.test-1.svc.cluster.local."),
181+
test.PTR("100.0.0.10.in-addr.arpa. 303 IN PTR svc-1-a.test-1.svc.cluster.local."),
182182
},
183183
},
184184
{
185-
Qname: "115.0.3.10.in-addr.arpa.", Qtype: dns.TypePTR,
185+
Qname: "115.0.0.10.in-addr.arpa.", Qtype: dns.TypePTR,
186186
Rcode: dns.RcodeSuccess,
187187
Answer: []dns.RR{
188-
test.PTR("115.0.3.10.in-addr.arpa. 303 IN PTR svc-c.test-1.svc.cluster.local."),
188+
test.PTR("115.0.0.10.in-addr.arpa. 303 IN PTR svc-c.test-1.svc.cluster.local."),
189189
},
190190
},
191191
}

0 commit comments

Comments
 (0)