kubernetes

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: AGPL-3.0, Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobService

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

func NewJobService

func NewJobService(log mlog.LoggerIFace, cfg JobServiceConfig) (*JobService, error)

func (*JobService) CreateJob

func (s *JobService) CreateJob(cfg job.Config, onStopCb job.StopCb) (job.Job, error)

func (*JobService) DeleteJob

func (s *JobService) DeleteJob(jobID string) error

func (*JobService) GetJobLogs

func (s *JobService) GetJobLogs(jobID string, _, stderr io.Writer) error

func (*JobService) Init

func (s *JobService) Init(_ job.ServiceConfig) error

func (*JobService) Shutdown

func (s *JobService) Shutdown() error

type JobServiceConfig

type JobServiceConfig struct {
	MaxConcurrentJobs         int
	FailedJobsRetentionTime   time.Duration
	ImageRegistry             string
	JobsResourceRequirements  JobsResourceRequirements `toml:"jobs_resource_requirements"`
	PersistentVolumeClaimName string                   `toml:"persistent_volume_claim_name"`
	NodeSysctls               string                   `toml:"node_sysctls"`
}

func (JobServiceConfig) IsValid added in v0.6.0

func (c JobServiceConfig) IsValid() error

type JobsResourceRequirements added in v0.6.0

type JobsResourceRequirements map[job.Type]corev1.ResourceRequirements

func (*JobsResourceRequirements) Decode added in v0.6.0

func (r *JobsResourceRequirements) Decode(data string) error

func (*JobsResourceRequirements) UnmarshalTOML added in v0.6.0

func (r *JobsResourceRequirements) UnmarshalTOML(data interface{}) error

Jump to

Keyboard shortcuts

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