Documentation ¶
Index ¶
- Constants
- type JobProvider
- func (p *JobProvider) GarbageCollect(run *v1alpha1.AnalysisRun, metric v1alpha1.Metric, limit int) error
- func (p *JobProvider) GetMetadata(metric v1alpha1.Metric) map[string]string
- func (p *JobProvider) Resume(run *v1alpha1.AnalysisRun, metric v1alpha1.Metric, ...) v1alpha1.Measurement
- func (p *JobProvider) Run(run *v1alpha1.AnalysisRun, metric v1alpha1.Metric) v1alpha1.Measurement
- func (p *JobProvider) Terminate(run *v1alpha1.AnalysisRun, metric v1alpha1.Metric, ...) v1alpha1.Measurement
- func (p *JobProvider) Type() string
Constants ¶
View Source
const ( ProviderType = "Job" // JobNameKey is the measurement's metadata key holding the job name associated with the measurement JobNameKey = "job-name" // JobNamespaceKey is the measurement's metadata key holding the job namespace associated with the measurement JobNamespaceKey = "job-namespace" // AnalysisRunNameAnnotationKey is the job's annotation key containing the name of the controller AnalysisRun AnalysisRunNameAnnotationKey = "analysisrun.argoproj.io/name" // AnalysisRunNamespaceAnnotationKey is the job's annotation key containing the namespace of the controller AnalysisRun AnalysisRunNamespaceAnnotationKey = "analysisrun.argoproj.io/namespace" // 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, jobNS string, customJobKubeconfig bool) *JobProvider
func (*JobProvider) GarbageCollect ¶
func (p *JobProvider) GarbageCollect(run *v1alpha1.AnalysisRun, metric v1alpha1.Metric, limit int) error
GarbageCollect deletes an old jobs
func (*JobProvider) GetMetadata ¶ added in v1.2.0
func (p *JobProvider) GetMetadata(metric v1alpha1.Metric) map[string]string
GetMetadata returns any additional metadata which needs to be stored & displayed as part of the metrics result.
func (*JobProvider) Resume ¶
func (p *JobProvider) Resume(run *v1alpha1.AnalysisRun, metric v1alpha1.Metric, measurement v1alpha1.Measurement) v1alpha1.Measurement
func (*JobProvider) Run ¶
func (p *JobProvider) Run(run *v1alpha1.AnalysisRun, metric v1alpha1.Metric) v1alpha1.Measurement
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
Click to show internal directories.
Click to hide internal directories.