add podReplacementPolicy and terminating field to job api
This commit is contained in:
15
pkg/generated/openapi/zz_generated.openapi.go
generated
15
pkg/generated/openapi/zz_generated.openapi.go
generated
@@ -14740,6 +14740,14 @@ func schema_k8sio_api_batch_v1_JobSpec(ref common.ReferenceCallback) common.Open
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
"podReplacementPolicy": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods\n when they are terminating (has a metadata.deletionTimestamp) or failed.\n- Failed means to wait until a previously created Pod is fully terminated (has phase\n Failed or Succeeded) before creating a replacement Pod.\n\nWhen using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. This is an alpha field. Enable JobPodReplacementPolicy to be able to use this field.\n\nPossible enum values:\n - `\"Failed\"` means to wait until a previously created Pod is fully terminated (has phase Failed or Succeeded) before creating a replacement Pod.\n - `\"TerminatingOrFailed\"` means that we recreate pods when they are terminating (has a metadata.deletionTimestamp) or failed.",
|
||||
Type: []string{"string"},
|
||||
Format: "",
|
||||
Enum: []interface{}{"Failed", "TerminatingOrFailed"},
|
||||
},
|
||||
},
|
||||
},
|
||||
Required: []string{"template"},
|
||||
},
|
||||
@@ -14810,6 +14818,13 @@ func schema_k8sio_api_batch_v1_JobStatus(ref common.ReferenceCallback) common.Op
|
||||
Format: "int32",
|
||||
},
|
||||
},
|
||||
"terminating": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp).\n\nThis field is alpha-level. The job controller populates the field when the feature gate JobPodReplacementPolicy is enabled (disabled by default).",
|
||||
Type: []string{"integer"},
|
||||
Format: "int32",
|
||||
},
|
||||
},
|
||||
"completedIndexes": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "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\".",
|
||||
|
Reference in New Issue
Block a user