Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GetPodFullName (0.28 sec)

  1. pkg/scheduler/util/utils.go

    	"k8s.io/klog/v2"
    	extenderv1 "k8s.io/kube-scheduler/extender/v1"
    	v1helper "k8s.io/kubernetes/pkg/apis/core/v1/helper"
    )
    
    // GetPodFullName returns a name that uniquely identifies a pod.
    func GetPodFullName(pod *v1.Pod) string {
    	// Use underscore as the delimiter because it is not allowed in pod name
    	// (DNS subdomain format).
    	return pod.Name + "_" + pod.Namespace
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Sep 21 01:40:44 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  2. pkg/kubelet/pod/testing/fake_mirror_client.go

    	m.deleteCounts = make(map[string]int)
    	return &m
    }
    
    func (fmc *FakeMirrorClient) CreateMirrorPod(pod *v1.Pod) error {
    	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
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top