util

package
v0.30.1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

View Source
const (
	NiceAdjustment  = "NICE_ADJUSTMENT"
	IONiceClass     = "IONICE_CLASS"
	IONiceClassData = "IONICE_CLASS_DATA"
)

Variables

This section is empty.

Functions

func ApplyContainerRuntimeSettings

func ApplyContainerRuntimeSettings(container core.Container, settings ofst.ContainerRuntimeSettings) core.Container

func ApplyPodRuntimeSettings

func ApplyPodRuntimeSettings(podSpec core.PodSpec, settings ofst.PodRuntimeSettings) core.PodSpec

func EnsureContainerExists added in v0.30.0

func EnsureContainerExists(podTemplate *ofstv2.PodTemplateSpec, containerName string) *core.Container

EnsureContainerExists ensures that given container either exits by default or it will create the container, then insert it to the podTemplate and return a pointer of that container

func EnsureInitContainerExists added in v0.30.0

func EnsureInitContainerExists(podTemplate *ofstv2.PodTemplateSpec, containerName string) *core.Container

EnsureInitContainerExists ensures that given initContainer either exits by default or it will create the initContainer, then insert it to the podTemplate and return a pointer of that initContainer

Types

This section is empty.

Jump to

Keyboard shortcuts

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