Skip to content

Commit fe602ca

Browse files
Jefftreek8s-publishing-bot
authored andcommitted
generated
Kubernetes-commit: e86c38b249bb614c13210f1fe34fb92247641ef9
1 parent fac8edb commit fe602ca

11 files changed

+1363
-105
lines changed

coordination/v1alpha2/generated.pb.go

+1,027
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coordination/v1alpha2/generated.proto

+100
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
/*
2+
Copyright The Kubernetes Authors.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
package v1alpha2
18+
19+
// This file contains a collection of methods that can be used from go-restful to
20+
// generate Swagger API documentation for its models. Please read this PR for more
21+
// information on the implementation: https://github.com/emicklei/go-restful/pull/215
22+
//
23+
// TODOs are ignored from the parser (e.g. TODO(andronat):... || TODO:...) if and only if
24+
// they are on one line! For multiple line or blocks that you want to ignore use ---.
25+
// Any context after a --- is ignored.
26+
//
27+
// Those methods can be generated by using hack/update-codegen.sh
28+
29+
// AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT.
30+
var map_LeaseCandidate = map[string]string{
31+
"": "LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.",
32+
"metadata": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
33+
"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",
34+
}
35+
36+
func (LeaseCandidate) SwaggerDoc() map[string]string {
37+
return map_LeaseCandidate
38+
}
39+
40+
var map_LeaseCandidateList = map[string]string{
41+
"": "LeaseCandidateList is a list of Lease objects.",
42+
"metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
43+
"items": "items is a list of schema objects.",
44+
}
45+
46+
func (LeaseCandidateList) SwaggerDoc() map[string]string {
47+
return map_LeaseCandidateList
48+
}
49+
50+
var map_LeaseCandidateSpec = map[string]string{
51+
"": "LeaseCandidateSpec is a specification of a Lease.",
52+
"leaseName": "LeaseName is the name of the lease for which this candidate is contending. This field is immutable.",
53+
"pingTime": "PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.",
54+
"renewTime": "RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.",
55+
"binaryVersion": "BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.",
56+
"emulationVersion": "EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\"",
57+
"strategy": "Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.",
58+
}
59+
60+
func (LeaseCandidateSpec) SwaggerDoc() map[string]string {
61+
return map_LeaseCandidateSpec
62+
}
63+
64+
// AUTO-GENERATED FUNCTIONS END HERE

coordination/v1alpha2/zz_generated.deepcopy.go

+110
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coordination/v1alpha2/zz_generated.prerelease-lifecycle.go

+58
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.

testdata/HEAD/coordination.k8s.io.v1alpha1.LeaseCandidate.yaml

-42
This file was deleted.

testdata/HEAD/coordination.k8s.io.v1alpha1.LeaseCandidate.json testdata/HEAD/coordination.k8s.io.v1alpha2.LeaseCandidate.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"kind": "LeaseCandidate",
3-
"apiVersion": "coordination.k8s.io/v1alpha1",
3+
"apiVersion": "coordination.k8s.io/v1alpha2",
44
"metadata": {
55
"name": "nameValue",
66
"generateName": "generateNameValue",
@@ -49,8 +49,6 @@
4949
"renewTime": "2003-01-01T01:01:01.000003Z",
5050
"binaryVersion": "binaryVersionValue",
5151
"emulationVersion": "emulationVersionValue",
52-
"preferredStrategies": [
53-
"preferredStrategiesValue"
54-
]
52+
"strategy": "strategyValue"
5553
}
5654
}

0 commit comments

Comments
 (0)