mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-23 13:47:19 +00:00
Extend the Job API for BackoffLimitPerIndex
Kubernetes-commit: fcbfdc1710676ffd77ba4bbda384240293339db4
This commit is contained in:
parent
74c18d3a40
commit
ad08d15b30
@ -32,6 +32,8 @@ type JobSpecApplyConfiguration struct {
|
||||
ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty"`
|
||||
PodFailurePolicy *PodFailurePolicyApplyConfiguration `json:"podFailurePolicy,omitempty"`
|
||||
BackoffLimit *int32 `json:"backoffLimit,omitempty"`
|
||||
BackoffLimitPerIndex *int32 `json:"backoffLimitPerIndex,omitempty"`
|
||||
MaxFailedIndexes *int32 `json:"maxFailedIndexes,omitempty"`
|
||||
Selector *metav1.LabelSelectorApplyConfiguration `json:"selector,omitempty"`
|
||||
ManualSelector *bool `json:"manualSelector,omitempty"`
|
||||
Template *corev1.PodTemplateSpecApplyConfiguration `json:"template,omitempty"`
|
||||
@ -86,6 +88,22 @@ func (b *JobSpecApplyConfiguration) WithBackoffLimit(value int32) *JobSpecApplyC
|
||||
return b
|
||||
}
|
||||
|
||||
// WithBackoffLimitPerIndex sets the BackoffLimitPerIndex field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the BackoffLimitPerIndex field is set to the value of the last call.
|
||||
func (b *JobSpecApplyConfiguration) WithBackoffLimitPerIndex(value int32) *JobSpecApplyConfiguration {
|
||||
b.BackoffLimitPerIndex = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithMaxFailedIndexes sets the MaxFailedIndexes field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the MaxFailedIndexes field is set to the value of the last call.
|
||||
func (b *JobSpecApplyConfiguration) WithMaxFailedIndexes(value int32) *JobSpecApplyConfiguration {
|
||||
b.MaxFailedIndexes = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithSelector sets the Selector field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the Selector field is set to the value of the last call.
|
||||
|
@ -32,6 +32,7 @@ type JobStatusApplyConfiguration struct {
|
||||
Succeeded *int32 `json:"succeeded,omitempty"`
|
||||
Failed *int32 `json:"failed,omitempty"`
|
||||
CompletedIndexes *string `json:"completedIndexes,omitempty"`
|
||||
FailedIndexes *string `json:"failedIndexes,omitempty"`
|
||||
UncountedTerminatedPods *UncountedTerminatedPodsApplyConfiguration `json:"uncountedTerminatedPods,omitempty"`
|
||||
Ready *int32 `json:"ready,omitempty"`
|
||||
}
|
||||
@ -103,6 +104,14 @@ func (b *JobStatusApplyConfiguration) WithCompletedIndexes(value string) *JobSta
|
||||
return b
|
||||
}
|
||||
|
||||
// WithFailedIndexes sets the FailedIndexes field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the FailedIndexes field is set to the value of the last call.
|
||||
func (b *JobStatusApplyConfiguration) WithFailedIndexes(value string) *JobStatusApplyConfiguration {
|
||||
b.FailedIndexes = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithUncountedTerminatedPods sets the UncountedTerminatedPods field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the UncountedTerminatedPods field is set to the value of the last call.
|
||||
|
@ -3353,6 +3353,9 @@ var schemaYAML = typed.YAMLObject(`types:
|
||||
- name: backoffLimit
|
||||
type:
|
||||
scalar: numeric
|
||||
- name: backoffLimitPerIndex
|
||||
type:
|
||||
scalar: numeric
|
||||
- name: completionMode
|
||||
type:
|
||||
scalar: string
|
||||
@ -3362,6 +3365,9 @@ var schemaYAML = typed.YAMLObject(`types:
|
||||
- name: manualSelector
|
||||
type:
|
||||
scalar: boolean
|
||||
- name: maxFailedIndexes
|
||||
type:
|
||||
scalar: numeric
|
||||
- name: parallelism
|
||||
type:
|
||||
scalar: numeric
|
||||
@ -3402,6 +3408,9 @@ var schemaYAML = typed.YAMLObject(`types:
|
||||
- name: failed
|
||||
type:
|
||||
scalar: numeric
|
||||
- name: failedIndexes
|
||||
type:
|
||||
scalar: string
|
||||
- name: ready
|
||||
type:
|
||||
scalar: numeric
|
||||
|
Loading…
Reference in New Issue
Block a user