mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +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.",
|
"description": "ReplicationControllerSpec is the specification of a replication controller.",
|
||||||
"properties": {
|
"properties": {
|
||||||
"minReadySeconds": {
|
"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)",
|
"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",
|
"format": "int32",
|
||||||
"type": "integer"
|
"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": {
|
"minReadySeconds": {
|
||||||
SchemaProps: spec.SchemaProps{
|
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)",
|
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"},
|
Type: []string{"integer"},
|
||||||
Format: "int32",
|
Format: "int32",
|
||||||
},
|
},
|
||||||
|
@ -5094,6 +5094,7 @@ message ReplicationControllerSpec {
|
|||||||
// without any of its container crashing, for it to be considered available.
|
// 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)
|
// Defaults to 0 (pod will be considered available as soon as it is ready)
|
||||||
// +optional
|
// +optional
|
||||||
|
// +default=0
|
||||||
// +k8s:minimum=0
|
// +k8s:minimum=0
|
||||||
optional int32 minReadySeconds = 4;
|
optional int32 minReadySeconds = 4;
|
||||||
|
|
||||||
|
@ -5116,6 +5116,7 @@ type ReplicationControllerSpec struct {
|
|||||||
// without any of its container crashing, for it to be considered available.
|
// 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)
|
// Defaults to 0 (pod will be considered available as soon as it is ready)
|
||||||
// +optional
|
// +optional
|
||||||
|
// +default=0
|
||||||
// +k8s:minimum=0
|
// +k8s:minimum=0
|
||||||
MinReadySeconds int32 `json:"minReadySeconds,omitempty" protobuf:"varint,4,opt,name=minReadySeconds"`
|
MinReadySeconds int32 `json:"minReadySeconds,omitempty" protobuf:"varint,4,opt,name=minReadySeconds"`
|
||||||
|
|
||||||
|
@ -7646,6 +7646,7 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
- name: minReadySeconds
|
- name: minReadySeconds
|
||||||
type:
|
type:
|
||||||
scalar: numeric
|
scalar: numeric
|
||||||
|
default: 0
|
||||||
- name: replicas
|
- name: replicas
|
||||||
type:
|
type:
|
||||||
scalar: numeric
|
scalar: numeric
|
||||||
|
Loading…
Reference in New Issue
Block a user