mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-17 11:28:58 +00:00
define endpointslice.endpoints as optional
The field is actually optional but defined as required in OpenAPI, causing issues with clients that expected the field to be required when it was not.
This commit is contained in:
3
api/openapi-spec/swagger.json
generated
3
api/openapi-spec/swagger.json
generated
@@ -12804,8 +12804,7 @@
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"addressType",
|
||||
"endpoints"
|
||||
"addressType"
|
||||
],
|
||||
"type": "object",
|
||||
"x-kubernetes-group-version-kind": [
|
||||
|
||||
@@ -226,8 +226,7 @@
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"addressType",
|
||||
"endpoints"
|
||||
"addressType"
|
||||
],
|
||||
"type": "object",
|
||||
"x-kubernetes-group-version-kind": [
|
||||
|
||||
2
pkg/generated/openapi/zz_generated.openapi.go
generated
2
pkg/generated/openapi/zz_generated.openapi.go
generated
@@ -33256,7 +33256,7 @@ func schema_k8sio_api_discovery_v1_EndpointSlice(ref common.ReferenceCallback) c
|
||||
},
|
||||
},
|
||||
},
|
||||
Required: []string{"addressType", "endpoints"},
|
||||
Required: []string{"addressType"},
|
||||
},
|
||||
},
|
||||
Dependencies: []string{
|
||||
|
||||
@@ -185,6 +185,7 @@ message EndpointSlice {
|
||||
|
||||
// endpoints is a list of unique endpoints in this slice. Each slice may
|
||||
// include a maximum of 1000 endpoints.
|
||||
// +optional
|
||||
// +listType=atomic
|
||||
repeated Endpoint endpoints = 2;
|
||||
|
||||
|
||||
@@ -52,6 +52,7 @@ type EndpointSlice struct {
|
||||
|
||||
// endpoints is a list of unique endpoints in this slice. Each slice may
|
||||
// include a maximum of 1000 endpoints.
|
||||
// +optional
|
||||
// +listType=atomic
|
||||
Endpoints []Endpoint `json:"endpoints" protobuf:"bytes,2,rep,name=endpoints"`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user