Versions in this module Expand all Collapse all v1 v1.16.3 Oct 23, 2019 Changes in this version + const OffendingContainersKey + const OffendingContainersUsageKey + const Reason + const StarvedResourceKey + func ParseThresholdConfig(allocatableConfig []string, ...) ([]evictionapi.Threshold, error) + func PodIsEvicted(podStatus v1.PodStatus) bool + type ActivePodsFunc func() []*v1.Pod + type CgroupNotifier interface + Start func(eventCh chan<- struct{}) + Stop func() + func NewCgroupNotifier(path, attribute string, threshold int64) (CgroupNotifier, error) + type CgroupNotifierFactory struct + func (n *CgroupNotifierFactory) NewCgroupNotifier(path, attribute string, threshold int64) (CgroupNotifier, error) + type Config struct + KernelMemcgNotification bool + MaxPodGracePeriodSeconds int64 + PodCgroupRoot string + PressureTransitionPeriod time.Duration + Thresholds []evictionapi.Threshold + type ContainerGC interface + DeleteAllUnusedContainers func() error + type DiskInfoProvider interface + HasDedicatedImageFs func() (bool, error) + type ImageGC interface + DeleteUnusedImages func() error + type KillPodFunc func(pod *v1.Pod, status v1.PodStatus, gracePeriodOverride *int64) error + type Manager interface + IsUnderDiskPressure func() bool + IsUnderMemoryPressure func() bool + IsUnderPIDPressure func() bool + Start func(diskInfoProvider DiskInfoProvider, podFunc ActivePodsFunc, ...) + func NewManager(summaryProvider stats.SummaryProvider, config Config, killPodFunc KillPodFunc, ...) (Manager, lifecycle.PodAdmitHandler) + type MirrorPodFunc func(*v1.Pod) (*v1.Pod, bool) + type NotifierFactory interface + NewCgroupNotifier func(path, attribute string, threshold int64) (CgroupNotifier, error) + type PodCleanedUpFunc func(*v1.Pod) bool + type ThresholdNotifier interface + Description func() string + Start func() + UpdateThreshold func(summary *statsapi.Summary) error + func NewMemoryThresholdNotifier(threshold evictionapi.Threshold, cgroupRoot string, factory NotifierFactory, ...) (ThresholdNotifier, error)