job

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProviderType = "job"
	// JobNameKey is the measurement's metadata key holding the job name associated with the measurement
	JobNameKey = "job-name"
	// AnalysisRunNameAnnotationKey is the job's annotation key containing the name of the controller AnalysisRun
	AnalysisRunNameAnnotationKey = "analysisrun.argoproj.io/name"
	// AnalysisRunMetricLabelKey is the job's annotation key containing the name of the associated AnalysisRun metric
	AnalysisRunMetricAnnotationKey = "analysisrun.argoproj.io/metric-name"
	// AnalysisRunUIDLabelKey is the job's label key containing the uid of the associated AnalysisRun
	// Also used to filter the job informer
	AnalysisRunUIDLabelKey = "analysisrun.argoproj.io/uid"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type JobProvider

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

func NewJobProvider

func NewJobProvider(logCtx log.Entry, kubeclientset kubernetes.Interface, jobLister batchlisters.JobLister) *JobProvider

func (*JobProvider) GarbageCollect

func (p *JobProvider) GarbageCollect(run *v1alpha1.AnalysisRun, metric v1alpha1.Metric, limit int) error

GarbageCollect deletes an old jobs

func (*JobProvider) Resume

func (*JobProvider) Run

func (*JobProvider) Terminate

func (p *JobProvider) Terminate(run *v1alpha1.AnalysisRun, metric v1alpha1.Metric, measurement v1alpha1.Measurement) v1alpha1.Measurement

func (*JobProvider) Type

func (p *JobProvider) Type() string

Jump to

Keyboard shortcuts

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