plugin/kubernetes: set TTL on pod responses (#1239)
The TTL was still zero, instead it should adhere to the k.ttl setting. Change this and update tests to match.
This commit is contained in:
parent
99dd8f99f3
commit
621dd36f6d
3 changed files with 5 additions and 5 deletions
|
@ -15,14 +15,14 @@ var podModeInsecureCases = []test.Case{
|
|||
Qname: "10-240-0-1.podns.pod.cluster.local.", Qtype: dns.TypeA,
|
||||
Rcode: dns.RcodeSuccess,
|
||||
Answer: []dns.RR{
|
||||
test.A("10-240-0-1.podns.pod.cluster.local. 0 IN A 10.240.0.1"),
|
||||
test.A("10-240-0-1.podns.pod.cluster.local. 5 IN A 10.240.0.1"),
|
||||
},
|
||||
},
|
||||
{
|
||||
Qname: "172-0-0-2.podns.pod.cluster.local.", Qtype: dns.TypeA,
|
||||
Rcode: dns.RcodeSuccess,
|
||||
Answer: []dns.RR{
|
||||
test.A("172-0-0-2.podns.pod.cluster.local. 0 IN A 172.0.0.2"),
|
||||
test.A("172-0-0-2.podns.pod.cluster.local. 5 IN A 172.0.0.2"),
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue