diff --git a/api/openapi-spec/swagger.json b/api/openapi-spec/swagger.json index 9a56a5c3286..1c0af0ba8a1 100644 --- a/api/openapi-spec/swagger.json +++ b/api/openapi-spec/swagger.json @@ -12804,8 +12804,7 @@ } }, "required": [ - "addressType", - "endpoints" + "addressType" ], "type": "object", "x-kubernetes-group-version-kind": [ diff --git a/api/openapi-spec/v3/apis__discovery.k8s.io__v1_openapi.json b/api/openapi-spec/v3/apis__discovery.k8s.io__v1_openapi.json index 151446e005d..5ad075cd9d3 100644 --- a/api/openapi-spec/v3/apis__discovery.k8s.io__v1_openapi.json +++ b/api/openapi-spec/v3/apis__discovery.k8s.io__v1_openapi.json @@ -226,8 +226,7 @@ } }, "required": [ - "addressType", - "endpoints" + "addressType" ], "type": "object", "x-kubernetes-group-version-kind": [ diff --git a/pkg/generated/openapi/zz_generated.openapi.go b/pkg/generated/openapi/zz_generated.openapi.go index 47c9ef60353..abfc6af67c8 100644 --- a/pkg/generated/openapi/zz_generated.openapi.go +++ b/pkg/generated/openapi/zz_generated.openapi.go @@ -33256,7 +33256,7 @@ func schema_k8sio_api_discovery_v1_EndpointSlice(ref common.ReferenceCallback) c }, }, }, - Required: []string{"addressType", "endpoints"}, + Required: []string{"addressType"}, }, }, Dependencies: []string{ diff --git a/staging/src/k8s.io/api/discovery/v1/generated.proto b/staging/src/k8s.io/api/discovery/v1/generated.proto index 97582a1b2a0..684b6358e33 100644 --- a/staging/src/k8s.io/api/discovery/v1/generated.proto +++ b/staging/src/k8s.io/api/discovery/v1/generated.proto @@ -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; diff --git a/staging/src/k8s.io/api/discovery/v1/types.go b/staging/src/k8s.io/api/discovery/v1/types.go index ca78ce38696..7b49933c05d 100644 --- a/staging/src/k8s.io/api/discovery/v1/types.go +++ b/staging/src/k8s.io/api/discovery/v1/types.go @@ -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"`