Documentation ¶
Index ¶
- Constants
- func ApplyContainerRuntimeSettings(container core.Container, settings ofst.ContainerRuntimeSettings) core.Container
- func ApplyPodRuntimeSettings(podSpec core.PodSpec, settings ofst.PodRuntimeSettings) core.PodSpec
- func EnsureContainerExists(podTemplate *ofstv2.PodTemplateSpec, containerName string) *core.Container
- func EnsureInitContainerExists(podTemplate *ofstv2.PodTemplateSpec, containerName string) *core.Container
Constants ¶
View Source
const ( NiceAdjustment = "NICE_ADJUSTMENT" IONiceClass = "IONICE_CLASS" IONiceClassData = "IONICE_CLASS_DATA" )
Variables ¶
This section is empty.
Functions ¶
func ApplyPodRuntimeSettings ¶
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.
Click to show internal directories.
Click to hide internal directories.