Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 77 for pod (0.1 sec)

  1. cni/pkg/util/podutil_test.go

    	pod := &corev1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "test",
    			Namespace: "test",
    		},
    		Spec: corev1.PodSpec{
    			NodeName: "derp",
    		},
    		Status: corev1.PodStatus{
    			PodIP:  "2.2.2.2",
    			PodIPs: []corev1.PodIP{{IP: "2.2.2.2"}, {IP: "3.3.3.3"}},
    		},
    	}
    
    	podIPs := GetPodIPsIfPresent(pod)
    	assert.Equal(t, len(podIPs), 2)
    }
    
    func TestGetPodIPsIfNoPodIPPresent(t *testing.T) {
    	pod := &corev1.Pod{
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. istioctl/pkg/injector/injector-list_test.go

    )
    
    func Test_extractRevisionFromPod(t *testing.T) {
    	cases := []struct {
    		name             string
    		pod              *corev1.Pod
    		expectedRevision string
    	}{
    		{
    			name:             "no rev",
    			pod:              &corev1.Pod{},
    			expectedRevision: "",
    		},
    		{
    			name: "has rev annotation",
    			pod: &corev1.Pod{
    				ObjectMeta: metav1.ObjectMeta{
    					Annotations: map[string]string{
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  3. cni/pkg/util/podutil.go

    func PodRedirectionActive(pod *corev1.Pod) bool {
    	return pod.GetAnnotations()[annotation.AmbientRedirection.Name] == constants.AmbientRedirectionEnabled
    }
    
    func podHasSidecar(pod *corev1.Pod) bool {
    	if _, f := pod.GetAnnotations()[annotation.SidecarStatus.Name]; f {
    		return true
    	}
    	return false
    }
    
    func IsZtunnelPod(systemNs string, pod *corev1.Pod) bool {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/pod_cache_test.go

    func TestDoubleTake(t *testing.T) {
    	p := newPodNetnsCache(openNsTestOverride)
    
    	pod := &corev1.Pod{ObjectMeta: metav1.ObjectMeta{UID: "testUID"}}
    	ns := newFakeNs(inc())
    	wl := WorkloadInfo{
    		Workload: podToWorkload(pod),
    		Netns:    ns,
    	}
    	netns1 := p.UpsertPodCacheWithNetns(string(pod.UID), wl)
    	netnsTaken := p.Take(string(pod.UID))
    	if netns1 != netnsTaken {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Aug 14 19:36:19 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/cni-watcher.go

    	const maxStaleRetries = 10
    	const msInterval = 10
    	retries := 0
    	var ambientPod *corev1.Pod
    	var err error
    
    	// The plugin already consulted the k8s API - but on this end handler caches may be stale, so retry a few times if we get no pod.
    	// if err is returned, we couldn't find the pod
    	// if nil is returned, we found it but ambient is not enabled
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Tue Jul 02 18:48:50 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  6. architecture/ambient/ztunnel-cni-lifecycle.md

    An alternative flow is when a pod is enrolled into ambient mode after it starts up.
    In this case, the CNI Agent is watching for Pod events from the API server directly and performing the same setup.
    Note this is done while the Pod is running, unlike the CNI plugin flow which occurs before the Pod starts.
    
    Once the network is configured, the CNI Agent will signal to Ztunnel to start running within the Pod.
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Jul 17 23:10:17 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  7. cni/pkg/repair/repair_test_helpers.go

    	Annotations         map[string]string
    	InitContainerName   string
    	InitContainerStatus *corev1.ContainerStatus
    	NodeName            string
    }
    
    func makePod(args makePodArgs) *corev1.Pod {
    	pod := &corev1.Pod{
    		TypeMeta: metav1.TypeMeta{
    			Kind:       "Pod",
    			APIVersion: "v1",
    		},
    		ObjectMeta: metav1.ObjectMeta{
    			Name:        args.PodName,
    			Namespace:   "default",
    			Labels:      args.Labels,
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri May 12 17:39:53 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  8. cni/pkg/nodeagent/podcgroupns_test.go

    )
    
    func TestWithProcFs(t *testing.T) {
    	n := NewPodNetnsProcFinder(fakeFs())
    	pod := &corev1.Pod{ObjectMeta: metav1.ObjectMeta{
    		Name:      "foo",
    		Namespace: "bar",
    		UID:       types.UID("863b91d4-4b68-4efa-917f-4b560e3e86aa"),
    	}}
    	podUIDNetns, err := n.FindNetnsForPods(map[types.UID]*corev1.Pod{
    		pod.UID: pod,
    	})
    	if err != nil {
    		panic(err)
    	}
    	defer podUIDNetns.Close()
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Oct 24 17:36:49 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  9. common-protos/k8s.io/api/imagepolicy/v1alpha1/generated.proto

      // +optional
      optional ImageReviewStatus status = 3;
    }
    
    // ImageReviewContainerSpec is a description of a container within the pod creation request.
    message ImageReviewContainerSpec {
      // This can be in the form image:tag or image@SHA:012345679abcdef.
      // +optional
      optional string image = 1;
    }
    
    // ImageReviewSpec is a description of the pod creation request.
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  10. common-protos/k8s.io/api/node/v1/generated.proto

      // in a pod.
      // The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements,
      // and is immutable.
      optional string handler = 2;
    
      // overhead represents the resource overhead associated with running a pod for a
      // given RuntimeClass. For more details, see
      //  https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/
      // +optional
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 4.4K bytes
    - Viewed (0)
Back to top