Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for admitPod (0.3 sec)

  1. pkg/kubelet/kubelet.go

    }
    
    // canAdmitPod determines if a pod can be admitted, and gives a reason if it
    // cannot. "pod" is new pod, while "pods" are all admitted pods
    // The function returns a boolean value indicating whether the pod
    // can be admitted, a brief single-word reason and a message explaining why
    // the pod cannot be admitted.
    func (kl *Kubelet) canAdmitPod(pods []*v1.Pod, pod *v1.Pod) (bool, string, string) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
  2. pkg/kubelet/kubelet_pods.go

    	for i := range podInfos {
    		if podInfos[i].IsDir() {
    			pods = append(pods, types.UID(podInfos[i].Name()))
    		}
    	}
    	return pods, nil
    }
    
    // GetActivePods returns pods that have been admitted to the kubelet that
    // are not fully terminated. This is mapped to the "desired state" of the
    // kubelet - what pods should be running.
    //
    // WARNING: Currently this list does not include pods that have been force
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
  3. pkg/kubelet/kubelet_test.go

    			podStatus:   v1.PodPending,
    		},
    		{
    			// Expect no patching to happen, label B should be preserved and can be used for nodeAffinity.
    			name:        "new node label, correct pod selector, admitted",
    			nodeLabels:  map[string]string{v1.LabelOSStable: goruntime.GOOS, v1.LabelArchStable: goruntime.GOARCH, "key": "B"},
    			podSelector: map[string]string{"key": "B"},
    			podStatus:   v1.PodPending,
    		},
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
Back to top