Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for PodAdmitHandlers (0.29 sec)

  1. pkg/kubelet/lifecycle/interfaces.go

    type PodLifecycleTarget interface {
    	PodAdmitTarget
    	PodSyncLoopTarget
    	PodSyncTarget
    }
    
    // PodAdmitHandlers maintains a list of handlers to pod admission.
    type PodAdmitHandlers []PodAdmitHandler
    
    // AddPodAdmitHandler adds the specified observer.
    func (handlers *PodAdmitHandlers) AddPodAdmitHandler(a PodAdmitHandler) {
    	*handlers = append(*handlers, a)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 22 17:25:57 UTC 2017
    - 4K bytes
    - Viewed (0)
  2. pkg/kubelet/kubelet.go

    	// maintains Node.Spec.Unschedulable value from previous run of tryUpdateNodeStatus()
    	lastNodeUnschedulable bool
    
    	// the list of handlers to call during pod admission.
    	admitHandlers lifecycle.PodAdmitHandlers
    
    	// softAdmithandlers are applied to the pod after it is admitted by the Kubelet, but before it is
    	// run. A pod rejected by a softAdmitHandler will be left in a Pending state indefinitely. If a
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
  3. pkg/kubelet/kubelet_test.go

    			}
    		}
    		node.Allocatable = newAllocatableResource
    		return nil
    	}
    
    	// add updatePluginResourcesFunc to admission handler, to test it's behavior.
    	kl.admitHandlers = lifecycle.PodAdmitHandlers{}
    	kl.admitHandlers.AddPodAdmitHandler(lifecycle.NewPredicateAdmitHandler(kl.getNodeAnyWay, lifecycle.NewAdmissionFailureHandlerStub(), updatePluginResourcesFunc))
    
    	recorder := record.NewFakeRecorder(20)
    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