mirror of
https://github.com/kubernetes/client-go.git
synced 2025-07-17 16:52:22 +00:00
Add ready field to Job status
to keep a count of the pods that have the ready condition. Also: - Add feature gate JobReadyPods. - Add Ready to describe. Change-Id: Ib934730a430a8e2a2f485671e345fe2330006939 Kubernetes-commit: 1bff5eb44d9897e12aff3ea10f5a856580158278
This commit is contained in:
parent
651ddcb5a2
commit
0659305cf9
@ -33,6 +33,7 @@ type JobStatusApplyConfiguration struct {
|
|||||||
Failed *int32 `json:"failed,omitempty"`
|
Failed *int32 `json:"failed,omitempty"`
|
||||||
CompletedIndexes *string `json:"completedIndexes,omitempty"`
|
CompletedIndexes *string `json:"completedIndexes,omitempty"`
|
||||||
UncountedTerminatedPods *UncountedTerminatedPodsApplyConfiguration `json:"uncountedTerminatedPods,omitempty"`
|
UncountedTerminatedPods *UncountedTerminatedPodsApplyConfiguration `json:"uncountedTerminatedPods,omitempty"`
|
||||||
|
Ready *int32 `json:"ready,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// JobStatusApplyConfiguration constructs an declarative configuration of the JobStatus type for use with
|
// JobStatusApplyConfiguration constructs an declarative configuration of the JobStatus type for use with
|
||||||
@ -109,3 +110,11 @@ func (b *JobStatusApplyConfiguration) WithUncountedTerminatedPods(value *Uncount
|
|||||||
b.UncountedTerminatedPods = value
|
b.UncountedTerminatedPods = value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// WithReady sets the Ready 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 Ready field is set to the value of the last call.
|
||||||
|
func (b *JobStatusApplyConfiguration) WithReady(value int32) *JobStatusApplyConfiguration {
|
||||||
|
b.Ready = &value
|
||||||
|
return b
|
||||||
|
}
|
||||||
|
@ -2671,6 +2671,9 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
- name: failed
|
- name: failed
|
||||||
type:
|
type:
|
||||||
scalar: numeric
|
scalar: numeric
|
||||||
|
- name: ready
|
||||||
|
type:
|
||||||
|
scalar: numeric
|
||||||
- name: startTime
|
- name: startTime
|
||||||
type:
|
type:
|
||||||
namedType: io.k8s.apimachinery.pkg.apis.meta.v1.Time
|
namedType: io.k8s.apimachinery.pkg.apis.meta.v1.Time
|
||||||
|
Loading…
Reference in New Issue
Block a user