kubenet for ipv6 dualstack

This commit is contained in:
Khaled Henidak(Kal)
2019-07-02 15:45:42 +00:00
parent 404dbbcfe0
commit dba434c4ba
25 changed files with 718 additions and 326 deletions

View File

@@ -63,6 +63,14 @@ func TestDecodeSinglePod(t *testing.T) {
SchedulerName: core.DefaultSchedulerName,
EnableServiceLinks: &enableServiceLinks,
},
Status: v1.PodStatus{
PodIP: "1.2.3.4",
PodIPs: []v1.PodIP{
{
IP: "1.2.3.4",
},
},
},
}
json, err := runtime.Encode(testapi.Default.Codec(), pod)
if err != nil {
@@ -128,6 +136,14 @@ func TestDecodePodList(t *testing.T) {
SchedulerName: core.DefaultSchedulerName,
EnableServiceLinks: &enableServiceLinks,
},
Status: v1.PodStatus{
PodIP: "1.2.3.4",
PodIPs: []v1.PodIP{
{
IP: "1.2.3.4",
},
},
},
}
podList := &v1.PodList{
Items: []v1.Pod{*pod},