# Functions
CompareCPU compares containers by CPU requests and limits.
CompareMemory compares containers by memory requests and limits.
CompareQOS compares containers by QOS class.
GlobalAffinity creates an affinity with all containers in scope.
GlobalAntiAffinity creates an anti-affinity with all containers in scope.
IsPodQOSClassName returns true if the given class is one of the Pod QOS classes.
NewCache instantiates a new cache.
ParsePodStatus parses a PodSandboxStatusResponse into a PodStatus.
SortContainers sorts a slice of containers using the given comparison functions.
# Constants
BlockIO marks changes that can be applied by the BlockIO controller.
BlockIOClassKey is the pod annotation key for specifying a container Block I/O class.
CacheVersion is the running version of the cache.
ContainerStateCreated marks a container created, not running.
ContainerStateCreating marks a container as being created.
ContainerStateExited marks a container exited.
ContainerStateRunning marks a container created, running.
ContainerStateStale marks a container removed.
ContainerStateUnknown marks a container to be in an unknown state.
CPU marks changes that can be applied by the CPU controller.
CRI marks changes that can be applied by the CRI controller.
DefaultWeight is the default assigned weight if omitted in annotations.
KeyResourceAnnotation is the annotation key our webhook uses.
Memory marks changes that can be applied by the Memory controller.
MountBidirectional is a bidirectional mount.
MountHostToContainer is a host-to-container mount.
MountPrivate is a private container mount.
PageMigration marks changes that can be applied by the PageMigration controller.
PodStateNotReady marks a pod as not ready.
PodStateReady marks a pod ready.
PodStateStale marks a pod as removed.
RDT marks changes that can be applied by the RDT controller.
RDTClassKey is the pod annotation key for specifying a container RDT class.
RDTClassPodQoS denotes that the RDTClass should be taken from PodQosClass.
TagAVX512 tags containers that use AVX512 instructions.
TopologyHintsKey can be used to opt out from automatic topology hint generation.
ToptierLimitKey is the pod annotation key for specifying container top tier memory limits.
ToptierLimitUnset is the reserved value for indicating unset top tier limits.
UserWeightCutoff is the cutoff we clamp user-provided weights to.
# Variables
CompareByQOSMemoryCPU is a slice for comparing container by QOS, memory, and CPU.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
Affinity specifies a single container affinity.
Device is a device exposed to a container.
Expression is used to describe affinity container scope and matching criteria.
Mount is a filesystem entry mounted inside a container.
Options contains the configurable cache options.
PageMigrate contains the policy/preferences for container page migration.
PodResourceRequirements are per container resource requirements, annotated by our webhook.
PodStatus wraps a PodSandboxStatus response for data extraction.
# Type aliases
CompareContainersFn compares two containers by some arbitrary property.
ContainerState is the container state in the runtime.
ImplicitAffinity can implicitly inject affinities to containers.
MountType is a propagation type.
PodState is the pod state in the runtime.