Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 345 for podMap (0.15 sec)

  1. pkg/controller/volume/attachdetach/cache/desired_state_of_world.go

    					}})
    		}
    	}
    
    	return volumesToAttach
    }
    
    // Construct a list of v1.Pod objects from the given pod map
    func getPodsFromMap(podMap map[types.UniquePodName]pod) []*v1.Pod {
    	pods := make([]*v1.Pod, 0, len(podMap))
    	for _, pod := range podMap {
    		pods = append(pods, pod.podObj)
    	}
    	return pods
    }
    
    func (dsw *desiredStateOfWorld) GetPodToAdd() map[types.UniquePodName]PodToAdd {
    	dsw.RLock()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 10:42:15 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  2. pkg/kubelet/volumemanager/cache/actual_state_of_world.go

    		podObj.mounter = mounter
    	}
    
    	asw.attachedVolumes[volumeName].mountedPods[podName] = podObj
    
    	podMap, ok := asw.foundDuringReconstruction[opts.VolumeName]
    	if !ok {
    		podMap = map[volumetypes.UniquePodName]types.UID{}
    	}
    	podMap[opts.PodName] = opts.PodUID
    	asw.foundDuringReconstruction[opts.VolumeName] = podMap
    	return true, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 09 07:34:33 UTC 2024
    - 45.8K bytes
    - Viewed (0)
  3. pkg/kubelet/stats/cri_stats_provider.go

    			Name:      pod.GetMetadata().GetName(),
    			Namespace: pod.GetMetadata().GetNamespace(),
    			// UID is intentionally left empty.
    		}
    		podMap[refID] = append(podMap[refID], pod)
    	}
    
    	result := make([]*runtimeapi.PodSandbox, 0)
    	for _, refs := range podMap {
    		if len(refs) == 1 {
    			result = append(result, refs[0])
    			continue
    		}
    		found := false
    		for i := 0; i < len(refs); i++ {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 18:46:33 UTC 2023
    - 35.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/noder/posmap.go

    	"cmd/internal/src"
    )
    
    // A posMap handles mapping from syntax.Pos to src.XPos.
    type posMap struct {
    	bases map[*syntax.PosBase]*src.PosBase
    	cache struct {
    		last *syntax.PosBase
    		base *src.PosBase
    	}
    }
    
    type poser interface{ Pos() syntax.Pos }
    type ender interface{ End() syntax.Pos }
    
    func (m *posMap) pos(p poser) src.XPos { return m.makeXPos(p.Pos()) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 27 03:43:35 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/client-go/applyconfigurations/core/v1/podip.go

    package v1
    
    // PodIPApplyConfiguration represents an declarative configuration of the PodIP type for use
    // with apply.
    type PodIPApplyConfiguration struct {
    	IP *string `json:"ip,omitempty"`
    }
    
    // PodIPApplyConfiguration constructs an declarative configuration of the PodIP type for use with
    // apply.
    func PodIP() *PodIPApplyConfiguration {
    	return &PodIPApplyConfiguration{}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 04 18:31:34 UTC 2021
    - 1.3K bytes
    - Viewed (0)
  6. pkg/apis/core/v1/conversion_test.go

    		// Primary IP was not set..
    		if len(v1PodStatus.PodIP) == 0 {
    			t.Errorf("%v: Convert core.PodStatus to v1.PodStatus failed out.PodIP is empty, should be %v", i, v1PodStatus.PodIP)
    		}
    
    		// Primary should always == in.PodIPs[0].IP
    		if len(input.PodIPs) > 0 && v1PodStatus.PodIP != input.PodIPs[0].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)
  7. pkg/kubelet/kubelet_pods_test.go

    					EnableServiceLinks: tc.enableServiceLinks,
    				},
    			}
    			podIP := ""
    			if len(tc.podIPs) > 0 {
    				podIP = tc.podIPs[0]
    			}
    			if tc.staticPod {
    				testPod.Annotations[kubetypes.ConfigSourceAnnotationKey] = "file"
    			}
    
    			result, err := kl.makeEnvironmentVariables(testPod, tc.container, podIP, tc.podIPs)
    			select {
    			case e := <-fakeRecorder.Events:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 198.8K bytes
    - Viewed (0)
  8. pkg/kubelet/metrics/collectors/resource_metrics_test.go

    				container_cpu_usage_seconds_total{container="container_a",namespace="namespace_a",pod="pod_a"} 10 1624396278302
    				container_cpu_usage_seconds_total{container="container_a",namespace="namespace_b",pod="pod_b"} 10 1624396278302
    				container_cpu_usage_seconds_total{container="container_b",namespace="namespace_a",pod="pod_a"} 10 1624396278302
    				# HELP container_memory_working_set_bytes [STABLE] Current working set of the container in bytes
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 15.3K bytes
    - Viewed (1)
  9. pkg/kube/krt/join_test.go

    	}
    	sec.Create(se)
    	assert.EventuallyEqual(t, fetch, []SimpleEndpoint{
    		{pod.Name, se.Name, pod.Namespace, pod.Status.PodIP},
    		{pod2.Name, se.Name, pod2.Namespace, pod2.Status.PodIP},
    		{pod.Name, svc.Name, pod.Namespace, pod.Status.PodIP},
    		{pod2.Name, svc.Name, pod2.Namespace, pod2.Status.PodIP},
    	})
    }
    
    func TestCollectionJoinSync(t *testing.T) {
    	c := kube.NewFakeClient(&corev1.Pod{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 09 19:55:53 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  10. pkg/kube/krt/collection_test.go

    			Labels:    map[string]string{"app": "foo"},
    		},
    		Status: corev1.PodStatus{PodIP: "2.3.4.5"},
    	}
    	pc.CreateOrUpdateStatus(pod)
    	pc.CreateOrUpdateStatus(pod2)
    	assert.EventuallyEqual(t, fetcherSorted(SimpleEndpoints), []SimpleEndpoint{
    		{pod2.Name, svc.Name, pod2.Namespace, pod2.Status.PodIP},
    		{pod.Name, svc.Name, pod.Namespace, pod.Status.PodIP},
    	})
    }
    
    type PodSizeCount struct {
    	Named
    	MatchingSizes int
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 28 04:22:19 UTC 2024
    - 14.6K bytes
    - Viewed (0)
Back to top