@@ -459,12 +459,14 @@ func TestPodSource(t *testing.T) {
459
459
},
460
460
},
461
461
{
462
- "pods with hostNetwore=false should be ignored" ,
462
+ "pods with hostNetwore=false should not be ignored" ,
463
463
"" ,
464
464
"" ,
465
465
[]* endpoint.Endpoint {
466
466
{DNSName : "a.foo.example.org" , Targets : endpoint.Targets {"54.10.11.1" }, RecordType : endpoint .RecordTypeA },
467
467
{DNSName : "internal.a.foo.example.org" , Targets : endpoint.Targets {"10.0.1.1" }, RecordType : endpoint .RecordTypeA },
468
+ {DNSName : "b.foo.example.org" , Targets : endpoint.Targets {"54.10.11.2" }, RecordType : endpoint .RecordTypeA },
469
+ {DNSName : "internal.b.foo.example.org" , Targets : endpoint.Targets {"10.0.1.2" }, RecordType : endpoint .RecordTypeA },
468
470
},
469
471
false ,
470
472
[]* corev1.Node {
@@ -514,16 +516,16 @@ func TestPodSource(t *testing.T) {
514
516
Name : "my-pod2" ,
515
517
Namespace : "kube-system" ,
516
518
Annotations : map [string ]string {
517
- internalHostnameAnnotationKey : "internal.a .foo.example.org" ,
518
- hostnameAnnotationKey : "a .foo.example.org" ,
519
+ internalHostnameAnnotationKey : "internal.b .foo.example.org" ,
520
+ hostnameAnnotationKey : "b .foo.example.org" ,
519
521
},
520
522
},
521
523
Spec : corev1.PodSpec {
522
524
HostNetwork : false ,
523
525
NodeName : "my-node2" ,
524
526
},
525
527
Status : corev1.PodStatus {
526
- PodIP : "100 .0.1.2" ,
528
+ PodIP : "10 .0.1.2" ,
527
529
},
528
530
},
529
531
},
0 commit comments