resource

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeResourceListKeepFirst

func MergeResourceListKeepFirst(dst, src corev1.ResourceList) corev1.ResourceList

MergeResourceListKeepFirst creates a new ResourceList holding all resource values from dst and any new values from src

func MergeResourceListKeepMax

func MergeResourceListKeepMax(a, b corev1.ResourceList) corev1.ResourceList

MergeResourceListKeepMax creates a new ResourceList holding all the values from a and b and resolve potential conflicts by keeping the highest value.

func MergeResourceListKeepMin

func MergeResourceListKeepMin(a, b corev1.ResourceList) corev1.ResourceList

MergeResourceListKeepMin creates a new ResourceList holding all the values from a and b and resolve potential conflicts by keeping the lowest value.

func MergeResourceListKeepSum

func MergeResourceListKeepSum(a, b corev1.ResourceList) corev1.ResourceList

MergeResourceListKeepSum creates a new ResourceList holding all the values from a and b and resolve potential conflicts by adding up the tow values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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