Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ParsePodFullName (0.17 sec)

  1. pkg/kubelet/pod/mirror_client_test.go

    	}
    	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)
  2. pkg/kubelet/pod/mirror_client.go

    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 {
    		uidValue = *uid
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 21 11:38:40 UTC 2021
    - 5.5K bytes
    - Viewed (0)
  3. pkg/kubelet/container/runtime.go

    }
    
    // BuildPodFullName builds the pod full name from pod name and namespace.
    func BuildPodFullName(name, namespace string) string {
    	return name + "_" + namespace
    }
    
    // ParsePodFullName parsed the pod full name.
    func ParsePodFullName(podFullName string) (string, string, error) {
    	parts := strings.Split(podFullName, "_")
    	if len(parts) != 2 || parts[0] == "" || parts[1] == "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  4. pkg/kubelet/kubelet_pods.go

    	// cached there, something is wrong (or kubelet just restarted and hasn't
    	// caught up yet). Just assume the pod is not ready yet.
    	name, namespace, err := kubecontainer.ParsePodFullName(podFullName)
    	if err != nil {
    		return fmt.Errorf("unable to parse pod full name %q: %v", podFullName, err)
    	}
    
    	pod, ok := kl.GetPodByName(namespace, name)
    	if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
Back to top