Skip to content

Commit 53c2ca0

Browse files
dimsk8s-publishing-bot
authored andcommitted
Generate and format files
- Run hack/update-codegen.sh - Run hack/update-generated-device-plugin.sh - Run hack/update-generated-protobuf.sh - Run hack/update-generated-runtime.sh - Run hack/update-generated-swagger-docs.sh - Run hack/update-openapi-spec.sh - Run hack/update-gofmt.sh Signed-off-by: Davanum Srinivas <davanum@gmail.com> Kubernetes-commit: a9593d634c6a053848413e600dadbf974627515f
1 parent a08f67b commit 53c2ca0

File tree

17 files changed

+94
-80
lines changed

17 files changed

+94
-80
lines changed

cmd/client-gen/generators/util/tags.go

-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ var resultTypeSupportedVerbs = []string{
105105
// The 'input' is the input type used for creation (function argument).
106106
// The 'result' (not needed in this case) is the result type returned from the
107107
// client function.
108-
//
109108
type extension struct {
110109
// VerbName is the name of the custom verb (Scale, Instantiate, etc..)
111110
VerbName string

cmd/conversion-gen/main.go

+14-5
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ limitations under the License.
2828
// that efficiently convert between same-name types in the two
2929
// (internal, external) packages. The generated functions include
3030
// ones named
31-
// autoConvert_<pkg1>_<type>_To_<pkg2>_<type>
31+
//
32+
// autoConvert_<pkg1>_<type>_To_<pkg2>_<type>
33+
//
3234
// for each such pair of types --- both with (pkg1,pkg2) =
3335
// (internal,external) and (pkg1,pkg2) = (external,internal). The
3436
// generated conversion functions recurse on the structure of the data
@@ -43,7 +45,9 @@ limitations under the License.
4345
//
4446
// For each pair of types `conversion-gen` will also generate a
4547
// function named
46-
// Convert_<pkg1>_<type>_To_<pkg2>_<type>
48+
//
49+
// Convert_<pkg1>_<type>_To_<pkg2>_<type>
50+
//
4751
// if both of two conditions are met: (1) the destination package does
4852
// not contain a function of that name in a non-generated file and (2)
4953
// the generation of the corresponding autoConvert_... function did
@@ -65,12 +69,16 @@ limitations under the License.
6569
// package's `doc.go` file (currently anywhere in that file is
6670
// acceptable, but the recommended location is above the `package`
6771
// statement), of the form:
68-
// // +k8s:conversion-gen=<import-path-of-internal-package>
72+
//
73+
// // +k8s:conversion-gen=<import-path-of-internal-package>
74+
//
6975
// This introduces a conversion task, for which the destination
7076
// package is the one containing the file with the tag and the tag
7177
// identifies a package containing internal types. If there is also a
7278
// tag of the form
73-
// // +k8s:conversion-gen-external-types=<import-path-of-external-package>
79+
//
80+
// // +k8s:conversion-gen-external-types=<import-path-of-external-package>
81+
//
7482
// then it identifies the package containing the external types;
7583
// otherwise they are in the destination package.
7684
//
@@ -82,7 +90,8 @@ limitations under the License.
8290
//
8391
// When generating for a package, individual types or fields of structs may opt
8492
// out of Conversion generation by specifying a comment on the of the form:
85-
// // +k8s:conversion-gen=false
93+
//
94+
// // +k8s:conversion-gen=false
8695
package main
8796

8897
import (

cmd/deepcopy-gen/main.go

+6-3
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,18 @@ limitations under the License.
2828
// Generation is governed by comment tags in the source. Any package may
2929
// request DeepCopy generation by including a comment in the file-comments of
3030
// one file, of the form:
31-
// // +k8s:deepcopy-gen=package
31+
//
32+
// // +k8s:deepcopy-gen=package
3233
//
3334
// DeepCopy functions can be generated for individual types, rather than the
3435
// entire package by specifying a comment on the type definion of the form:
35-
// // +k8s:deepcopy-gen=true
36+
//
37+
// // +k8s:deepcopy-gen=true
3638
//
3739
// When generating for a whole package, individual types may opt out of
3840
// DeepCopy generation by specifying a comment on the of the form:
39-
// // +k8s:deepcopy-gen=false
41+
//
42+
// // +k8s:deepcopy-gen=false
4043
//
4144
// Note that registration is a whole-package option, and is not available for
4245
// individual types.

cmd/defaulter-gen/main.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,18 @@ limitations under the License.
2424
// request defaulter generation by including one or more comment tags at
2525
// the package comment level:
2626
//
27-
// // +k8s:defaulter-gen=<field-name-to-flag>
27+
// // +k8s:defaulter-gen=<field-name-to-flag>
2828
//
2929
// which will create defaulters for any type that contains the provided
3030
// field name (if the type has defaulters). Any type may request explicit
3131
// defaulting by providing the comment tag:
3232
//
33-
// // +k8s:defaulter-gen=true|false
33+
// // +k8s:defaulter-gen=true|false
3434
//
3535
// An existing defaulter method (`SetDefaults_TYPE`) can provide the
3636
// comment tag:
3737
//
38-
// // +k8s:defaulter-gen=covers
38+
// // +k8s:defaulter-gen=covers
3939
//
4040
// to indicate that the defaulter does not or should not call any nested
4141
// defaulters.

cmd/go-to-protobuf/protobuf/parser.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ func RewriteGeneratedGogoProtobufFile(name string, extractFn ExtractFunc, option
110110
// as being "optional" (they may be nil on the wire). This allows protobuf to serialize a map or slice and
111111
// properly discriminate between empty and nil (which is not possible in protobuf).
112112
// TODO: move into upstream gogo-protobuf once https://github.com/gogo/protobuf/issues/181
113-
// has agreement
113+
//
114+
// has agreement
114115
func rewriteOptionalMethods(decl ast.Decl, isOptional OptionalFunc) {
115116
switch t := decl.(type) {
116117
case *ast.FuncDecl:

cmd/prerelease-lifecycle-gen/main.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ limitations under the License.
2222
// Generation is governed by comment tags in the source. Any package may
2323
// request Status generation by including a comment in the file-comments of
2424
// one file, of the form:
25-
// // +k8s:prerelease-lifecycle-gen=true
25+
//
26+
// // +k8s:prerelease-lifecycle-gen=true
2627
//
2728
// // +k8s:prerelease-lifecycle-gen:introduced=1.19
2829
// // +k8s:prerelease-lifecycle-gen:deprecated=1.22

cmd/prerelease-lifecycle-gen/prerelease-lifecycle-generators/status.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,8 @@ func (g *genPreleaseLifecycle) Filter(c *generator.Context, t *types.Type) bool
315315
// versionMethod returns the signature of an <methodName>() method, nil or an error
316316
// if the type is wrong. Introduced() allows more efficient deep copy
317317
// implementations to be defined by the type's author. The correct signature
318-
// func (t *T) <methodName>() string
318+
//
319+
// func (t *T) <methodName>() string
319320
func versionMethod(methodName string, t *types.Type) (*types.Signature, error) {
320321
f, found := t.Methods[methodName]
321322
if !found {

examples/HyphenGroup/clientset/versioned/fake/register.go

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

examples/HyphenGroup/clientset/versioned/scheme/register.go

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

examples/MixedCase/clientset/versioned/fake/register.go

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

examples/MixedCase/clientset/versioned/scheme/register.go

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

examples/apiserver/clientset/internalversion/fake/register.go

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

examples/apiserver/clientset/versioned/fake/register.go

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

examples/apiserver/clientset/versioned/scheme/register.go

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

examples/apiserver/openapi/zz_generated.openapi.go

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

examples/crd/clientset/versioned/fake/register.go

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

examples/crd/clientset/versioned/scheme/register.go

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

0 commit comments

Comments
 (0)