resources

package
v1.59.2 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

Types

type ResourceOption

type ResourceOption func(resources *corev1.ResourceRequirements)

func WithCPUMilli

func WithCPUMilli(cpu int64) ResourceOption

WithCPUMilli sets cpu requests without limit to ensure optimal performance when possible

func WithMemoryMega

func WithMemoryMega(memory int64) ResourceOption

WithMemoryMega sets memory limit and requests to ensure awailable memory

Jump to

Keyboard shortcuts

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