Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 58 for poduid (0.09 sec)

  1. cni/pkg/nodeagent/server_test.go

    	var podUID string = string(pod.ObjectMeta.UID)
    	ipProto := uint8(unix.IPPROTO_TCP)
    
    	fakeIPSetDeps.On("addIP",
    		"foo-v4",
    		netip.MustParseAddr("99.9.9.9"),
    		ipProto,
    		podUID,
    		false,
    	).Return(nil)
    
    	fakeIPSetDeps.On("addIP",
    		"foo-v4",
    		netip.MustParseAddr("2.2.2.2"),
    		ipProto,
    		podUID,
    		false,
    	).Return(nil)
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/podcgroupns.go

    			if matchResults != nil {
    				return "", "", false
    			}
    			matchResults = matches
    		}
    	}
    
    	if matchResults != nil {
    		var podUID types.UID
    		if matchResults["poduid"] != "" {
    			podUID = canonicalizePodUID(matchResults["poduid"])
    		}
    		return podUID, matchResults["containerid"], true
    	}
    	return "", "", false
    }
    
    // canonicalizePodUID converts a Pod UID, as represented in a cgroup path, into
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Apr 12 21:47:31 UTC 2024
    - 11K bytes
    - Viewed (0)
  3. cni/pkg/nodeagent/podcgroupns_test.go

    		},
    	} {
    		t.Run(tt.name, func(t *testing.T) {
    			podUID, containerID, err := getPodUIDAndContainerIDFromCGroups(makeCGroups(tt.cgroupPaths))
    
    			if tt.expectMsg != "" {
    				assert.Equal(t, tt.expectMsg, err.Error())
    				return
    			}
    			assert.Equal(t, tt.expectPodUID, podUID)
    			assert.Equal(t, tt.expectContainerID, containerID)
    		})
    	}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Oct 24 17:36:49 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/server.go

    	// - the CmdAdd comes back thru here with a new IP
    	// - we will never clean up that old IP that we "lost"
    	// To fix this we probably need to impl CmdDel + manage our own podUID/IP mapping.
    	if retErr == nil {
    		// Handle node healthcheck probe rewrites
    		_, err = s.addPodToHostNSIpset(pod, podIPs)
    		if err != nil {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Sep 25 20:54:34 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  5. common-protos/k8s.io/api/storage/v1beta1/generated.proto

      //
      // This field is immutable.
      //
      // +optional
      optional bool attachRequired = 1;
    
      // podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.)
      // during mount operations, if set to true.
      // If set to false, pod information will not be passed on mount.
      // Default is false.
      //
      // The CSI driver specifies podInfoOnMount as part of driver deployment.
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  6. common-protos/k8s.io/api/storage/v1/generated.proto

      //
      // This field is immutable.
      //
      // +optional
      optional bool attachRequired = 1;
    
      // podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.)
      // during mount operations, if set to true.
      // If set to false, pod information will not be passed on mount.
      // Default is false.
      //
      // The CSI driver specifies podInfoOnMount as part of driver deployment.
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  7. cni/pkg/util/podutil.go

    		return nil
    	}
    	return err
    }
    
    // Get any IPs currently assigned to the Pod.
    //
    // If 'PodIPs' exists, it is preferred (and should be guaranteed to contain the address in 'PodIP'),
    // otherwise fallback to 'PodIP'.
    //
    // Note that very early in the pod's lifecycle (before all the node CNI plugin invocations finish)
    // K8S may not have received the pod IPs yet, and may not report the pod as having any.
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  8. CHANGELOG/CHANGELOG-1.32.md

    - Optimize code, filter podUID is empty string when call this `getPodAndContainerForDevice` method. ([#126997](https://github.com/kubernetes/kubernetes/pull/126997), [@lengrongfu](https://github.com/lengrongfu)) [SIG Node]
    Registered: Fri Nov 01 09:05:11 UTC 2024
    - Last Modified: Tue Oct 29 20:17:52 UTC 2024
    - 121.6K bytes
    - Viewed (0)
  9. 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: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Jul 25 16:13:38 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  10. cni/pkg/nodeagent/informers_test.go

    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "test",
    			Namespace: "test",
    		},
    		Spec: corev1.PodSpec{
    			NodeName: NodeName,
    		},
    		Status: corev1.PodStatus{
    			PodIPs: []corev1.PodIP{},
    			PodIP:  "",
    		},
    	}
    	ns := &corev1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: "test"}}
    
    	client := kube.NewFakeClient(ns, pod)
    
    	fs := &fakeServer{}
    
    	server := getFakeDP(fs, client.Kube())
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 22.1K bytes
    - Viewed (0)
Back to top