Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for podFullName (0.19 sec)

  1. pkg/kubelet/pod/pod_manager.go

    }
    
    func (pm *basicManager) GetPodByName(namespace, name string) (*v1.Pod, bool) {
    	podFullName := kubecontainer.BuildPodFullName(name, namespace)
    	return pm.GetPodByFullName(podFullName)
    }
    
    func (pm *basicManager) GetPodByFullName(podFullName string) (*v1.Pod, bool) {
    	pm.lock.RLock()
    	defer pm.lock.RUnlock()
    	pod, ok := pm.podByFullName[podFullName]
    	return pod, ok
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:00 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  2. pkg/kubelet/pod/testing/fake_mirror_client.go

    	fmc.mirrorPodLock.Lock()
    	defer fmc.mirrorPodLock.Unlock()
    	podFullName := kubecontainer.GetPodFullName(pod)
    	fmc.mirrorPods.Insert(podFullName)
    	fmc.createCounts[podFullName]++
    	return nil
    }
    
    // TODO (Robert Krawitz): Implement UID checking
    func (fmc *FakeMirrorClient) DeleteMirrorPod(podFullName string, _ *types.UID) (bool, error) {
    	fmc.mirrorPodLock.Lock()
    	defer fmc.mirrorPodLock.Unlock()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. pkg/kubelet/pod/mirror_client.go

    // routine simply returns false in that case.
    func (mc *basicMirrorClient) DeleteMirrorPod(podFullName string, uid *types.UID) (bool, error) {
    	if mc.apiserverClient == nil {
    		return false, nil
    	}
    	name, namespace, err := kubecontainer.ParsePodFullName(podFullName)
    	if err != nil {
    		klog.ErrorS(err, "Failed to parse a pod full name", "podFullName", podFullName)
    		return false, err
    	}
    
    	var uidValue types.UID
    	if uid != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 21 11:38:40 UTC 2021
    - 5.5K bytes
    - Viewed (0)
  4. pkg/kubelet/kuberuntime/legacy_test.go

    	as := assert.New(t)
    	containerLogsDir := "/foo/bar"
    	podFullName := randStringBytes(128)
    	containerName := randStringBytes(70)
    	containerID := randStringBytes(80)
    	// The file name cannot exceed 255 characters. Since .log suffix is required, the prefix cannot exceed 251 characters.
    	expectedPath := filepath.Join(containerLogsDir, fmt.Sprintf("%s_%s-%s", podFullName, containerName, containerID)[:251]+".log")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 10 12:34:58 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  5. pkg/kubelet/server/server_test.go

    	return fk.containerLogsFunc(ctx, podFullName, containerName, logOptions, stdout, stderr)
    }
    
    func (fk *fakeKubelet) GetHostname() string {
    	return fk.hostnameFunc()
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  6. pkg/kubelet/pod/mirror_client_test.go

    		"bar-bar_foo":     {Name: "bar-bar", Namespace: "foo"},
    	}
    	failedCases := []string{"barfoo", "bar_foo_foo", "", "bar_", "_foo"}
    
    	for podFullName, expected := range successfulCases {
    		name, namespace, err := kubecontainer.ParsePodFullName(podFullName)
    		if err != nil {
    			t.Errorf("unexpected error when parsing the full name: %v", err)
    			continue
    		}
    		if name != expected.Name || namespace != expected.Namespace {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 08 12:44:09 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  7. pkg/kubelet/kuberuntime/legacy.go

    	}
    	return containerIDWithoutSuffix, nil
    }
    
    func logSymlink(containerLogsDir, podFullName, containerName, containerID string) string {
    	suffix := fmt.Sprintf(".%s", legacyLogSuffix)
    	logPath := fmt.Sprintf("%s_%s-%s", podFullName, containerName, containerID)
    	// Length of a filename cannot exceed 255 characters in ext4 on Linux.
    	if len(logPath) > ext4MaxFileNameLen-len(suffix) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 16:05:48 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  8. pkg/kubelet/pod/testing/mock_manager.go

    func (m *MockManager) GetPodByFullName(podFullName string) (*v1.Pod, bool) {
    	m.ctrl.T.Helper()
    	ret := m.ctrl.Call(m, "GetPodByFullName", podFullName)
    	ret0, _ := ret[0].(*v1.Pod)
    	ret1, _ := ret[1].(bool)
    	return ret0, ret1
    }
    
    // GetPodByFullName indicates an expected call of GetPodByFullName.
    func (mr *MockManagerMockRecorder) GetPodByFullName(podFullName any) *gomock.Call {
    	mr.mock.ctrl.T.Helper()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  9. pkg/kubelet/kubelet_pods.go

    	// pod worker)
    	klog.V(3).InfoS("Clean up orphaned mirror pods")
    	for _, podFullname := range orphanedMirrorPodFullnames {
    		if !kl.podWorkers.IsPodForMirrorPodTerminatingByFullName(podFullname) {
    			_, err := kl.mirrorPodClient.DeleteMirrorPod(podFullname, nil)
    			if err != nil {
    				klog.ErrorS(err, "Encountered error when deleting mirror pod", "podName", podFullname)
    			} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
  10. pkg/kubelet/container/runtime.go

    // if not found.
    func (p Pods) FindPod(podFullName string, podUID types.UID) Pod {
    	if len(podFullName) > 0 {
    		return p.FindPodByFullName(podFullName)
    	}
    	return p.FindPodByID(podUID)
    }
    
    // FindContainerByName returns a container in the pod with the given name.
    // When there are multiple containers with the same name, the first match will
    // be returned.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 27.8K bytes
    - Viewed (0)
Back to top