Documentation ¶
Overview ¶
nolint:lll
Index ¶
- Variables
- type JobConfigPatcher
- type JobPatcher
- type Mutator
- func (m *Mutator) MutateCreateJob(rj *v1alpha1.Job) *webhook.Result
- func (m *Mutator) MutateCreateJobConfig(rjc *v1alpha1.JobConfig) *webhook.Result
- func (m *Mutator) MutateJob(rj *v1alpha1.Job) *webhook.Result
- func (m *Mutator) MutateJobConfig(rjc *v1alpha1.JobConfig) *webhook.Result
- func (m *Mutator) MutateJobTemplateSpec(spec *v1alpha1.JobTemplate, taskTemplate bool, fldPath *field.Path) *webhook.Result
- func (m *Mutator) MutateParallelismSpec(spec *v1alpha1.ParallelismSpec, fldPath *field.Path) *webhook.Result
- func (m *Mutator) MutatePodTemplateSpec(spec *v1alpha1.PodTemplateSpec, fldPath *field.Path) *webhook.Result
- func (m *Mutator) MutateTaskTemplate(spec *v1alpha1.TaskTemplate, fldPath *field.Path) *webhook.Result
- func (m *Mutator) MutateUpdateJobConfig(oldRjc, rjc *v1alpha1.JobConfig) *webhook.Result
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 ¶
MutateCreateJob mutates a v1alpha1.Job in-place for creation.
func (*Mutator) MutateCreateJobConfig ¶
MutateCreateJobConfig mutates a v1alpha1.JobConfig in-place for creation.
func (*Mutator) MutateJobConfig ¶
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.
Click to show internal directories.
Click to hide internal directories.