mutation

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

nolint:lll

Index

Constants

This section is empty.

Variables

View Source
var (
	Clock clock.Clock = &clock.RealClock{}
)

Functions

This section is empty.

Types

type JobConfigPatcher added in v0.1.0

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

JobConfigPatcher encapsulates high-level patch methods for JobConfigs.

func NewJobConfigPatcher added in v0.1.0

func NewJobConfigPatcher(ctrlContext controllercontext.Context) *JobConfigPatcher

func (*JobConfigPatcher) Patch added in v0.1.0

func (p *JobConfigPatcher) Patch(operation admissionv1.Operation, oldRjc, rjc *execution.JobConfig) *webhook.Result

type JobPatcher added in v0.1.0

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

JobPatcher encapsulates high-level patch methods for Jobs.

func NewJobPatcher added in v0.1.0

func NewJobPatcher(ctrlContext controllercontext.Context) *JobPatcher

func (*JobPatcher) Patch added in v0.1.0

func (p *JobPatcher) Patch(operation admissionv1.Operation, oldRj, rj *execution.Job) *webhook.Result

type Mutator

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

Mutator encapsulates all mutation methods.

func NewMutator

func NewMutator(ctrlContext controllercontext.Context) *Mutator

func (*Mutator) MutateCreateJob

func (m *Mutator) MutateCreateJob(rj *v1alpha1.Job) *webhook.Result

MutateCreateJob mutates a v1alpha1.Job in-place for creation.

func (*Mutator) MutateCreateJobConfig

func (m *Mutator) MutateCreateJobConfig(rjc *v1alpha1.JobConfig) *webhook.Result

MutateCreateJobConfig mutates a v1alpha1.JobConfig in-place for creation.

func (*Mutator) MutateJob

func (m *Mutator) MutateJob(rj *v1alpha1.Job) *webhook.Result

MutateJob mutates a v1alpha1.Job in-place.

func (*Mutator) MutateJobConfig

func (m *Mutator) MutateJobConfig(rjc *v1alpha1.JobConfig) *webhook.Result

MutateJobConfig mutates a v1alpha1.JobConfig in-place.

func (*Mutator) MutateJobTemplateSpec added in v0.1.0

func (m *Mutator) MutateJobTemplateSpec(
	spec *v1alpha1.JobTemplate,
	taskTemplate bool,
	fldPath *field.Path,
) *webhook.Result

MutateJobTemplateSpec mutates a JobTemplate in-place.

func (*Mutator) MutateParallelismSpec added in v0.2.0

func (m *Mutator) MutateParallelismSpec(spec *v1alpha1.ParallelismSpec, fldPath *field.Path) *webhook.Result

MutateParallelismSpec mutates ParallelismSpec in-place.

func (*Mutator) MutatePodTemplateSpec added in v0.1.0

func (m *Mutator) MutatePodTemplateSpec(spec *v1alpha1.PodTemplateSpec, fldPath *field.Path) *webhook.Result

MutatePodTemplateSpec mutates PodTemplateSpec in-place.

func (*Mutator) MutateTaskTemplate added in v0.2.0

func (m *Mutator) MutateTaskTemplate(spec *v1alpha1.TaskTemplate, fldPath *field.Path) *webhook.Result

MutateTaskTemplate mutates a TaskTemplate in-place.

func (*Mutator) MutateUpdateJobConfig

func (m *Mutator) MutateUpdateJobConfig(oldRjc, rjc *v1alpha1.JobConfig) *webhook.Result

MutateUpdateJobConfig mutates a v1alpha1.JobConfig in-place for update.

Jump to

Keyboard shortcuts

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