Avoid returning nil responseKind in v1beta1 aggregated discovery

This commit is contained in:
Jordan Liggitt
2023-08-08 14:25:56 -04:00
parent 815b18a461
commit 1876ddf714
11 changed files with 351 additions and 44 deletions

View File

@@ -4428,7 +4428,7 @@ func schema_k8sio_api_apidiscovery_v2beta1_APIResourceDiscovery(ref common.Refer
},
"responseKind": {
SchemaProps: spec.SchemaProps{
Description: "responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns. APIs may return other objects types at their discretion, such as error conditions, requests for alternate representations, or other operation specific behavior. This value will be null if an APIService reports subresources but supports no operations on the parent resource",
Description: "responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns. APIs may return other objects types at their discretion, such as error conditions, requests for alternate representations, or other operation specific behavior. This value will be null or empty if an APIService reports subresources but supports no operations on the parent resource",
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionKind"),
},
},
@@ -4556,7 +4556,7 @@ func schema_k8sio_api_apidiscovery_v2beta1_APISubresourceDiscovery(ref common.Re
},
"responseKind": {
SchemaProps: spec.SchemaProps{
Description: "responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns. Some subresources do not return normal resources, these will have null return types.",
Description: "responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns. Some subresources do not return normal resources, these will have null or empty return types.",
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionKind"),
},
},