mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 02:11:09 +00:00
Added generated Docs for coordination v1 and v1beta1
Signed-off-by: Chirayu Kapoor <dev.csociety@gmail.com>
This commit is contained in:
parent
ad04936a8f
commit
79ffc163ad
4
api/openapi-spec/swagger.json
generated
4
api/openapi-spec/swagger.json
generated
@ -3891,7 +3891,7 @@
|
|||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"$ref": "#/definitions/io.k8s.api.coordination.v1.LeaseSpec",
|
"$ref": "#/definitions/io.k8s.api.coordination.v1.LeaseSpec",
|
||||||
"description": "Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status"
|
"description": "spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"type": "object",
|
"type": "object",
|
||||||
@ -3911,7 +3911,7 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"items": {
|
"items": {
|
||||||
"description": "Items is a list of schema objects.",
|
"description": "items is a list of schema objects.",
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "#/definitions/io.k8s.api.coordination.v1.Lease"
|
"$ref": "#/definitions/io.k8s.api.coordination.v1.Lease"
|
||||||
},
|
},
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"default": {},
|
"default": {},
|
||||||
"description": "Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status"
|
"description": "spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"type": "object",
|
"type": "object",
|
||||||
@ -48,7 +48,7 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"items": {
|
"items": {
|
||||||
"description": "Items is a list of schema objects.",
|
"description": "items is a list of schema objects.",
|
||||||
"items": {
|
"items": {
|
||||||
"allOf": [
|
"allOf": [
|
||||||
{
|
{
|
||||||
|
8
pkg/generated/openapi/zz_generated.openapi.go
generated
8
pkg/generated/openapi/zz_generated.openapi.go
generated
@ -15421,7 +15421,7 @@ func schema_k8sio_api_coordination_v1_Lease(ref common.ReferenceCallback) common
|
|||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
SchemaProps: spec.SchemaProps{
|
SchemaProps: spec.SchemaProps{
|
||||||
Description: "Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status",
|
Description: "spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status",
|
||||||
Default: map[string]interface{}{},
|
Default: map[string]interface{}{},
|
||||||
Ref: ref("k8s.io/api/coordination/v1.LeaseSpec"),
|
Ref: ref("k8s.io/api/coordination/v1.LeaseSpec"),
|
||||||
},
|
},
|
||||||
@ -15464,7 +15464,7 @@ func schema_k8sio_api_coordination_v1_LeaseList(ref common.ReferenceCallback) co
|
|||||||
},
|
},
|
||||||
"items": {
|
"items": {
|
||||||
SchemaProps: spec.SchemaProps{
|
SchemaProps: spec.SchemaProps{
|
||||||
Description: "Items is a list of schema objects.",
|
Description: "items is a list of schema objects.",
|
||||||
Type: []string{"array"},
|
Type: []string{"array"},
|
||||||
Items: &spec.SchemaOrArray{
|
Items: &spec.SchemaOrArray{
|
||||||
Schema: &spec.Schema{
|
Schema: &spec.Schema{
|
||||||
@ -15563,7 +15563,7 @@ func schema_k8sio_api_coordination_v1beta1_Lease(ref common.ReferenceCallback) c
|
|||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
SchemaProps: spec.SchemaProps{
|
SchemaProps: spec.SchemaProps{
|
||||||
Description: "Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status",
|
Description: "spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status",
|
||||||
Default: map[string]interface{}{},
|
Default: map[string]interface{}{},
|
||||||
Ref: ref("k8s.io/api/coordination/v1beta1.LeaseSpec"),
|
Ref: ref("k8s.io/api/coordination/v1beta1.LeaseSpec"),
|
||||||
},
|
},
|
||||||
@ -15606,7 +15606,7 @@ func schema_k8sio_api_coordination_v1beta1_LeaseList(ref common.ReferenceCallbac
|
|||||||
},
|
},
|
||||||
"items": {
|
"items": {
|
||||||
SchemaProps: spec.SchemaProps{
|
SchemaProps: spec.SchemaProps{
|
||||||
Description: "Items is a list of schema objects.",
|
Description: "items is a list of schema objects.",
|
||||||
Type: []string{"array"},
|
Type: []string{"array"},
|
||||||
Items: &spec.SchemaOrArray{
|
Items: &spec.SchemaOrArray{
|
||||||
Schema: &spec.Schema{
|
Schema: &spec.Schema{
|
||||||
|
@ -34,7 +34,7 @@ message Lease {
|
|||||||
// +optional
|
// +optional
|
||||||
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
|
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
|
||||||
|
|
||||||
// Specification of the Lease.
|
// spec contains the specification of the Lease.
|
||||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
||||||
// +optional
|
// +optional
|
||||||
optional LeaseSpec spec = 2;
|
optional LeaseSpec spec = 2;
|
||||||
@ -47,7 +47,7 @@ message LeaseList {
|
|||||||
// +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 is a list of schema objects.
|
// items is a list of schema objects.
|
||||||
repeated Lease items = 2;
|
repeated Lease items = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ package v1
|
|||||||
var map_Lease = map[string]string{
|
var map_Lease = map[string]string{
|
||||||
"": "Lease defines a lease concept.",
|
"": "Lease defines a lease concept.",
|
||||||
"metadata": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
|
"metadata": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
|
||||||
"spec": "Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status",
|
"spec": "spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status",
|
||||||
}
|
}
|
||||||
|
|
||||||
func (Lease) SwaggerDoc() map[string]string {
|
func (Lease) SwaggerDoc() map[string]string {
|
||||||
@ -40,7 +40,7 @@ func (Lease) SwaggerDoc() map[string]string {
|
|||||||
var map_LeaseList = map[string]string{
|
var map_LeaseList = map[string]string{
|
||||||
"": "LeaseList is a list of Lease objects.",
|
"": "LeaseList is a list of Lease objects.",
|
||||||
"metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
|
"metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
|
||||||
"items": "Items is a list of schema objects.",
|
"items": "items is a list of schema objects.",
|
||||||
}
|
}
|
||||||
|
|
||||||
func (LeaseList) SwaggerDoc() map[string]string {
|
func (LeaseList) SwaggerDoc() map[string]string {
|
||||||
|
@ -34,7 +34,7 @@ message Lease {
|
|||||||
// +optional
|
// +optional
|
||||||
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
|
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
|
||||||
|
|
||||||
// Specification of the Lease.
|
// spec contains the specification of the Lease.
|
||||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
||||||
// +optional
|
// +optional
|
||||||
optional LeaseSpec spec = 2;
|
optional LeaseSpec spec = 2;
|
||||||
@ -47,7 +47,7 @@ message LeaseList {
|
|||||||
// +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 is a list of schema objects.
|
// items is a list of schema objects.
|
||||||
repeated Lease items = 2;
|
repeated Lease items = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ package v1beta1
|
|||||||
var map_Lease = map[string]string{
|
var map_Lease = map[string]string{
|
||||||
"": "Lease defines a lease concept.",
|
"": "Lease defines a lease concept.",
|
||||||
"metadata": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
|
"metadata": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
|
||||||
"spec": "Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status",
|
"spec": "spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status",
|
||||||
}
|
}
|
||||||
|
|
||||||
func (Lease) SwaggerDoc() map[string]string {
|
func (Lease) SwaggerDoc() map[string]string {
|
||||||
@ -40,7 +40,7 @@ func (Lease) SwaggerDoc() map[string]string {
|
|||||||
var map_LeaseList = map[string]string{
|
var map_LeaseList = map[string]string{
|
||||||
"": "LeaseList is a list of Lease objects.",
|
"": "LeaseList is a list of Lease objects.",
|
||||||
"metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
|
"metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
|
||||||
"items": "Items is a list of schema objects.",
|
"items": "items is a list of schema objects.",
|
||||||
}
|
}
|
||||||
|
|
||||||
func (LeaseList) SwaggerDoc() map[string]string {
|
func (LeaseList) SwaggerDoc() map[string]string {
|
||||||
|
Loading…
Reference in New Issue
Block a user