config

package
v2.34.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

+kubebuilder:validation:Optional

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobConfig

type JobConfig struct {
	// Time between job executions. Zero or negative value means that the job will never run periodically.
	ExecutionPeriod config.Duration `json:"execution_period" default:"10s"`

	// Execution timeout
	ExecutionTimeout config.Duration `json:"execution_timeout" validate:"gte=0s" default:"5s"`

	// Sets whether the job is initially healthy
	InitiallyHealthy bool `json:"initially_healthy" default:"false"`
}

JobConfig is configuration for a periodic job swagger:model +kubebuilder:object:generate=true

func (*JobConfig) DeepCopy

func (in *JobConfig) DeepCopy() *JobConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobConfig.

func (*JobConfig) DeepCopyInto

func (in *JobConfig) DeepCopyInto(out *JobConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type JobGroupConfig

type JobGroupConfig struct {
	SchedulerConfig `json:",inline"`
}

JobGroupConfig holds configuration for JobGroup. swagger:model +kubebuilder:object:generate=true

func (*JobGroupConfig) DeepCopy

func (in *JobGroupConfig) DeepCopy() *JobGroupConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobGroupConfig.

func (*JobGroupConfig) DeepCopyInto

func (in *JobGroupConfig) DeepCopyInto(out *JobGroupConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SchedulerConfig

type SchedulerConfig struct {
	// When true, the scheduler will run jobs synchronously,
	// waiting for each execution instance of the job to return
	// before starting the next execution. Running with this
	// option effectively serializes all job execution.
	BlockingExecution bool `json:"blocking_execution" default:"false"`

	// Limits how many jobs can be running at the same time. This is
	// useful when running resource intensive jobs and a precise start time is
	// not critical. 0 = no limit. If BlockingExecution is set, then WorkerLimit
	// is ignored.
	WorkerLimit int `json:"worker_limit" default:"0"`
}

SchedulerConfig holds configuration for job Scheduler. swagger:model +kubebuilder:object:generate=true

func (*SchedulerConfig) DeepCopy

func (in *SchedulerConfig) DeepCopy() *SchedulerConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SchedulerConfig.

func (*SchedulerConfig) DeepCopyInto

func (in *SchedulerConfig) DeepCopyInto(out *SchedulerConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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