Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 94 for podAdd (0.12 sec)

  1. pkg/kubelet/cm/cpumanager/state/state_checkpoint.go

    	}
    	for containerID, cset := range src.Entries {
    		podUID, containerName, err := sc.initialContainers.GetContainerRef(containerID)
    		if err != nil {
    			return fmt.Errorf("containerID '%v' not found in initial containers list", containerID)
    		}
    		if dst.Entries == nil {
    			dst.Entries = make(map[string]map[string]string)
    		}
    		if _, exists := dst.Entries[podUID]; !exists {
    			dst.Entries[podUID] = make(map[string]string)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 13 00:59:30 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/topologymanager/fake_topology_manager_test.go

    		name          string
    		containerName string
    		podUID        string
    		expected      TopologyHint
    	}{
    		{
    			name:          "Case1",
    			containerName: "nginx",
    			podUID:        "0aafa4c4-38e8-11e9-bcb1-a4bf01040474",
    			expected:      TopologyHint{},
    		},
    	}
    	for _, tc := range tcases {
    		fm := fakeManager{}
    		actual := fm.GetAffinity(tc.podUID, tc.containerName)
    		if !reflect.DeepEqual(actual, tc.expected) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 10 11:44:15 UTC 2021
    - 2.8K bytes
    - Viewed (0)
  3. pkg/kubelet/util/pod_startup_latency_tracker.go

    type PodStartupLatencyTracker interface {
    	ObservedPodOnWatch(pod *v1.Pod, when time.Time)
    	RecordImageStartedPulling(podUID types.UID)
    	RecordImageFinishedPulling(podUID types.UID)
    	RecordStatusUpdated(pod *v1.Pod)
    	DeletePodStartupState(podUID types.UID)
    }
    
    type basicPodStartupLatencyTracker struct {
    	// protect against concurrent read and write on pods map
    	lock sync.Mutex
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 15 06:09:49 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/helpers.go

    			continue
    		}
    		podUID := podSandboxMap[c.PodSandboxId]
    		containerMap.Add(podUID, c.Metadata.Name, c.Id)
    		if c.State == runtimeapi.ContainerState_CONTAINER_RUNNING {
    			klog.V(4).InfoS("Container reported running", "podSandboxId", c.PodSandboxId, "podUID", podUID, "containerName", c.Metadata.Name, "containerId", c.Id)
    			runningSet.Insert(c.Id)
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 27 13:02:15 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  5. pkg/kubelet/cm/pod_container_manager_linux_test.go

    			expectedUID:    types.UID(""),
    		},
    		{
    			input:          NewCgroupName(qosContainersInfo.Guaranteed, GetPodCgroupNameSuffix(podUID)),
    			expectedResult: true,
    			expectedUID:    podUID,
    		},
    		{
    			input:          NewCgroupName(qosContainersInfo.Guaranteed, GetPodCgroupNameSuffix(podUID), "container.scope"),
    			expectedResult: false,
    			expectedUID:    types.UID(""),
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 08 13:06:38 UTC 2022
    - 8.9K bytes
    - Viewed (0)
  6. pkg/kubelet/container/cache_test.go

    	podID, status := getTestPodIDAndStatus(3)
    	cache.Set(podID, status, nil, time.Time{})
    	actualStatus, actualErr := cache.Get(podID)
    	assert.Equal(t, status, actualStatus)
    	assert.Equal(t, nil, actualErr)
    	// Delete the pod from cache, and verify that we get an empty status.
    	cache.Delete(podID)
    	expectedStatus := &PodStatus{ID: podID}
    	actualStatus, actualErr = cache.Get(podID)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 24 20:23:12 UTC 2020
    - 6K bytes
    - Viewed (0)
  7. pkg/volume/flexvolume/volume.go

    	execPath string
    	// mounter provides the interface that is used to mount the actual
    	// block device.
    	mounter mount.Interface
    	// podName is the name of the pod, if available.
    	podName string
    	// podUID is the UID of the pod.
    	podUID types.UID
    	// podNamespace is the namespace of the pod, if available.
    	podNamespace string
    	// podServiceAccountName is the service account name of the pod, if available.
    	podServiceAccountName string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Sep 17 04:51:24 UTC 2020
    - 1.6K bytes
    - Viewed (0)
  8. pkg/kubelet/cm/memorymanager/state/state_checkpoint.go

    	return sc.cache.GetMachineState()
    }
    
    // GetMemoryBlocks returns memory assignments of a container
    func (sc *stateCheckpoint) GetMemoryBlocks(podUID string, containerName string) []Block {
    	sc.RLock()
    	defer sc.RUnlock()
    
    	return sc.cache.GetMemoryBlocks(podUID, containerName)
    }
    
    // GetMemoryAssignments returns ContainerMemoryAssignments
    func (sc *stateCheckpoint) GetMemoryAssignments() ContainerMemoryAssignments {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 16:05:48 UTC 2022
    - 5.3K bytes
    - Viewed (0)
  9. pkg/volume/flexvolume/plugin.go

    func (plugin *flexVolumePlugin) NewUnmounter(volName string, podUID types.UID) (volume.Unmounter, error) {
    	return plugin.newUnmounterInternal(volName, podUID, plugin.host.GetMounter(plugin.GetPluginName()), plugin.runner)
    }
    
    // newUnmounterInternal is the internal unmounter routine to clean the volume.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  10. pkg/kubelet/stats/host_stats_provider_fake.go

    		fakeStats:   fakeStats,
    		osInterface: osInterface,
    	}
    }
    
    func (f *fakeHostStatsProvider) getPodLogStats(podNamespace, podName string, podUID types.UID, rootFsInfo *cadvisorapiv2.FsInfo) (*statsapi.FsStats, error) {
    	path := kuberuntime.BuildPodLogsDirectory("/var/log/kube/pods/", podNamespace, podName, podUID)
    	files, err := f.osInterface.ReadDir(path)
    	if err != nil {
    		return nil, err
    	}
    	var results []volume.MetricsProvider
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 17:57:17 UTC 2024
    - 3.9K bytes
    - Viewed (0)
Back to top