Documentation ¶
Index ¶
Constants ¶
View Source
const ( LimitsNotPresent = "LimitSentry: pod rejected because of missing limits" LimitsOutsideMemory = "LimitSentry: pod rejected because some containers are outside the memory limits" LimitsOutsideCPU = "LimitSentry: pod rejected because some containers are outside the cpu limits" )
View Source
const (
NAME = "limits"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
func (*Config) LoadSentry ¶
type LimitSentry ¶
type LimitSentry struct {
*Config
}
func (LimitSentry) Admit ¶
func (ls LimitSentry) Admit(receivedAdmissionReview v1beta1.AdmissionReview) *v1beta1.AdmissionResponse
func (LimitSentry) BetweenCPU ¶
func (ls LimitSentry) BetweenCPU(q resource.Quantity) bool
func (LimitSentry) BetweenMemory ¶
func (ls LimitSentry) BetweenMemory(q resource.Quantity) bool
func (LimitSentry) Type ¶
func (ls LimitSentry) Type() string
Click to show internal directories.
Click to hide internal directories.