limitrange

package
v0.0.0-...-4fc8c9b Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVirtualLimitRange

func GetVirtualLimitRange(namespace string, lister corev1listers.LimitRangeLister) (*corev1.LimitRange, error)

GetVirtualLimitRange returns a pointer to a single LimitRange representing the most restrictive requirements of all LimitRanges present in the namespace, or a nil pointer if there are no LimitRanges. This LimitRange meets the following constraints: - Its max is the smallest max of all the LimitRanges - Its min is the largest min of all the LimitRanges - Its maxLimitRequestRatio is the smallest maxLimitRequestRatio of all the LimitRanges - Its default is the smallest default of any of the LimitRanges that fits within the minimum and maximum - Its defaultRequest is the smallest defaultRequest of any of the LimitRanges that fits within the minimum and maximum

This function isn't guaranteed to return a LimitRange with consistent constraints. For example, the minimum could be greater than the maximum.

Types

This section is empty.

Jump to

Keyboard shortcuts

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