patch

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsertAffinity added in v0.0.14

func InsertAffinity(
	pod *core_v1.Pod,
	affinity *config.InjectAffinity,
) (json_patch.Patch, error)

func InsertContainerVolumeMounts added in v0.0.12

func InsertContainerVolumeMounts(
	idx int,
	container *core_v1.Container,
	volumeMounts []core_v1.VolumeMount,
) (json_patch.Patch, error)

func InsertInitContainerVolumeMounts added in v0.0.12

func InsertInitContainerVolumeMounts(
	idx int,
	container *core_v1.Container,
	volumeMounts []core_v1.VolumeMount,
) (json_patch.Patch, error)

func InsertPodContainers added in v0.0.12

func InsertPodContainers(
	pod *core_v1.Pod,
	containers []core_v1.Container,
) (json_patch.Patch, error)

func InsertPodLabels added in v0.0.12

func InsertPodLabels(
	pod *core_v1.Pod,
	labels map[string]string,
) (json_patch.Patch, error)

func InsertPodVolumes added in v0.0.12

func InsertPodVolumes(
	pod *core_v1.Pod,
	volumes []core_v1.Volume,
) (json_patch.Patch, error)

func InsertTolerations added in v0.0.14

func InsertTolerations(
	pod *core_v1.Pod,
	tolerations []core_v1.Toleration,
) (json_patch.Patch, error)

func UpsertPodAnnotations added in v0.0.12

func UpsertPodAnnotations(
	pod *core_v1.Pod,
	annotations map[string]string,
) (json_patch.Patch, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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