Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 568 for podIps (0.15 sec)

  1. pkg/apis/core/v1/conversion_test.go

    		}
    		// match v1.PodIPs to core.PodIPs
    		for idx := range input.PodIPs {
    			if v1PodStatus.PodIPs[idx].IP != input.PodIPs[idx].IP {
    				t.Errorf("%v: Convert core.PodStatus to v1.PodStatus failed. Expected v1.PodStatus[%v]=%v but found %v", i, idx, input.PodIPs[idx].IP, v1PodStatus.PodIPs[idx].IP)
    			}
    		}
    	}
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 10 05:34:15 UTC 2023
    - 21.7K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/net_test.go

    	var podStatus corev1.PodStatus
    	if v6IP {
    		podStatus = corev1.PodStatus{
    			PodIP:  "e9ac:1e77:90ca:399f:4d6d:ece2:2f9b:3164",
    			PodIPs: []corev1.PodIP{{IP: "e9ac:1e77:90ca:399f:4d6d:ece2:2f9b:3164"}, {IP: "e9ac:1e77:90ca:399f:4d6d:ece2:2f9b:3165"}},
    		}
    	} else {
    		podStatus = corev1.PodStatus{
    			PodIP:  "2.2.2.2",
    			PodIPs: []corev1.PodIP{{IP: "2.2.2.2"}, {IP: "3.3.3.3"}},
    		}
    	}
    
    	return &corev1.Pod{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 05:10:23 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  3. cni/pkg/nodeagent/net.go

    	var addedIPSnapshot []netip.Addr
    
    	for _, pod := range ambientPods {
    		podIPs := util.GetPodIPsIfPresent(pod)
    		if len(podIPs) == 0 {
    			log.Warnf("pod %s does not appear to have any assigned IPs, not syncing with ipset", pod.Name)
    		} else {
    			addedIps, err := addPodToHostNSIpset(pod, podIPs, &s.hostsideProbeIPSet)
    			if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 05:10:23 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  4. pkg/apis/core/v1/conversion.go

    		return err
    	}
    
    	// If both fields (v1.PodIPs and v1.PodIP) are provided and differ, then PodIP is authoritative for compatibility with older kubelets
    	if (len(in.PodIP) > 0 && len(in.PodIPs) > 0) && (in.PodIP != in.PodIPs[0].IP) {
    		out.PodIPs = []core.PodIP{
    			{
    				IP: in.PodIP,
    			},
    		}
    	}
    	// at the this point, autoConvert copied v1.PodIPs -> core.PodIPs
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 19 22:30:55 UTC 2024
    - 19K bytes
    - Viewed (0)
  5. pkg/kubelet/kuberuntime/kuberuntime_sandbox.go

    			return nil
    		}
    		podIPs = append(podIPs, podSandbox.Network.Ip)
    	}
    
    	// pick additional ips, if cri reported them
    	for _, podIP := range podSandbox.Network.AdditionalIps {
    		if nil == netutils.ParseIPSloppy(podIP.Ip) {
    			klog.InfoS("Pod Sandbox reported an unparseable additional IP", "pod", klog.KRef(podNamespace, podName), "IP", podIP.Ip)
    			return nil
    		}
    		podIPs = append(podIPs, podIP.Ip)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/client-go/applyconfigurations/core/v1/podstatus.go

    	HostIPs                    []HostIPApplyConfiguration                 `json:"hostIPs,omitempty"`
    	PodIP                      *string                                    `json:"podIP,omitempty"`
    	PodIPs                     []PodIPApplyConfiguration                  `json:"podIPs,omitempty"`
    	StartTime                  *metav1.Time                               `json:"startTime,omitempty"`
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 14 01:43:16 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  7. pkg/registry/core/pod/storage/storage_test.go

    	}{
    		{
    			pod: api.Pod{
    				ObjectMeta: metav1.ObjectMeta{Name: "foo"},
    				Status:     api.PodStatus{PodIPs: []api.PodIP{{IP: expectedIP}}},
    			},
    			query:    "foo",
    			location: expectedIP,
    		},
    		{
    			pod: api.Pod{
    				ObjectMeta: metav1.ObjectMeta{Name: "foo"},
    				Status:     api.PodStatus{PodIPs: []api.PodIP{{IP: expectedIP}}},
    			},
    			query:    "foo:12345",
    			location: expectedIP + ":12345",
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 07:18:44 UTC 2024
    - 38.8K bytes
    - Viewed (0)
  8. cni/pkg/nodeagent/informers.go

    			// the CNI plugin chain, and have a PodIP.
    			//
    			// If PodIPs exists, it is preferred, otherwise fallback to PodIP.
    			//
    			// If we get to this point and have a pod that really and truly has no IP in either of those,
    			// it's not routable at this point and something is wrong/we should discard this event.
    			podIPs := util.GetPodIPsIfPresent(pod)
    			if len(podIPs) == 0 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 21:31:35 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  9. pkg/kubelet/pleg/generic_test.go

    	ctx := context.Background()
    	testCases := []struct {
    		name   string
    		podID  string
    		podIPs []string
    	}{
    		{
    			name:   "test-0",
    			podID:  "test-pod-0",
    			podIPs: []string{"192.168.1.5"},
    		},
    		{
    			name:   "tets-1",
    			podID:  "test-pod-1",
    			podIPs: []string{"192.168.1.5/24", "2000::"},
    		},
    	}
    
    	mockCtrl := gomock.NewController(t)
    	defer mockCtrl.Finish()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  10. pkg/registry/core/pod/strategy.go

    	}
    	podSpecificFieldsSet["status.phase"] = string(pod.Status.Phase)
    	// TODO: add podIPs as a downward API value(s) with proper format
    	podIP := ""
    	if len(pod.Status.PodIPs) > 0 {
    		podIP = string(pod.Status.PodIPs[0].IP)
    	}
    	podSpecificFieldsSet["status.podIP"] = podIP
    	podSpecificFieldsSet["status.nominatedNodeName"] = string(pod.Status.NominatedNodeName)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 17:51:48 UTC 2024
    - 29.8K bytes
    - Viewed (0)
Back to top