Skip to content

Commit 8f13262

Browse files
committed
Improve Job API comment for the backoffLimit
1 parent 908bdb3 commit 8f13262

File tree

7 files changed

+11
-8
lines changed

7 files changed

+11
-8
lines changed

api/openapi-spec/swagger.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/openapi-spec/v3/apis__batch__v1_openapi.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/apis/batch/types.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,9 @@ type JobSpec struct {
347347
// +optional
348348
ActiveDeadlineSeconds *int64
349349

350-
// Optional number of retries before marking this job failed.
351-
// Defaults to 6
350+
// Specifies the number of retries before marking this job failed.
351+
// Defaults to 6, unless backoffLimitPerIndex (only Indexed Job) is specified.
352+
// When backoffLimitPerIndex is specified, backoffLimit defaults to 2147483647.
352353
// +optional
353354
BackoffLimit *int32
354355

pkg/generated/openapi/zz_generated.openapi.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

staging/src/k8s.io/api/batch/v1/generated.proto

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

staging/src/k8s.io/api/batch/v1/types.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,8 @@ type JobSpec struct {
347347
SuccessPolicy *SuccessPolicy `json:"successPolicy,omitempty" protobuf:"bytes,16,opt,name=successPolicy"`
348348

349349
// Specifies the number of retries before marking this job failed.
350-
// Defaults to 6
350+
// Defaults to 6, unless backoffLimitPerIndex (only Indexed Job) is specified.
351+
// When backoffLimitPerIndex is specified, backoffLimit defaults to 2147483647.
351352
// +optional
352353
BackoffLimit *int32 `json:"backoffLimit,omitempty" protobuf:"varint,7,opt,name=backoffLimit"`
353354

staging/src/k8s.io/api/batch/v1/types_swagger_doc_generated.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)