mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #99811 from lauchokyip/fixtype
Added descriptions to api/apiserverinternal/v1alpha1/types.go
This commit is contained in:
commit
136009fd69
4
api/openapi-spec/swagger.json
generated
4
api/openapi-spec/swagger.json
generated
@ -787,6 +787,7 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"items": {
|
"items": {
|
||||||
|
"description": "Items holds a list of StorageVersion",
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion"
|
"$ref": "#/definitions/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion"
|
||||||
},
|
},
|
||||||
@ -797,7 +798,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": [
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
./staging/src/k8s.io/api/apiserverinternal/v1alpha1/types.go
|
|
||||||
./staging/src/k8s.io/api/apps/v1/types.go
|
./staging/src/k8s.io/api/apps/v1/types.go
|
||||||
./staging/src/k8s.io/api/apps/v1beta1/types.go
|
./staging/src/k8s.io/api/apps/v1beta1/types.go
|
||||||
./staging/src/k8s.io/api/apps/v1beta2/types.go
|
./staging/src/k8s.io/api/apps/v1beta2/types.go
|
||||||
|
@ -86,9 +86,12 @@ message StorageVersionCondition {
|
|||||||
|
|
||||||
// A list of StorageVersions.
|
// A list of StorageVersions.
|
||||||
message StorageVersionList {
|
message StorageVersionList {
|
||||||
|
// Standard list metadata.
|
||||||
|
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||||
// +optional
|
// +optional
|
||||||
optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
|
optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
|
||||||
|
|
||||||
|
// Items holds a list of StorageVersion
|
||||||
repeated StorageVersion items = 2;
|
repeated StorageVersion items = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -121,7 +121,10 @@ type StorageVersionCondition struct {
|
|||||||
// A list of StorageVersions.
|
// A list of StorageVersions.
|
||||||
type StorageVersionList struct {
|
type StorageVersionList 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
|
// +optional
|
||||||
metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
|
metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
|
||||||
Items []StorageVersion `json:"items" protobuf:"bytes,2,rep,name=items"`
|
// Items holds a list of StorageVersion
|
||||||
|
Items []StorageVersion `json:"items" protobuf:"bytes,2,rep,name=items"`
|
||||||
}
|
}
|
||||||
|
@ -64,7 +64,9 @@ func (StorageVersionCondition) SwaggerDoc() map[string]string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var map_StorageVersionList = map[string]string{
|
var map_StorageVersionList = map[string]string{
|
||||||
"": "A list of StorageVersions.",
|
"": "A list of StorageVersions.",
|
||||||
|
"metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
|
||||||
|
"items": "Items holds a list of StorageVersion",
|
||||||
}
|
}
|
||||||
|
|
||||||
func (StorageVersionList) SwaggerDoc() map[string]string {
|
func (StorageVersionList) SwaggerDoc() map[string]string {
|
||||||
|
Loading…
Reference in New Issue
Block a user