internal

package
v1.68.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildKubeJob

func BuildKubeJob(props KubeJobProps) batchv1.Job

BuildKubeJob builds a Kubernetes job with properties defined by source argument

Types

type KubeJobProps

type KubeJobProps interface {
	JobName() string
	JobLabels() map[string]string
	JobAnnotations() map[string]string
	PodLabels() map[string]string
	PodAnnotations() map[string]string
	PodTolerations() []corev1.Toleration
	PodAffinity() *corev1.Affinity
	PodSecurityContext() *corev1.PodSecurityContext
	PodVolumes() []corev1.Volume
	PodInitContainers() []corev1.Container
	PodContainers() []corev1.Container
}

KubeJobProps defines properties to be used with the BuildKubeJob function.

Jump to

Keyboard shortcuts

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