mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 10:20:51 +00:00
Changed API field references and generated docs for coordination v1 and v1beta1
Signed-off-by: Chirayu Kapoor <dev.csociety@gmail.com>
This commit is contained in:
parent
79ffc163ad
commit
693f7aef6e
2
api/openapi-spec/swagger.json
generated
2
api/openapi-spec/swagger.json
generated
@ -3950,7 +3950,7 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"leaseDurationSeconds": {
|
"leaseDurationSeconds": {
|
||||||
"description": "leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime.",
|
"description": "leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed renewTime.",
|
||||||
"format": "int32",
|
"format": "int32",
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
|
@ -101,7 +101,7 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"leaseDurationSeconds": {
|
"leaseDurationSeconds": {
|
||||||
"description": "leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime.",
|
"description": "leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed renewTime.",
|
||||||
"format": "int32",
|
"format": "int32",
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
|
@ -40,7 +40,7 @@ type LeaseSpec struct {
|
|||||||
HolderIdentity *string
|
HolderIdentity *string
|
||||||
// leaseDurationSeconds is a duration that candidates for a lease need
|
// leaseDurationSeconds is a duration that candidates for a lease need
|
||||||
// to wait to force acquire it. This is measure against time of last
|
// to wait to force acquire it. This is measure against time of last
|
||||||
// observed RenewTime.
|
// observed renewTime.
|
||||||
// +optional
|
// +optional
|
||||||
LeaseDurationSeconds *int32
|
LeaseDurationSeconds *int32
|
||||||
// acquireTime is a time when the current lease was acquired.
|
// acquireTime is a time when the current lease was acquired.
|
||||||
|
4
pkg/generated/openapi/zz_generated.openapi.go
generated
4
pkg/generated/openapi/zz_generated.openapi.go
generated
@ -15501,7 +15501,7 @@ func schema_k8sio_api_coordination_v1_LeaseSpec(ref common.ReferenceCallback) co
|
|||||||
},
|
},
|
||||||
"leaseDurationSeconds": {
|
"leaseDurationSeconds": {
|
||||||
SchemaProps: spec.SchemaProps{
|
SchemaProps: spec.SchemaProps{
|
||||||
Description: "leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime.",
|
Description: "leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed renewTime.",
|
||||||
Type: []string{"integer"},
|
Type: []string{"integer"},
|
||||||
Format: "int32",
|
Format: "int32",
|
||||||
},
|
},
|
||||||
@ -15643,7 +15643,7 @@ func schema_k8sio_api_coordination_v1beta1_LeaseSpec(ref common.ReferenceCallbac
|
|||||||
},
|
},
|
||||||
"leaseDurationSeconds": {
|
"leaseDurationSeconds": {
|
||||||
SchemaProps: spec.SchemaProps{
|
SchemaProps: spec.SchemaProps{
|
||||||
Description: "leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime.",
|
Description: "leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed renewTime.",
|
||||||
Type: []string{"integer"},
|
Type: []string{"integer"},
|
||||||
Format: "int32",
|
Format: "int32",
|
||||||
},
|
},
|
||||||
|
@ -59,7 +59,7 @@ message LeaseSpec {
|
|||||||
|
|
||||||
// leaseDurationSeconds is a duration that candidates for a lease need
|
// leaseDurationSeconds is a duration that candidates for a lease need
|
||||||
// to wait to force acquire it. This is measure against time of last
|
// to wait to force acquire it. This is measure against time of last
|
||||||
// observed RenewTime.
|
// observed renewTime.
|
||||||
// +optional
|
// +optional
|
||||||
optional int32 leaseDurationSeconds = 2;
|
optional int32 leaseDurationSeconds = 2;
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ type LeaseSpec struct {
|
|||||||
HolderIdentity *string `json:"holderIdentity,omitempty" protobuf:"bytes,1,opt,name=holderIdentity"`
|
HolderIdentity *string `json:"holderIdentity,omitempty" protobuf:"bytes,1,opt,name=holderIdentity"`
|
||||||
// leaseDurationSeconds is a duration that candidates for a lease need
|
// leaseDurationSeconds is a duration that candidates for a lease need
|
||||||
// to wait to force acquire it. This is measure against time of last
|
// to wait to force acquire it. This is measure against time of last
|
||||||
// observed RenewTime.
|
// observed renewTime.
|
||||||
// +optional
|
// +optional
|
||||||
LeaseDurationSeconds *int32 `json:"leaseDurationSeconds,omitempty" protobuf:"varint,2,opt,name=leaseDurationSeconds"`
|
LeaseDurationSeconds *int32 `json:"leaseDurationSeconds,omitempty" protobuf:"varint,2,opt,name=leaseDurationSeconds"`
|
||||||
// acquireTime is a time when the current lease was acquired.
|
// acquireTime is a time when the current lease was acquired.
|
||||||
|
@ -50,7 +50,7 @@ func (LeaseList) SwaggerDoc() map[string]string {
|
|||||||
var map_LeaseSpec = map[string]string{
|
var map_LeaseSpec = map[string]string{
|
||||||
"": "LeaseSpec is a specification of a Lease.",
|
"": "LeaseSpec is a specification of a Lease.",
|
||||||
"holderIdentity": "holderIdentity contains the identity of the holder of a current lease.",
|
"holderIdentity": "holderIdentity contains the identity of the holder of a current lease.",
|
||||||
"leaseDurationSeconds": "leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime.",
|
"leaseDurationSeconds": "leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed renewTime.",
|
||||||
"acquireTime": "acquireTime is a time when the current lease was acquired.",
|
"acquireTime": "acquireTime is a time when the current lease was acquired.",
|
||||||
"renewTime": "renewTime is a time when the current holder of a lease has last updated the lease.",
|
"renewTime": "renewTime is a time when the current holder of a lease has last updated the lease.",
|
||||||
"leaseTransitions": "leaseTransitions is the number of transitions of a lease between holders.",
|
"leaseTransitions": "leaseTransitions is the number of transitions of a lease between holders.",
|
||||||
|
@ -59,7 +59,7 @@ message LeaseSpec {
|
|||||||
|
|
||||||
// leaseDurationSeconds is a duration that candidates for a lease need
|
// leaseDurationSeconds is a duration that candidates for a lease need
|
||||||
// to wait to force acquire it. This is measure against time of last
|
// to wait to force acquire it. This is measure against time of last
|
||||||
// observed RenewTime.
|
// observed renewTime.
|
||||||
// +optional
|
// +optional
|
||||||
optional int32 leaseDurationSeconds = 2;
|
optional int32 leaseDurationSeconds = 2;
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ type LeaseSpec struct {
|
|||||||
HolderIdentity *string `json:"holderIdentity,omitempty" protobuf:"bytes,1,opt,name=holderIdentity"`
|
HolderIdentity *string `json:"holderIdentity,omitempty" protobuf:"bytes,1,opt,name=holderIdentity"`
|
||||||
// leaseDurationSeconds is a duration that candidates for a lease need
|
// leaseDurationSeconds is a duration that candidates for a lease need
|
||||||
// to wait to force acquire it. This is measure against time of last
|
// to wait to force acquire it. This is measure against time of last
|
||||||
// observed RenewTime.
|
// observed renewTime.
|
||||||
// +optional
|
// +optional
|
||||||
LeaseDurationSeconds *int32 `json:"leaseDurationSeconds,omitempty" protobuf:"varint,2,opt,name=leaseDurationSeconds"`
|
LeaseDurationSeconds *int32 `json:"leaseDurationSeconds,omitempty" protobuf:"varint,2,opt,name=leaseDurationSeconds"`
|
||||||
// acquireTime is a time when the current lease was acquired.
|
// acquireTime is a time when the current lease was acquired.
|
||||||
|
@ -50,7 +50,7 @@ func (LeaseList) SwaggerDoc() map[string]string {
|
|||||||
var map_LeaseSpec = map[string]string{
|
var map_LeaseSpec = map[string]string{
|
||||||
"": "LeaseSpec is a specification of a Lease.",
|
"": "LeaseSpec is a specification of a Lease.",
|
||||||
"holderIdentity": "holderIdentity contains the identity of the holder of a current lease.",
|
"holderIdentity": "holderIdentity contains the identity of the holder of a current lease.",
|
||||||
"leaseDurationSeconds": "leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime.",
|
"leaseDurationSeconds": "leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed renewTime.",
|
||||||
"acquireTime": "acquireTime is a time when the current lease was acquired.",
|
"acquireTime": "acquireTime is a time when the current lease was acquired.",
|
||||||
"renewTime": "renewTime is a time when the current holder of a lease has last updated the lease.",
|
"renewTime": "renewTime is a time when the current holder of a lease has last updated the lease.",
|
||||||
"leaseTransitions": "leaseTransitions is the number of transitions of a lease between holders.",
|
"leaseTransitions": "leaseTransitions is the number of transitions of a lease between holders.",
|
||||||
|
Loading…
Reference in New Issue
Block a user