mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-24 14:12:18 +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"`
|
ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty"`
|
||||||
PodFailurePolicy *PodFailurePolicyApplyConfiguration `json:"podFailurePolicy,omitempty"`
|
PodFailurePolicy *PodFailurePolicyApplyConfiguration `json:"podFailurePolicy,omitempty"`
|
||||||
BackoffLimit *int32 `json:"backoffLimit,omitempty"`
|
BackoffLimit *int32 `json:"backoffLimit,omitempty"`
|
||||||
|
BackoffLimitPerIndex *int32 `json:"backoffLimitPerIndex,omitempty"`
|
||||||
|
MaxFailedIndexes *int32 `json:"maxFailedIndexes,omitempty"`
|
||||||
Selector *metav1.LabelSelectorApplyConfiguration `json:"selector,omitempty"`
|
Selector *metav1.LabelSelectorApplyConfiguration `json:"selector,omitempty"`
|
||||||
ManualSelector *bool `json:"manualSelector,omitempty"`
|
ManualSelector *bool `json:"manualSelector,omitempty"`
|
||||||
Template *corev1.PodTemplateSpecApplyConfiguration `json:"template,omitempty"`
|
Template *corev1.PodTemplateSpecApplyConfiguration `json:"template,omitempty"`
|
||||||
@ -86,6 +88,22 @@ func (b *JobSpecApplyConfiguration) WithBackoffLimit(value int32) *JobSpecApplyC
|
|||||||
return b
|
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
|
// 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.
|
// 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.
|
// 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"`
|
Succeeded *int32 `json:"succeeded,omitempty"`
|
||||||
Failed *int32 `json:"failed,omitempty"`
|
Failed *int32 `json:"failed,omitempty"`
|
||||||
CompletedIndexes *string `json:"completedIndexes,omitempty"`
|
CompletedIndexes *string `json:"completedIndexes,omitempty"`
|
||||||
|
FailedIndexes *string `json:"failedIndexes,omitempty"`
|
||||||
UncountedTerminatedPods *UncountedTerminatedPodsApplyConfiguration `json:"uncountedTerminatedPods,omitempty"`
|
UncountedTerminatedPods *UncountedTerminatedPodsApplyConfiguration `json:"uncountedTerminatedPods,omitempty"`
|
||||||
Ready *int32 `json:"ready,omitempty"`
|
Ready *int32 `json:"ready,omitempty"`
|
||||||
}
|
}
|
||||||
@ -103,6 +104,14 @@ func (b *JobStatusApplyConfiguration) WithCompletedIndexes(value string) *JobSta
|
|||||||
return b
|
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
|
// 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.
|
// 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.
|
// 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
|
- name: backoffLimit
|
||||||
type:
|
type:
|
||||||
scalar: numeric
|
scalar: numeric
|
||||||
|
- name: backoffLimitPerIndex
|
||||||
|
type:
|
||||||
|
scalar: numeric
|
||||||
- name: completionMode
|
- name: completionMode
|
||||||
type:
|
type:
|
||||||
scalar: string
|
scalar: string
|
||||||
@ -3362,6 +3365,9 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
- name: manualSelector
|
- name: manualSelector
|
||||||
type:
|
type:
|
||||||
scalar: boolean
|
scalar: boolean
|
||||||
|
- name: maxFailedIndexes
|
||||||
|
type:
|
||||||
|
scalar: numeric
|
||||||
- name: parallelism
|
- name: parallelism
|
||||||
type:
|
type:
|
||||||
scalar: numeric
|
scalar: numeric
|
||||||
@ -3402,6 +3408,9 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
- name: failed
|
- name: failed
|
||||||
type:
|
type:
|
||||||
scalar: numeric
|
scalar: numeric
|
||||||
|
- name: failedIndexes
|
||||||
|
type:
|
||||||
|
scalar: string
|
||||||
- name: ready
|
- name: ready
|
||||||
type:
|
type:
|
||||||
scalar: numeric
|
scalar: numeric
|
||||||
|
Loading…
Reference in New Issue
Block a user