diff --git a/api/swagger-spec/v1.json b/api/swagger-spec/v1.json index ca4167ee133..4ceed4482f2 100644 --- a/api/swagger-spec/v1.json +++ b/api/swagger-spec/v1.json @@ -15143,6 +15143,9 @@ "v1.ConfigMapList": { "id": "v1.ConfigMapList", "description": "ConfigMapList is a resource containing a list of ConfigMap objects.", + "required": [ + "items" + ], "properties": { "kind": { "type": "string", diff --git a/docs/api-reference/v1/definitions.html b/docs/api-reference/v1/definitions.html index 2e46711d71a..5b20d37062f 100755 --- a/docs/api-reference/v1/definitions.html +++ b/docs/api-reference/v1/definitions.html @@ -1286,7 +1286,7 @@ Examples:

items

Items is the list of ConfigMaps.

-

false

+

true

v1.ConfigMap array

@@ -7742,7 +7742,7 @@ The resulting set of endpoints can be viewed as:
diff --git a/pkg/api/types.generated.go b/pkg/api/types.generated.go index 214eda04817..92fe66e789f 100644 --- a/pkg/api/types.generated.go +++ b/pkg/api/types.generated.go @@ -46755,14 +46755,13 @@ func (x *ConfigMapList) CodecEncodeSelf(e *codec1978.Encoder) { _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false yyq2[0] = true - yyq2[1] = len(x.Items) != 0 yyq2[2] = x.Kind != "" yyq2[3] = x.APIVersion != "" var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(4) } else { - yynn2 = 0 + yynn2 = 1 for _, b := range yyq2 { if b { yynn2++ @@ -46802,34 +46801,28 @@ func (x *ConfigMapList) CodecEncodeSelf(e *codec1978.Encoder) { } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 - if false { - } else { - h.encSliceConfigMap(([]ConfigMap)(x.Items), e) - } - } - } else { + if x.Items == nil { r.EncodeNil() + } else { + yym9 := z.EncBinary() + _ = yym9 + if false { + } else { + h.encSliceConfigMap(([]ConfigMap)(x.Items), e) + } } } else { - if yyq2[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym10 := z.EncBinary() + _ = yym10 + if false { } else { - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - h.encSliceConfigMap(([]ConfigMap)(x.Items), e) - } + h.encSliceConfigMap(([]ConfigMap)(x.Items), e) } } } diff --git a/pkg/api/types.go b/pkg/api/types.go index 14b2d66dc3b..840392cceff 100644 --- a/pkg/api/types.go +++ b/pkg/api/types.go @@ -2409,7 +2409,7 @@ type ConfigMapList struct { unversioned.ListMeta `json:"metadata,omitempty"` // Items is the list of ConfigMaps. - Items []ConfigMap `json:"items,omitempty"` + Items []ConfigMap `json:"items"` } // These constants are for remote command execution and port forwarding and are diff --git a/pkg/api/v1/types.generated.go b/pkg/api/v1/types.generated.go index 5048704178f..84953e4198d 100644 --- a/pkg/api/v1/types.generated.go +++ b/pkg/api/v1/types.generated.go @@ -46567,14 +46567,13 @@ func (x *ConfigMapList) CodecEncodeSelf(e *codec1978.Encoder) { _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false yyq2[0] = true - yyq2[1] = len(x.Items) != 0 yyq2[2] = x.Kind != "" yyq2[3] = x.APIVersion != "" var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(4) } else { - yynn2 = 0 + yynn2 = 1 for _, b := range yyq2 { if b { yynn2++ @@ -46614,34 +46613,28 @@ func (x *ConfigMapList) CodecEncodeSelf(e *codec1978.Encoder) { } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2[1] { - if x.Items == nil { - r.EncodeNil() - } else { - yym9 := z.EncBinary() - _ = yym9 - if false { - } else { - h.encSliceConfigMap(([]ConfigMap)(x.Items), e) - } - } - } else { + if x.Items == nil { r.EncodeNil() + } else { + yym9 := z.EncBinary() + _ = yym9 + if false { + } else { + h.encSliceConfigMap(([]ConfigMap)(x.Items), e) + } } } else { - if yyq2[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym10 := z.EncBinary() + _ = yym10 + if false { } else { - yym10 := z.EncBinary() - _ = yym10 - if false { - } else { - h.encSliceConfigMap(([]ConfigMap)(x.Items), e) - } + h.encSliceConfigMap(([]ConfigMap)(x.Items), e) } } } diff --git a/pkg/api/v1/types.go b/pkg/api/v1/types.go index 87b729982ad..4939bf5e583 100644 --- a/pkg/api/v1/types.go +++ b/pkg/api/v1/types.go @@ -2858,7 +2858,7 @@ type ConfigMapList struct { unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Items is the list of ConfigMaps. - Items []ConfigMap `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"` + Items []ConfigMap `json:"items" protobuf:"bytes,2,rep,name=items"` } // Type and constants for component health validation.