limitrange

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 32

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL