From 7e58e0042bcf4e11739d9c59b15f83e6ace2fb8d Mon Sep 17 00:00:00 2001 From: Michal Wozniak Date: Mon, 6 Nov 2023 17:56:56 +0100 Subject: [PATCH] Fix API comment for the Job ready field Kubernetes-commit: 9d5b2a4476269e2b05c4d346a2f91cc8caf5ce1d --- batch/v1/generated.proto | 3 --- batch/v1/types.go | 3 --- batch/v1/types_swagger_doc_generated.go | 2 +- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/batch/v1/generated.proto b/batch/v1/generated.proto index 0fe2a89f17..03547dacb4 100644 --- a/batch/v1/generated.proto +++ b/batch/v1/generated.proto @@ -421,9 +421,6 @@ message JobStatus { optional UncountedTerminatedPods uncountedTerminatedPods = 8; // The number of pods which have a Ready condition. - // - // This field is beta-level. The job controller populates the field when - // the feature gate JobReadyPods is enabled (enabled by default). // +optional optional int32 ready = 9; } diff --git a/batch/v1/types.go b/batch/v1/types.go index 00759d561d..2a77b7b08f 100644 --- a/batch/v1/types.go +++ b/batch/v1/types.go @@ -501,9 +501,6 @@ type JobStatus struct { UncountedTerminatedPods *UncountedTerminatedPods `json:"uncountedTerminatedPods,omitempty" protobuf:"bytes,8,opt,name=uncountedTerminatedPods"` // The number of pods which have a Ready condition. - // - // This field is beta-level. The job controller populates the field when - // the feature gate JobReadyPods is enabled (enabled by default). // +optional Ready *int32 `json:"ready,omitempty" protobuf:"varint,9,opt,name=ready"` } diff --git a/batch/v1/types_swagger_doc_generated.go b/batch/v1/types_swagger_doc_generated.go index a21bd77456..51a155203b 100644 --- a/batch/v1/types_swagger_doc_generated.go +++ b/batch/v1/types_swagger_doc_generated.go @@ -144,7 +144,7 @@ var map_JobStatus = map[string]string{ "completedIndexes": "completedIndexes holds the completed indexes when .spec.completionMode = \"Indexed\" in a text format. The indexes are represented as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\".", "failedIndexes": "FailedIndexes holds the failed indexes when backoffLimitPerIndex=true. The indexes are represented in the text format analogous as for the `completedIndexes` field, ie. they are kept as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the failed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\". This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).", "uncountedTerminatedPods": "uncountedTerminatedPods holds the UIDs of Pods that have terminated but the job controller hasn't yet accounted for in the status counters.\n\nThe job controller creates pods with a finalizer. When a pod terminates (succeeded or failed), the controller does three steps to account for it in the job status:\n\n1. Add the pod UID to the arrays in this field. 2. Remove the pod finalizer. 3. Remove the pod UID from the arrays while increasing the corresponding\n counter.\n\nOld jobs might not be tracked using this field, in which case the field remains null.", - "ready": "The number of pods which have a Ready condition.\n\nThis field is beta-level. The job controller populates the field when the feature gate JobReadyPods is enabled (enabled by default).", + "ready": "The number of pods which have a Ready condition.", } func (JobStatus) SwaggerDoc() map[string]string {