diff --git a/api/openapi-spec/swagger.json b/api/openapi-spec/swagger.json index bd8178826f7..79e559a3ea0 100644 --- a/api/openapi-spec/swagger.json +++ b/api/openapi-spec/swagger.json @@ -63113,7 +63113,7 @@ "type": "string" }, "failedJobsHistoryLimit": { - "description": "The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified.", + "description": "The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.", "type": "integer", "format": "int32" }, @@ -63131,7 +63131,7 @@ "format": "int64" }, "successfulJobsHistoryLimit": { - "description": "The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified.", + "description": "The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 3.", "type": "integer", "format": "int32" }, diff --git a/api/swagger-spec/batch_v1beta1.json b/api/swagger-spec/batch_v1beta1.json index 366230779b1..b53a81323b8 100644 --- a/api/swagger-spec/batch_v1beta1.json +++ b/api/swagger-spec/batch_v1beta1.json @@ -1497,12 +1497,12 @@ "successfulJobsHistoryLimit": { "type": "integer", "format": "int32", - "description": "The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified." + "description": "The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 3." }, "failedJobsHistoryLimit": { "type": "integer", "format": "int32", - "description": "The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified." + "description": "The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1." } } }, diff --git a/docs/api-reference/batch/v1beta1/definitions.html b/docs/api-reference/batch/v1beta1/definitions.html index c12abd10008..b0aef880643 100755 --- a/docs/api-reference/batch/v1beta1/definitions.html +++ b/docs/api-reference/batch/v1beta1/definitions.html @@ -3428,14 +3428,14 @@ When an object is created, the system will populate this list with the current s

successfulJobsHistoryLimit

-

The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified.

+

The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 3.

false

integer (int32)

failedJobsHistoryLimit

-

The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified.

+

The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.

false

integer (int32)

diff --git a/staging/src/k8s.io/api/batch/v1beta1/generated.proto b/staging/src/k8s.io/api/batch/v1beta1/generated.proto index f8aa2f32841..f7b871632b2 100644 --- a/staging/src/k8s.io/api/batch/v1beta1/generated.proto +++ b/staging/src/k8s.io/api/batch/v1beta1/generated.proto @@ -85,11 +85,13 @@ message CronJobSpec { // The number of successful finished jobs to retain. // This is a pointer to distinguish between explicit zero and not specified. + // Defaults to 3. // +optional optional int32 successfulJobsHistoryLimit = 6; // The number of failed finished jobs to retain. // This is a pointer to distinguish between explicit zero and not specified. + // Defaults to 1. // +optional optional int32 failedJobsHistoryLimit = 7; } diff --git a/staging/src/k8s.io/api/batch/v1beta1/types_swagger_doc_generated.go b/staging/src/k8s.io/api/batch/v1beta1/types_swagger_doc_generated.go index 6da290d1f01..f4c74e4327e 100644 --- a/staging/src/k8s.io/api/batch/v1beta1/types_swagger_doc_generated.go +++ b/staging/src/k8s.io/api/batch/v1beta1/types_swagger_doc_generated.go @@ -55,8 +55,8 @@ var map_CronJobSpec = map[string]string{ "concurrencyPolicy": "Specifies how to treat concurrent executions of a Job. Defaults to Allow.", "suspend": "This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.", "jobTemplate": "Specifies the job that will be created when executing a CronJob.", - "successfulJobsHistoryLimit": "The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified.", - "failedJobsHistoryLimit": "The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified.", + "successfulJobsHistoryLimit": "The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 3.", + "failedJobsHistoryLimit": "The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.", } func (CronJobSpec) SwaggerDoc() map[string]string {