mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Add declarative default for RC.Spec.MinReadySeconds
This commit is contained in:
parent
1059dbdee1
commit
1e33616068
1
api/openapi-spec/v3/api__v1_openapi.json
generated
1
api/openapi-spec/v3/api__v1_openapi.json
generated
@ -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"
|
||||
|
1
pkg/generated/openapi/zz_generated.openapi.go
generated
1
pkg/generated/openapi/zz_generated.openapi.go
generated
@ -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",
|
||||
},
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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"`
|
||||
|
||||
|
@ -7646,6 +7646,7 @@ var schemaYAML = typed.YAMLObject(`types:
|
||||
- name: minReadySeconds
|
||||
type:
|
||||
scalar: numeric
|
||||
default: 0
|
||||
- name: replicas
|
||||
type:
|
||||
scalar: numeric
|
||||
|
Loading…
Reference in New Issue
Block a user