limits

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Limit

type Limit struct {
	NodeSelector metav1.LabelSelector
	Limit        *resource.Quantity
}

type Limits

type Limits []Limit

func (Limits) GetLimitForNodeSelector

func (l Limits) GetLimitForNodeSelector(nodeSelector map[string]string) *resource.Quantity

GetLimitForNodeSelector returns the first limit that matches the given node selector. If no limit matches, an empty string is returned. Limits with invalid node selectors are ignored.

Jump to

Keyboard shortcuts

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