pod

package
v0.0.0-...-8ae82f3 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultPod

func DefaultPod() *corev1.Pod

DefaultPod returns a default pod

Types

type PodBuilder

type PodBuilder interface {
	metadata.MetadataBuilder
	PodSpecBuilder
	BuildPod() *corev1.Pod
}

PodBuilder represents the configuration of a pod nolint:unused

func NewPodBuilder

func NewPodBuilder() PodBuilder

NewPodBuilder returns a new pod builder

type PodSpecBuilder

type PodSpecBuilder interface {
	SetVolumes(vs []corev1.Volume) PodSpecBuilder
	UpdateVolumeByName(v *corev1.Volume) PodSpecBuilder
	AppendVolumes(vs []corev1.Volume) PodSpecBuilder

	SetInitContainers(cs []corev1.Container) PodSpecBuilder
	UpdateInitContainerByName(c *corev1.Container) PodSpecBuilder
	FindInitContainerByName(name string) container.ContainerBuilder
	AppendInitContainers(cs []corev1.Container) PodSpecBuilder

	SetContainers(cs []corev1.Container) PodSpecBuilder
	UpdateContainerByName(c *corev1.Container) PodSpecBuilder
	FindContainerByName(name string) container.ContainerBuilder
	AppendContainers(cs []corev1.Container) PodSpecBuilder

	SetTerminationGracePeriodSeconds(secs *int64) PodSpecBuilder
	SetImagePullSecrets(secs []corev1.LocalObjectReference) PodSpecBuilder

	BuildPodSpec() *corev1.PodSpec
}

PodSpecBuilder build PodSpec

func NewPodSpecBuilder

func NewPodSpecBuilder() PodSpecBuilder

NewPodSpecBuilder returns a PodSpecBuilder

Jump to

Keyboard shortcuts

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