Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLimitsRangeCalculator ¶
func NewLimitsRangeCalculator(f informers.SharedInformerFactory) (*limitsChecker, error)
NewLimitsRangeCalculator returns a limitsChecker or an error it encountered when attempting to create it.
func NewNoopLimitsCalculator ¶
func NewNoopLimitsCalculator() *noopLimitsRangeCalculator
NewNoopLimitsCalculator returns a limit calculator that instantly returns no limits.
Types ¶
type LimitRangeCalculator ¶
type LimitRangeCalculator interface { // GetContainerLimitRangeItem returns LimitRangeItem that describes limitation on container limits in the given namespace. GetContainerLimitRangeItem(namespace string) (*core.LimitRangeItem, error) // GetPodLimitRangeItem returns LimitRangeItem that describes limitation on pod limits in the given namespace. GetPodLimitRangeItem(namespace string) (*core.LimitRangeItem, error) }
LimitRangeCalculator calculates limit range items that has the same effect as all limit range items present in the cluster.
Click to show internal directories.
Click to hide internal directories.