Merge pull request #97493 from Pingan2017/allocatemem-1224

add operator for allocateMemory.available signal
This commit is contained in:
Kubernetes Prow Robot 2021-03-07 20:09:44 -08:00 committed by GitHub
commit a91fdfbeb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,12 +58,13 @@ const (
// from either above or below, never both). There is thus no reason to expose the // from either above or below, never both). There is thus no reason to expose the
// operator in the Kubelet's public API. Instead, we internally map signal types to operators. // operator in the Kubelet's public API. Instead, we internally map signal types to operators.
var OpForSignal = map[Signal]ThresholdOperator{ var OpForSignal = map[Signal]ThresholdOperator{
SignalMemoryAvailable: OpLessThan, SignalMemoryAvailable: OpLessThan,
SignalNodeFsAvailable: OpLessThan, SignalNodeFsAvailable: OpLessThan,
SignalNodeFsInodesFree: OpLessThan, SignalNodeFsInodesFree: OpLessThan,
SignalImageFsAvailable: OpLessThan, SignalImageFsAvailable: OpLessThan,
SignalImageFsInodesFree: OpLessThan, SignalImageFsInodesFree: OpLessThan,
SignalPIDAvailable: OpLessThan, SignalAllocatableMemoryAvailable: OpLessThan,
SignalPIDAvailable: OpLessThan,
} }
// ThresholdValue is a value holder that abstracts literal versus percentage based quantity // ThresholdValue is a value holder that abstracts literal versus percentage based quantity