mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-29 16:36:54 +00:00
add podReplacementPolicy and terminating field to job api
Kubernetes-commit: ce929520376417a9358067ad8576b10e734cb7a9
This commit is contained in:
parent
8d42d15550
commit
70917217ee
@ -40,6 +40,7 @@ type JobSpecApplyConfiguration struct {
|
|||||||
TTLSecondsAfterFinished *int32 `json:"ttlSecondsAfterFinished,omitempty"`
|
TTLSecondsAfterFinished *int32 `json:"ttlSecondsAfterFinished,omitempty"`
|
||||||
CompletionMode *batchv1.CompletionMode `json:"completionMode,omitempty"`
|
CompletionMode *batchv1.CompletionMode `json:"completionMode,omitempty"`
|
||||||
Suspend *bool `json:"suspend,omitempty"`
|
Suspend *bool `json:"suspend,omitempty"`
|
||||||
|
PodReplacementPolicy *batchv1.PodReplacementPolicy `json:"podReplacementPolicy,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// JobSpecApplyConfiguration constructs an declarative configuration of the JobSpec type for use with
|
// JobSpecApplyConfiguration constructs an declarative configuration of the JobSpec type for use with
|
||||||
@ -151,3 +152,11 @@ func (b *JobSpecApplyConfiguration) WithSuspend(value bool) *JobSpecApplyConfigu
|
|||||||
b.Suspend = &value
|
b.Suspend = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// WithPodReplacementPolicy sets the PodReplacementPolicy 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 PodReplacementPolicy field is set to the value of the last call.
|
||||||
|
func (b *JobSpecApplyConfiguration) WithPodReplacementPolicy(value batchv1.PodReplacementPolicy) *JobSpecApplyConfiguration {
|
||||||
|
b.PodReplacementPolicy = &value
|
||||||
|
return b
|
||||||
|
}
|
||||||
|
@ -31,6 +31,7 @@ type JobStatusApplyConfiguration struct {
|
|||||||
Active *int32 `json:"active,omitempty"`
|
Active *int32 `json:"active,omitempty"`
|
||||||
Succeeded *int32 `json:"succeeded,omitempty"`
|
Succeeded *int32 `json:"succeeded,omitempty"`
|
||||||
Failed *int32 `json:"failed,omitempty"`
|
Failed *int32 `json:"failed,omitempty"`
|
||||||
|
Terminating *int32 `json:"terminating,omitempty"`
|
||||||
CompletedIndexes *string `json:"completedIndexes,omitempty"`
|
CompletedIndexes *string `json:"completedIndexes,omitempty"`
|
||||||
FailedIndexes *string `json:"failedIndexes,omitempty"`
|
FailedIndexes *string `json:"failedIndexes,omitempty"`
|
||||||
UncountedTerminatedPods *UncountedTerminatedPodsApplyConfiguration `json:"uncountedTerminatedPods,omitempty"`
|
UncountedTerminatedPods *UncountedTerminatedPodsApplyConfiguration `json:"uncountedTerminatedPods,omitempty"`
|
||||||
@ -96,6 +97,14 @@ func (b *JobStatusApplyConfiguration) WithFailed(value int32) *JobStatusApplyCon
|
|||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// WithTerminating sets the Terminating 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 Terminating field is set to the value of the last call.
|
||||||
|
func (b *JobStatusApplyConfiguration) WithTerminating(value int32) *JobStatusApplyConfiguration {
|
||||||
|
b.Terminating = &value
|
||||||
|
return b
|
||||||
|
}
|
||||||
|
|
||||||
// WithCompletedIndexes sets the CompletedIndexes field in the declarative configuration to the given value
|
// WithCompletedIndexes sets the CompletedIndexes 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 CompletedIndexes field is set to the value of the last call.
|
// If called multiple times, the CompletedIndexes field is set to the value of the last call.
|
||||||
|
@ -3374,6 +3374,9 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
- name: podFailurePolicy
|
- name: podFailurePolicy
|
||||||
type:
|
type:
|
||||||
namedType: io.k8s.api.batch.v1.PodFailurePolicy
|
namedType: io.k8s.api.batch.v1.PodFailurePolicy
|
||||||
|
- name: podReplacementPolicy
|
||||||
|
type:
|
||||||
|
scalar: string
|
||||||
- name: selector
|
- name: selector
|
||||||
type:
|
type:
|
||||||
namedType: io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector
|
namedType: io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector
|
||||||
@ -3420,6 +3423,9 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
- name: succeeded
|
- name: succeeded
|
||||||
type:
|
type:
|
||||||
scalar: numeric
|
scalar: numeric
|
||||||
|
- name: terminating
|
||||||
|
type:
|
||||||
|
scalar: numeric
|
||||||
- name: uncountedTerminatedPods
|
- name: uncountedTerminatedPods
|
||||||
type:
|
type:
|
||||||
namedType: io.k8s.api.batch.v1.UncountedTerminatedPods
|
namedType: io.k8s.api.batch.v1.UncountedTerminatedPods
|
||||||
|
Loading…
Reference in New Issue
Block a user