Skip to content

Commit

Permalink
Merge pull request #125189 from mimowo/improve-ready-comment
Browse files Browse the repository at this point in the history
Improve the Job API comment for ready field
  • Loading branch information
k8s-ci-robot authored Jun 5, 2024
2 parents d8b33e3 + 551464f commit 9e2075b
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion api/openapi-spec/swagger.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/openapi-spec/v3/apis__batch__v1_openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@
"type": "string"
},
"ready": {
"description": "The number of pods which have a Ready condition.",
"description": "The number of active pods which have a Ready condition and are not terminating (without a deletionTimestamp).",
"format": "int32",
"type": "integer"
},
Expand Down
3 changes: 2 additions & 1 deletion pkg/apis/batch/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,8 @@ type JobStatus struct {
// +optional
Terminating *int32

// The number of active pods which have a Ready condition.
// The number of active pods which have a Ready condition and are not
// terminating (without a deletionTimestamp).
// +optional
Ready *int32

Expand Down
2 changes: 1 addition & 1 deletion pkg/generated/openapi/zz_generated.openapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions staging/src/k8s.io/api/batch/v1/generated.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions staging/src/k8s.io/api/batch/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -597,8 +597,8 @@ type JobStatus struct {
// +optional
UncountedTerminatedPods *UncountedTerminatedPods `json:"uncountedTerminatedPods,omitempty" protobuf:"bytes,8,opt,name=uncountedTerminatedPods"`

// The number of pods which have a Ready condition.
// +optional
// The number of active pods which have a Ready condition and are not
// terminating (without a deletionTimestamp).
Ready *int32 `json:"ready,omitempty" protobuf:"varint,9,opt,name=ready"`
}

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9e2075b

Please sign in to comment.