Merge pull request #109241 from ravisantoshgudimetla/sts-ar-optional

Make STS available replicas optional
This commit is contained in:
Kubernetes Prow Robot 2022-04-01 19:52:20 -07:00 committed by GitHub
commit 3024ddcfe2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 12 additions and 7 deletions

View File

@ -1442,8 +1442,7 @@
}
},
"required": [
"replicas",
"availableReplicas"
"replicas"
],
"type": "object"
},

View File

@ -1203,8 +1203,7 @@
}
},
"required": [
"replicas",
"availableReplicas"
"replicas"
],
"type": "object"
},

View File

@ -257,6 +257,7 @@ type StatefulSetStatus struct {
// Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset.
// This is a beta field and requires enabling StatefulSetMinReadySeconds feature gate.
// +optional
AvailableReplicas int32
}

View File

@ -4165,7 +4165,7 @@ func schema_k8sio_api_apps_v1_StatefulSetStatus(ref common.ReferenceCallback) co
},
},
},
Required: []string{"replicas", "availableReplicas"},
Required: []string{"replicas"},
},
},
Dependencies: []string{
@ -5273,7 +5273,7 @@ func schema_k8sio_api_apps_v1beta1_StatefulSetStatus(ref common.ReferenceCallbac
},
},
},
Required: []string{"replicas", "availableReplicas"},
Required: []string{"replicas"},
},
},
Dependencies: []string{
@ -6930,7 +6930,7 @@ func schema_k8sio_api_apps_v1beta2_StatefulSetStatus(ref common.ReferenceCallbac
},
},
},
Required: []string{"replicas", "availableReplicas"},
Required: []string{"replicas"},
},
},
Dependencies: []string{

View File

@ -759,6 +759,7 @@ message StatefulSetStatus {
// Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset.
// This is a beta field and enabled/disabled by StatefulSetMinReadySeconds feature gate.
// +optional
optional int32 availableReplicas = 11;
}

View File

@ -282,6 +282,7 @@ type StatefulSetStatus struct {
// Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset.
// This is a beta field and enabled/disabled by StatefulSetMinReadySeconds feature gate.
// +optional
AvailableReplicas int32 `json:"availableReplicas" protobuf:"varint,11,opt,name=availableReplicas"`
}

View File

@ -514,6 +514,7 @@ message StatefulSetStatus {
// Total number of available pods (ready for at least minReadySeconds) targeted by this StatefulSet.
// This is a beta field and enabled/disabled by StatefulSetMinReadySeconds feature gate.
// +optional
optional int32 availableReplicas = 11;
}

View File

@ -321,6 +321,7 @@ type StatefulSetStatus struct {
// Total number of available pods (ready for at least minReadySeconds) targeted by this StatefulSet.
// This is a beta field and enabled/disabled by StatefulSetMinReadySeconds feature gate.
// +optional
AvailableReplicas int32 `json:"availableReplicas" protobuf:"varint,11,opt,name=availableReplicas"`
}

View File

@ -801,6 +801,7 @@ message StatefulSetStatus {
// Total number of available pods (ready for at least minReadySeconds) targeted by this StatefulSet.
// This is a beta field and enabled/disabled by StatefulSetMinReadySeconds feature gate.
// +optional
optional int32 availableReplicas = 11;
}

View File

@ -330,6 +330,7 @@ type StatefulSetStatus struct {
// Total number of available pods (ready for at least minReadySeconds) targeted by this StatefulSet.
// This is a beta field and enabled/disabled by StatefulSetMinReadySeconds feature gate.
// +optional
AvailableReplicas int32 `json:"availableReplicas" protobuf:"varint,11,opt,name=availableReplicas"`
}