Add declarative default for RC.Spec.MinReadySeconds

This commit is contained in:
Tim Hockin 2024-12-22 22:59:32 -08:00 committed by Joe Betz
parent 1059dbdee1
commit 1e33616068
5 changed files with 5 additions and 0 deletions

View File

@ -6523,6 +6523,7 @@
"description": "ReplicationControllerSpec is the specification of a replication controller.",
"properties": {
"minReadySeconds": {
"default": 0,
"description": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)",
"format": "int32",
"type": "integer"

View File

@ -30106,6 +30106,7 @@ func schema_k8sio_api_core_v1_ReplicationControllerSpec(ref common.ReferenceCall
"minReadySeconds": {
SchemaProps: spec.SchemaProps{
Description: "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)",
Default: 0,
Type: []string{"integer"},
Format: "int32",
},

View File

@ -5094,6 +5094,7 @@ message ReplicationControllerSpec {
// without any of its container crashing, for it to be considered available.
// Defaults to 0 (pod will be considered available as soon as it is ready)
// +optional
// +default=0
// +k8s:minimum=0
optional int32 minReadySeconds = 4;

View File

@ -5116,6 +5116,7 @@ type ReplicationControllerSpec struct {
// without any of its container crashing, for it to be considered available.
// Defaults to 0 (pod will be considered available as soon as it is ready)
// +optional
// +default=0
// +k8s:minimum=0
MinReadySeconds int32 `json:"minReadySeconds,omitempty" protobuf:"varint,4,opt,name=minReadySeconds"`

View File

@ -7646,6 +7646,7 @@ var schemaYAML = typed.YAMLObject(`types:
- name: minReadySeconds
type:
scalar: numeric
default: 0
- name: replicas
type:
scalar: numeric