Merge pull request #99754 from CaoDonghui123/fixissues5

Add descirptions to /kube-aggregator/pkg/apis/apiregistration/*/types.go
This commit is contained in:
Kubernetes Prow Robot 2021-05-10 12:43:49 -07:00 committed by GitHub
commit aca84a38cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 56 additions and 18 deletions

View File

@ -19570,7 +19570,8 @@
"type": "string" "type": "string"
}, },
"metadata": { "metadata": {
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta",
"description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata"
}, },
"spec": { "spec": {
"$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec", "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec",
@ -19628,6 +19629,7 @@
"type": "string" "type": "string"
}, },
"items": { "items": {
"description": "Items is the list of APIService",
"items": { "items": {
"$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService"
}, },
@ -19638,7 +19640,8 @@
"type": "string" "type": "string"
}, },
"metadata": { "metadata": {
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta",
"description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata"
} }
}, },
"required": [ "required": [
@ -19745,7 +19748,8 @@
"type": "string" "type": "string"
}, },
"metadata": { "metadata": {
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta",
"description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata"
}, },
"spec": { "spec": {
"$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1beta1.APIServiceSpec", "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1beta1.APIServiceSpec",
@ -19803,6 +19807,7 @@
"type": "string" "type": "string"
}, },
"items": { "items": {
"description": "Items is the list of APIService",
"items": { "items": {
"$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1beta1.APIService" "$ref": "#/definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1beta1.APIService"
}, },
@ -19813,7 +19818,8 @@
"type": "string" "type": "string"
}, },
"metadata": { "metadata": {
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta",
"description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata"
} }
}, },
"required": [ "required": [

View File

@ -10,5 +10,3 @@
./staging/src/k8s.io/api/flowcontrol/v1beta1/types.go ./staging/src/k8s.io/api/flowcontrol/v1beta1/types.go
./staging/src/k8s.io/api/networking/v1/types.go ./staging/src/k8s.io/api/networking/v1/types.go
./staging/src/k8s.io/api/networking/v1beta1/types.go ./staging/src/k8s.io/api/networking/v1beta1/types.go
./staging/src/k8s.io/kube-aggregator/pkg/apis/apiregistration/v1/types.go
./staging/src/k8s.io/kube-aggregator/pkg/apis/apiregistration/v1beta1/types.go

View File

@ -31,6 +31,9 @@ option go_package = "v1";
// APIService represents a server for a particular GroupVersion. // APIService represents a server for a particular GroupVersion.
// Name must be "version.group". // Name must be "version.group".
message APIService { message APIService {
// Standard object's metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
// +optional
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
// Spec contains information for locating and communicating with a server // Spec contains information for locating and communicating with a server
@ -64,8 +67,12 @@ message APIServiceCondition {
// APIServiceList is a list of APIService objects. // APIServiceList is a list of APIService objects.
message APIServiceList { message APIServiceList {
// Standard list metadata
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
// +optional
optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
// Items is the list of APIService
repeated APIService items = 2; repeated APIService items = 2;
} }

View File

@ -23,8 +23,12 @@ import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
// APIServiceList is a list of APIService objects. // APIServiceList is a list of APIService objects.
type APIServiceList struct { type APIServiceList struct {
metav1.TypeMeta `json:",inline"` metav1.TypeMeta `json:",inline"`
// Standard list metadata
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
// +optional
metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Items is the list of APIService
Items []APIService `json:"items" protobuf:"bytes,2,rep,name=items"` Items []APIService `json:"items" protobuf:"bytes,2,rep,name=items"`
} }
@ -146,6 +150,9 @@ type APIServiceStatus struct {
// Name must be "version.group". // Name must be "version.group".
type APIService struct { type APIService struct {
metav1.TypeMeta `json:",inline"` metav1.TypeMeta `json:",inline"`
// Standard object's metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
// +optional
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Spec contains information for locating and communicating with a server // Spec contains information for locating and communicating with a server

View File

@ -31,6 +31,9 @@ option go_package = "v1beta1";
// APIService represents a server for a particular GroupVersion. // APIService represents a server for a particular GroupVersion.
// Name must be "version.group". // Name must be "version.group".
message APIService { message APIService {
// Standard object's metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
// +optional
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
// Spec contains information for locating and communicating with a server // Spec contains information for locating and communicating with a server
@ -64,8 +67,12 @@ message APIServiceCondition {
// APIServiceList is a list of APIService objects. // APIServiceList is a list of APIService objects.
message APIServiceList { message APIServiceList {
// Standard list metadata
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
// +optional
optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
// Items is the list of APIService
repeated APIService items = 2; repeated APIService items = 2;
} }

View File

@ -26,8 +26,12 @@ import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
// APIServiceList is a list of APIService objects. // APIServiceList is a list of APIService objects.
type APIServiceList struct { type APIServiceList struct {
metav1.TypeMeta `json:",inline"` metav1.TypeMeta `json:",inline"`
// Standard list metadata
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
// +optional
metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Items is the list of APIService
Items []APIService `json:"items" protobuf:"bytes,2,rep,name=items"` Items []APIService `json:"items" protobuf:"bytes,2,rep,name=items"`
} }
@ -152,6 +156,9 @@ type APIServiceStatus struct {
// Name must be "version.group". // Name must be "version.group".
type APIService struct { type APIService struct {
metav1.TypeMeta `json:",inline"` metav1.TypeMeta `json:",inline"`
// Standard object's metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
// +optional
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Spec contains information for locating and communicating with a server // Spec contains information for locating and communicating with a server

View File

@ -2536,6 +2536,7 @@ func schema_pkg_apis_apiregistration_v1_APIService(ref common.ReferenceCallback)
}, },
"metadata": { "metadata": {
SchemaProps: spec.SchemaProps{ SchemaProps: spec.SchemaProps{
Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
Default: map[string]interface{}{}, Default: map[string]interface{}{},
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"),
}, },
@ -2638,12 +2639,14 @@ func schema_pkg_apis_apiregistration_v1_APIServiceList(ref common.ReferenceCallb
}, },
"metadata": { "metadata": {
SchemaProps: spec.SchemaProps{ SchemaProps: spec.SchemaProps{
Description: "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
Default: map[string]interface{}{}, Default: map[string]interface{}{},
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"),
}, },
}, },
"items": { "items": {
SchemaProps: spec.SchemaProps{ SchemaProps: spec.SchemaProps{
Description: "Items is the list of APIService",
Type: []string{"array"}, Type: []string{"array"},
Items: &spec.SchemaOrArray{ Items: &spec.SchemaOrArray{
Schema: &spec.Schema{ Schema: &spec.Schema{
@ -2831,6 +2834,7 @@ func schema_pkg_apis_apiregistration_v1beta1_APIService(ref common.ReferenceCall
}, },
"metadata": { "metadata": {
SchemaProps: spec.SchemaProps{ SchemaProps: spec.SchemaProps{
Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
Default: map[string]interface{}{}, Default: map[string]interface{}{},
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"),
}, },
@ -2933,12 +2937,14 @@ func schema_pkg_apis_apiregistration_v1beta1_APIServiceList(ref common.Reference
}, },
"metadata": { "metadata": {
SchemaProps: spec.SchemaProps{ SchemaProps: spec.SchemaProps{
Description: "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
Default: map[string]interface{}{}, Default: map[string]interface{}{},
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"),
}, },
}, },
"items": { "items": {
SchemaProps: spec.SchemaProps{ SchemaProps: spec.SchemaProps{
Description: "Items is the list of APIService",
Type: []string{"array"}, Type: []string{"array"},
Items: &spec.SchemaOrArray{ Items: &spec.SchemaOrArray{
Schema: &spec.Schema{ Schema: &spec.Schema{