job

package
v1.43.8 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ResultContent of the pipeline job, passed via ConfigMap as v1.RadixJobResult structure
	ResultContent = "ResultContent"
)

Variables

This section is empty.

Functions

func GetOwnerReference

func GetOwnerReference(radixJob *v1.RadixJob) []metav1.OwnerReference

GetOwnerReference Gets owner reference of radix job

func GetOwnerReferenceOfJob

func GetOwnerReferenceOfJob(radixclient radixclient.Interface, namespace, name string) ([]metav1.OwnerReference, error)

GetOwnerReferenceOfJob Gets owner reference of job with name and UUID

func IsRadixJobDone

func IsRadixJobDone(rj *v1.RadixJob) bool

IsRadixJobDone Checks if job is done

Types

type Config added in v1.30.6

type Config struct {
	PipelineJobsHistoryLimit              int
	DeploymentsHistoryLimitPerEnvironment int
	AppBuilderResourcesLimitsMemory       *resource.Quantity
	AppBuilderResourcesRequestsCPU        *resource.Quantity
	AppBuilderResourcesRequestsMemory     *resource.Quantity
}

Config for pipeline jobs

type Job

type Job struct {
	// contains filtered or unexported fields
}

Job Instance variables

func NewJob

func NewJob(kubeclient kubernetes.Interface, kubeutil *kube.Kube, radixclient radixclient.Interface, radixJob *v1.RadixJob, config *Config) Job

NewJob Constructor

func (*Job) OnSync

func (job *Job) OnSync() error

OnSync compares the actual state with the desired, and attempts to converge the two

Jump to

Keyboard shortcuts

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