[sts] Generated: Make available replicas optional

This commit is contained in:
ravisantoshgudimetla 2022-04-01 11:52:44 -04:00
parent 885f14d162
commit 9eb544e78a
6 changed files with 8 additions and 7 deletions

View File

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

View File

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

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{ 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{ 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{ Dependencies: []string{

View File

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

View File

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

View File

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