kubetool

package
v0.0.0-...-fe3c7b6 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindContainerByName

func FindContainerByName(cnrs []corev1.Container, name string) *corev1.Container

func FindVolumeByName

func FindVolumeByName(vols []corev1.Volume, name string) *corev1.Volume

func FindVolumeMountByName

func FindVolumeMountByName(mnts []corev1.VolumeMount, name string) *corev1.VolumeMount

func FixQualifiedNameIfInvalid

func FixQualifiedNameIfInvalid(name string) string

ValidateQualifiedName ensures the given name meets DNS-1123 label requirements and handles long names by truncating and adding a unique hash suffix.

func JobSuccessfullyCompleted

func JobSuccessfullyCompleted(job *batchv1.Job) bool

func MountPropagationModeRef

func MountPropagationModeRef(mountPropagationMode corev1.MountPropagationMode) *corev1.MountPropagationMode

MountPropagationModeRef .

Types

type VolumeBuilder

type VolumeBuilder struct {
	corev1.Volume
}

VolumeBuilder .

func NewVolumeBuilder

func NewVolumeBuilder() *VolumeBuilder

NewVolumeBuilder .

func (*VolumeBuilder) WithEmptyDir

func (v *VolumeBuilder) WithEmptyDir(emptyDir corev1.EmptyDirVolumeSource) *VolumeBuilder

WithEmptyDir .

func (*VolumeBuilder) WithHostPath

func (v *VolumeBuilder) WithHostPath(hostPath corev1.HostPathVolumeSource) *VolumeBuilder

WithHostPath .

func (*VolumeBuilder) WithHostPathFromPath

func (v *VolumeBuilder) WithHostPathFromPath(path string) *VolumeBuilder

WithHostPathFromPath .

func (*VolumeBuilder) WithName

func (v *VolumeBuilder) WithName(name string) *VolumeBuilder

WithName .

func (*VolumeBuilder) WithVolumeSource

func (v *VolumeBuilder) WithVolumeSource(volumeSource corev1.VolumeSource) *VolumeBuilder

WithVolumeSource .

type VolumeMountBuilder

type VolumeMountBuilder struct {
	corev1.VolumeMount
}

VolumeMountBuilder .

func NewVolumeMountBuilder

func NewVolumeMountBuilder() *VolumeMountBuilder

NewVolumeMountBuilder .

func (*VolumeMountBuilder) WithMountPath

func (v *VolumeMountBuilder) WithMountPath(path string) *VolumeMountBuilder

WithMountPath .

func (*VolumeMountBuilder) WithMountPropagation

func (v *VolumeMountBuilder) WithMountPropagation(mountPropagation corev1.MountPropagationMode) *VolumeMountBuilder

WithMountPropagation .

func (*VolumeMountBuilder) WithName

func (v *VolumeMountBuilder) WithName(name string) *VolumeMountBuilder

WithName .

func (*VolumeMountBuilder) WithReadOnly

func (v *VolumeMountBuilder) WithReadOnly(readonly bool) *VolumeMountBuilder

WithReadOnly .

func (*VolumeMountBuilder) WithSubPath

func (v *VolumeMountBuilder) WithSubPath(path string) *VolumeMountBuilder

WithSubPath .

func (*VolumeMountBuilder) WithSubPathExpr

func (v *VolumeMountBuilder) WithSubPathExpr(expr string) *VolumeMountBuilder

WithSubPathExpr .

Jump to

Keyboard shortcuts

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