package
1.33.0-alpha.2
Repository: https://github.com/kubernetes/kubernetes.git
Documentation: pkg.go.dev
# Functions
NewAdmissionFailureHandlerStub returns an instance of AdmissionFailureHandlerStub.
NewAppArmorAdmitHandler returns a PodAdmitHandler which is used to evaluate if a pod can be admitted from the perspective of AppArmor.
NewHandlerRunner returns a configured lifecycle handler for a container.
NewPredicateAdmitHandler returns a PodAdmitHandler which is used to evaluates if a pod can be admitted from the perspective of predicates.
# Constants
InitContainerRestartPolicyForbidden is used to denote that the pod was rejected admission to the node because it uses a restart policy other than Always for some of its init containers.
Prefix for admission reason when kubelet rejects a pod due to insufficient resources available.
InvalidNodeInfo is used to denote that the pod was rejected admission to the node because the kubelet was unable to retrieve the node info.
These reasons are used to denote that the pod has reject admission to the node because there's not enough resources to run the pod.
PodOSNotSupported is used to denote that the pod was rejected admission to the node because the pod's OS field didn't match the node OS.
PodOSSelectorNodeLabelDoesNotMatch is used to denote that the pod was rejected admission to the node because the pod's node selector corresponding to kubernetes.io/os label didn't match the node label.
UnexpectedAdmissionError is used to denote that the pod was rejected admission to the node because of an error during admission that could not be categorized.
UnexpectedPredicateFailureType is used to denote that the pod was rejected admission to the node because a predicate returned a reason object that was not an InsufficientResourceError or a PredicateFailureError.
UnknownReason is used to denote that the pod was rejected admission to the node because a predicate failed for a reason that could not be determined.
# Structs
AdmissionFailureHandlerStub is an AdmissionFailureHandler that does not perform any handling of admission failure.
InsufficientResourceError is an error type that indicates what kind of resource limit is hit and caused the unfitting failure.
PodAdmitAttributes is the context for a pod admission decision.
PodAdmitResult provides the result of a pod admission decision.
PredicateFailureError describes a failure error of predicate.
ShouldEvictResponse provides the result of a should evict request.
# Interfaces
AdmissionFailureHandler is an interface which defines how to deal with a failure to admit a pod.
PodAdmitHandler is notified during pod admission.
PodAdmitTarget maintains a list of handlers to invoke.
PodLifecycleTarget groups a set of lifecycle interfaces for convenience.
PodSyncHandler is invoked during each sync pod operation.
PodSyncLoopHandler is invoked during each sync loop iteration.
PodSyncLoopTarget maintains a list of handlers to pod sync loop.
PodSyncTarget maintains a list of handlers to pod sync.
PredicateFailureReason interface represents the failure reason of a predicate.
# Type aliases
PodAdmitHandlers maintains a list of handlers to pod admission.
PodSyncHandlers maintains a list of handlers to pod sync.
PodSyncLoopHandlers maintains a list of handlers to pod sync loop.