From 30a4a7eadf46ffe71e4ffba2335748db262140c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chris=20Suszy=C5=84ski?= Date: Mon, 11 Dec 2023 13:28:27 +0100 Subject: [PATCH] Fixing lint errors --- staging/src/k8s.io/code-generator/codegen.go | 20 +++++++------- .../src/k8s.io/code-generator/codegen_test.go | 20 +++++++------- .../internal/codegen/command.go | 20 +++++++------- .../internal/codegen/command/client/cmd.go | 20 +++++++------- .../codegen/command/client/cmd_test.go | 20 +++++++------- .../internal/codegen/command/client/flags.go | 20 +++++++------- .../internal/codegen/command/client/help.go | 20 +++++++------- .../internal/codegen/command/help/cmd.go | 20 +++++++------- .../internal/codegen/command/help/cmd_test.go | 20 +++++++------- .../internal/codegen/command/help/invalid.go | 20 +++++++------- .../codegen/command/help/invalid_test.go | 20 +++++++------- .../internal/codegen/command/helpers/cmd.go | 20 +++++++------- .../codegen/command/helpers/cmd_test.go | 20 +++++++------- .../internal/codegen/command/helpers/flags.go | 20 +++++++------- .../internal/codegen/command/helpers/help.go | 20 +++++++------- .../internal/codegen/command/openapi/cmd.go | 20 +++++++------- .../codegen/command/openapi/cmd_test.go | 20 +++++++------- .../internal/codegen/command/openapi/flags.go | 20 +++++++------- .../internal/codegen/command/openapi/help.go | 20 +++++++------- .../internal/codegen/command/usage.go | 20 +++++++------- .../internal/codegen/execution/exec.go | 20 +++++++------- .../internal/codegen/execution/print.go | 20 +++++++------- .../internal/codegen/execution/print_test.go | 20 +++++++------- .../code-generator/internal/codegen/parse.go | 22 ++++++++-------- .../code-generator/internal/codegen/run.go | 20 +++++++------- .../internal/codegen/run_test.go | 20 +++++++------- .../code-generator/pkg/codegen/client/args.go | 20 +++++++------- .../code-generator/pkg/codegen/client/gen.go | 20 +++++++------- .../pkg/codegen/helpers/args.go | 20 +++++++------- .../pkg/codegen/helpers/conversion.go | 20 +++++++------- .../pkg/codegen/helpers/deepcopy.go | 20 +++++++------- .../pkg/codegen/helpers/defaulter.go | 20 +++++++------- .../pkg/codegen/helpers/generator.go | 20 +++++++------- .../pkg/codegen/helpers/generator_test.go | 26 +++++++++---------- .../pkg/codegen/helpers/generic.go | 22 ++++++++-------- .../pkg/codegen/openapi/args.go | 20 +++++++------- .../code-generator/pkg/codegen/openapi/gen.go | 20 +++++++------- .../code-generator/pkg/fs/current/dir.go | 20 +++++++------- .../code-generator/pkg/fs/current/dir_test.go | 20 +++++++------- .../code-generator/pkg/fs/current/file.go | 20 +++++++------- .../pkg/fs/current/file_test.go | 20 +++++++------- .../code-generator/pkg/fs/within_dir.go | 20 +++++++------- .../code-generator/pkg/osbin/git/find.go | 20 +++++++------- .../code-generator/pkg/osbin/git/grep.go | 20 +++++++------- .../pkg/osbin/golang/packageof.go | 20 +++++++------- .../pkg/osbin/golang/packageof_test.go | 20 +++++++------- 46 files changed, 464 insertions(+), 466 deletions(-) diff --git a/staging/src/k8s.io/code-generator/codegen.go b/staging/src/k8s.io/code-generator/codegen.go index b475ef728b959..c7337e5f30c4d 100644 --- a/staging/src/k8s.io/code-generator/codegen.go +++ b/staging/src/k8s.io/code-generator/codegen.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package main diff --git a/staging/src/k8s.io/code-generator/codegen_test.go b/staging/src/k8s.io/code-generator/codegen_test.go index ffad3fb57791b..c4e7ff426dcf3 100644 --- a/staging/src/k8s.io/code-generator/codegen_test.go +++ b/staging/src/k8s.io/code-generator/codegen_test.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package main_test diff --git a/staging/src/k8s.io/code-generator/internal/codegen/command.go b/staging/src/k8s.io/code-generator/internal/codegen/command.go index fd73e78374bae..bbd210d4f8788 100644 --- a/staging/src/k8s.io/code-generator/internal/codegen/command.go +++ b/staging/src/k8s.io/code-generator/internal/codegen/command.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package codegen diff --git a/staging/src/k8s.io/code-generator/internal/codegen/command/client/cmd.go b/staging/src/k8s.io/code-generator/internal/codegen/command/client/cmd.go index c1d7343c68101..2b5d5ed4e0401 100644 --- a/staging/src/k8s.io/code-generator/internal/codegen/command/client/cmd.go +++ b/staging/src/k8s.io/code-generator/internal/codegen/command/client/cmd.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package client diff --git a/staging/src/k8s.io/code-generator/internal/codegen/command/client/cmd_test.go b/staging/src/k8s.io/code-generator/internal/codegen/command/client/cmd_test.go index c95f7db6a6115..ebf8aced9b8ce 100644 --- a/staging/src/k8s.io/code-generator/internal/codegen/command/client/cmd_test.go +++ b/staging/src/k8s.io/code-generator/internal/codegen/command/client/cmd_test.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package client_test diff --git a/staging/src/k8s.io/code-generator/internal/codegen/command/client/flags.go b/staging/src/k8s.io/code-generator/internal/codegen/command/client/flags.go index 5fdf24c0a5eab..be65e43192abb 100644 --- a/staging/src/k8s.io/code-generator/internal/codegen/command/client/flags.go +++ b/staging/src/k8s.io/code-generator/internal/codegen/command/client/flags.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package client diff --git a/staging/src/k8s.io/code-generator/internal/codegen/command/client/help.go b/staging/src/k8s.io/code-generator/internal/codegen/command/client/help.go index 941c242b89e03..f5b65916b52cf 100644 --- a/staging/src/k8s.io/code-generator/internal/codegen/command/client/help.go +++ b/staging/src/k8s.io/code-generator/internal/codegen/command/client/help.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package client diff --git a/staging/src/k8s.io/code-generator/internal/codegen/command/help/cmd.go b/staging/src/k8s.io/code-generator/internal/codegen/command/help/cmd.go index 14b7311eda36e..27f05c461c9ac 100644 --- a/staging/src/k8s.io/code-generator/internal/codegen/command/help/cmd.go +++ b/staging/src/k8s.io/code-generator/internal/codegen/command/help/cmd.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package help diff --git a/staging/src/k8s.io/code-generator/internal/codegen/command/help/cmd_test.go b/staging/src/k8s.io/code-generator/internal/codegen/command/help/cmd_test.go index 4faeb4a54a56c..a6c84053577de 100644 --- a/staging/src/k8s.io/code-generator/internal/codegen/command/help/cmd_test.go +++ b/staging/src/k8s.io/code-generator/internal/codegen/command/help/cmd_test.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package help_test diff --git a/staging/src/k8s.io/code-generator/internal/codegen/command/help/invalid.go b/staging/src/k8s.io/code-generator/internal/codegen/command/help/invalid.go index 81320fd9f7f86..c44787084e204 100644 --- a/staging/src/k8s.io/code-generator/internal/codegen/command/help/invalid.go +++ b/staging/src/k8s.io/code-generator/internal/codegen/command/help/invalid.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package help diff --git a/staging/src/k8s.io/code-generator/internal/codegen/command/help/invalid_test.go b/staging/src/k8s.io/code-generator/internal/codegen/command/help/invalid_test.go index f92c05dd5a53c..d9cba7a519e72 100644 --- a/staging/src/k8s.io/code-generator/internal/codegen/command/help/invalid_test.go +++ b/staging/src/k8s.io/code-generator/internal/codegen/command/help/invalid_test.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package help_test diff --git a/staging/src/k8s.io/code-generator/internal/codegen/command/helpers/cmd.go b/staging/src/k8s.io/code-generator/internal/codegen/command/helpers/cmd.go index 100f48b51c32b..e6e31e3814b62 100644 --- a/staging/src/k8s.io/code-generator/internal/codegen/command/helpers/cmd.go +++ b/staging/src/k8s.io/code-generator/internal/codegen/command/helpers/cmd.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package helpers diff --git a/staging/src/k8s.io/code-generator/internal/codegen/command/helpers/cmd_test.go b/staging/src/k8s.io/code-generator/internal/codegen/command/helpers/cmd_test.go index 7152392000132..87f591a4bcc3b 100644 --- a/staging/src/k8s.io/code-generator/internal/codegen/command/helpers/cmd_test.go +++ b/staging/src/k8s.io/code-generator/internal/codegen/command/helpers/cmd_test.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package helpers_test diff --git a/staging/src/k8s.io/code-generator/internal/codegen/command/helpers/flags.go b/staging/src/k8s.io/code-generator/internal/codegen/command/helpers/flags.go index 8d8142079e51d..732d9a4908b8e 100644 --- a/staging/src/k8s.io/code-generator/internal/codegen/command/helpers/flags.go +++ b/staging/src/k8s.io/code-generator/internal/codegen/command/helpers/flags.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package helpers diff --git a/staging/src/k8s.io/code-generator/internal/codegen/command/helpers/help.go b/staging/src/k8s.io/code-generator/internal/codegen/command/helpers/help.go index b1094cc87f5a1..1ed260a4a4100 100644 --- a/staging/src/k8s.io/code-generator/internal/codegen/command/helpers/help.go +++ b/staging/src/k8s.io/code-generator/internal/codegen/command/helpers/help.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package helpers diff --git a/staging/src/k8s.io/code-generator/internal/codegen/command/openapi/cmd.go b/staging/src/k8s.io/code-generator/internal/codegen/command/openapi/cmd.go index 2cfd9efc848ae..9e8d10a8699b2 100644 --- a/staging/src/k8s.io/code-generator/internal/codegen/command/openapi/cmd.go +++ b/staging/src/k8s.io/code-generator/internal/codegen/command/openapi/cmd.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package openapi diff --git a/staging/src/k8s.io/code-generator/internal/codegen/command/openapi/cmd_test.go b/staging/src/k8s.io/code-generator/internal/codegen/command/openapi/cmd_test.go index 642d190e265e3..b5f1e12ab604e 100644 --- a/staging/src/k8s.io/code-generator/internal/codegen/command/openapi/cmd_test.go +++ b/staging/src/k8s.io/code-generator/internal/codegen/command/openapi/cmd_test.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package openapi_test diff --git a/staging/src/k8s.io/code-generator/internal/codegen/command/openapi/flags.go b/staging/src/k8s.io/code-generator/internal/codegen/command/openapi/flags.go index 7215c0944f141..0a465c14adbe9 100644 --- a/staging/src/k8s.io/code-generator/internal/codegen/command/openapi/flags.go +++ b/staging/src/k8s.io/code-generator/internal/codegen/command/openapi/flags.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package openapi diff --git a/staging/src/k8s.io/code-generator/internal/codegen/command/openapi/help.go b/staging/src/k8s.io/code-generator/internal/codegen/command/openapi/help.go index 5b51278429bad..0933ed828721e 100644 --- a/staging/src/k8s.io/code-generator/internal/codegen/command/openapi/help.go +++ b/staging/src/k8s.io/code-generator/internal/codegen/command/openapi/help.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package openapi diff --git a/staging/src/k8s.io/code-generator/internal/codegen/command/usage.go b/staging/src/k8s.io/code-generator/internal/codegen/command/usage.go index 7140f8f13418f..14cbe876564df 100644 --- a/staging/src/k8s.io/code-generator/internal/codegen/command/usage.go +++ b/staging/src/k8s.io/code-generator/internal/codegen/command/usage.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package command diff --git a/staging/src/k8s.io/code-generator/internal/codegen/execution/exec.go b/staging/src/k8s.io/code-generator/internal/codegen/execution/exec.go index 0c520dcaa34af..1b0150d34dd42 100644 --- a/staging/src/k8s.io/code-generator/internal/codegen/execution/exec.go +++ b/staging/src/k8s.io/code-generator/internal/codegen/execution/exec.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package execution diff --git a/staging/src/k8s.io/code-generator/internal/codegen/execution/print.go b/staging/src/k8s.io/code-generator/internal/codegen/execution/print.go index 0231b91dcf1f5..9a089cf149ec6 100644 --- a/staging/src/k8s.io/code-generator/internal/codegen/execution/print.go +++ b/staging/src/k8s.io/code-generator/internal/codegen/execution/print.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package execution diff --git a/staging/src/k8s.io/code-generator/internal/codegen/execution/print_test.go b/staging/src/k8s.io/code-generator/internal/codegen/execution/print_test.go index 9baa5e6ebddd9..6123efaa6b0a5 100644 --- a/staging/src/k8s.io/code-generator/internal/codegen/execution/print_test.go +++ b/staging/src/k8s.io/code-generator/internal/codegen/execution/print_test.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package execution_test diff --git a/staging/src/k8s.io/code-generator/internal/codegen/parse.go b/staging/src/k8s.io/code-generator/internal/codegen/parse.go index 4e29c55a7bdf6..1bbba3cb867ed 100644 --- a/staging/src/k8s.io/code-generator/internal/codegen/parse.go +++ b/staging/src/k8s.io/code-generator/internal/codegen/parse.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package codegen @@ -31,5 +31,5 @@ func parse(ex *execution.Vars, cmds []Command) Command { usage = u } } - return help.InvalidCommand{usage} + return help.InvalidCommand{Usage: usage} } diff --git a/staging/src/k8s.io/code-generator/internal/codegen/run.go b/staging/src/k8s.io/code-generator/internal/codegen/run.go index 10fdc7f5dfe17..9945233c8f50e 100644 --- a/staging/src/k8s.io/code-generator/internal/codegen/run.go +++ b/staging/src/k8s.io/code-generator/internal/codegen/run.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package codegen diff --git a/staging/src/k8s.io/code-generator/internal/codegen/run_test.go b/staging/src/k8s.io/code-generator/internal/codegen/run_test.go index b4644eec8c327..9470108728f98 100644 --- a/staging/src/k8s.io/code-generator/internal/codegen/run_test.go +++ b/staging/src/k8s.io/code-generator/internal/codegen/run_test.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package codegen_test diff --git a/staging/src/k8s.io/code-generator/pkg/codegen/client/args.go b/staging/src/k8s.io/code-generator/pkg/codegen/client/args.go index dcfaff314391d..09bc410f48750 100644 --- a/staging/src/k8s.io/code-generator/pkg/codegen/client/args.go +++ b/staging/src/k8s.io/code-generator/pkg/codegen/client/args.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package client diff --git a/staging/src/k8s.io/code-generator/pkg/codegen/client/gen.go b/staging/src/k8s.io/code-generator/pkg/codegen/client/gen.go index ccd761b0bda12..2b3b823cfc12e 100644 --- a/staging/src/k8s.io/code-generator/pkg/codegen/client/gen.go +++ b/staging/src/k8s.io/code-generator/pkg/codegen/client/gen.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package client diff --git a/staging/src/k8s.io/code-generator/pkg/codegen/helpers/args.go b/staging/src/k8s.io/code-generator/pkg/codegen/helpers/args.go index 37dcf53ee23d4..26d905a9d2eba 100644 --- a/staging/src/k8s.io/code-generator/pkg/codegen/helpers/args.go +++ b/staging/src/k8s.io/code-generator/pkg/codegen/helpers/args.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package helpers diff --git a/staging/src/k8s.io/code-generator/pkg/codegen/helpers/conversion.go b/staging/src/k8s.io/code-generator/pkg/codegen/helpers/conversion.go index 32c31765d5d29..bd89b1142bf64 100644 --- a/staging/src/k8s.io/code-generator/pkg/codegen/helpers/conversion.go +++ b/staging/src/k8s.io/code-generator/pkg/codegen/helpers/conversion.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package helpers diff --git a/staging/src/k8s.io/code-generator/pkg/codegen/helpers/deepcopy.go b/staging/src/k8s.io/code-generator/pkg/codegen/helpers/deepcopy.go index 3fcd441bf3fb0..4c7f89451f352 100644 --- a/staging/src/k8s.io/code-generator/pkg/codegen/helpers/deepcopy.go +++ b/staging/src/k8s.io/code-generator/pkg/codegen/helpers/deepcopy.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package helpers diff --git a/staging/src/k8s.io/code-generator/pkg/codegen/helpers/defaulter.go b/staging/src/k8s.io/code-generator/pkg/codegen/helpers/defaulter.go index f8e3a5c6ed08a..b33ce0e0728f3 100644 --- a/staging/src/k8s.io/code-generator/pkg/codegen/helpers/defaulter.go +++ b/staging/src/k8s.io/code-generator/pkg/codegen/helpers/defaulter.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package helpers diff --git a/staging/src/k8s.io/code-generator/pkg/codegen/helpers/generator.go b/staging/src/k8s.io/code-generator/pkg/codegen/helpers/generator.go index a84288d422e3b..9754971860637 100644 --- a/staging/src/k8s.io/code-generator/pkg/codegen/helpers/generator.go +++ b/staging/src/k8s.io/code-generator/pkg/codegen/helpers/generator.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package helpers diff --git a/staging/src/k8s.io/code-generator/pkg/codegen/helpers/generator_test.go b/staging/src/k8s.io/code-generator/pkg/codegen/helpers/generator_test.go index 49b13a2b220d8..a53369a5d9535 100644 --- a/staging/src/k8s.io/code-generator/pkg/codegen/helpers/generator_test.go +++ b/staging/src/k8s.io/code-generator/pkg/codegen/helpers/generator_test.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package helpers_test @@ -62,10 +62,8 @@ func TestGenerate(t *testing.T) { // Check the output. if gotDigest, err := hashdir(workdir); err != nil { t.Fatal(err) - } else { - if gotDigest != wantDigest { - t.Errorf("got %q, want %q", gotDigest, wantDigest) - } + } else if gotDigest != wantDigest { + t.Errorf("got %q, want %q", gotDigest, wantDigest) } } diff --git a/staging/src/k8s.io/code-generator/pkg/codegen/helpers/generic.go b/staging/src/k8s.io/code-generator/pkg/codegen/helpers/generic.go index eb096cba18832..ab30a0c398f88 100644 --- a/staging/src/k8s.io/code-generator/pkg/codegen/helpers/generic.go +++ b/staging/src/k8s.io/code-generator/pkg/codegen/helpers/generic.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package helpers @@ -71,7 +71,7 @@ func (g *Generator) generateGen(args *Args, gc genConf) error { } klog.V(2).Infof("Found %d packages with %s-gen tags", len(pkgs), gc.name) - if len(pkgs) >= 0 { + if len(pkgs) > 0 { if err = deleteGenerated(args, gc); err != nil { return err } diff --git a/staging/src/k8s.io/code-generator/pkg/codegen/openapi/args.go b/staging/src/k8s.io/code-generator/pkg/codegen/openapi/args.go index 04b1aa7718fc4..3f75a8bef1890 100644 --- a/staging/src/k8s.io/code-generator/pkg/codegen/openapi/args.go +++ b/staging/src/k8s.io/code-generator/pkg/codegen/openapi/args.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package openapi diff --git a/staging/src/k8s.io/code-generator/pkg/codegen/openapi/gen.go b/staging/src/k8s.io/code-generator/pkg/codegen/openapi/gen.go index d4d6bd02b161c..5e3c6df385178 100644 --- a/staging/src/k8s.io/code-generator/pkg/codegen/openapi/gen.go +++ b/staging/src/k8s.io/code-generator/pkg/codegen/openapi/gen.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package openapi diff --git a/staging/src/k8s.io/code-generator/pkg/fs/current/dir.go b/staging/src/k8s.io/code-generator/pkg/fs/current/dir.go index 4bbe656e13875..4b7246e51902b 100644 --- a/staging/src/k8s.io/code-generator/pkg/fs/current/dir.go +++ b/staging/src/k8s.io/code-generator/pkg/fs/current/dir.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package current diff --git a/staging/src/k8s.io/code-generator/pkg/fs/current/dir_test.go b/staging/src/k8s.io/code-generator/pkg/fs/current/dir_test.go index b1a6299e1ea40..6a2758c2bab03 100644 --- a/staging/src/k8s.io/code-generator/pkg/fs/current/dir_test.go +++ b/staging/src/k8s.io/code-generator/pkg/fs/current/dir_test.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package current_test diff --git a/staging/src/k8s.io/code-generator/pkg/fs/current/file.go b/staging/src/k8s.io/code-generator/pkg/fs/current/file.go index 5f01b5c6ef350..4b5d450033f78 100644 --- a/staging/src/k8s.io/code-generator/pkg/fs/current/file.go +++ b/staging/src/k8s.io/code-generator/pkg/fs/current/file.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package current diff --git a/staging/src/k8s.io/code-generator/pkg/fs/current/file_test.go b/staging/src/k8s.io/code-generator/pkg/fs/current/file_test.go index 41c61f60c5961..f2b3ad4f357e1 100644 --- a/staging/src/k8s.io/code-generator/pkg/fs/current/file_test.go +++ b/staging/src/k8s.io/code-generator/pkg/fs/current/file_test.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package current diff --git a/staging/src/k8s.io/code-generator/pkg/fs/within_dir.go b/staging/src/k8s.io/code-generator/pkg/fs/within_dir.go index e317d28fb6c03..f18a0fe01c6dc 100644 --- a/staging/src/k8s.io/code-generator/pkg/fs/within_dir.go +++ b/staging/src/k8s.io/code-generator/pkg/fs/within_dir.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package fs diff --git a/staging/src/k8s.io/code-generator/pkg/osbin/git/find.go b/staging/src/k8s.io/code-generator/pkg/osbin/git/find.go index 39373a7296c97..eb3d73f041cf1 100644 --- a/staging/src/k8s.io/code-generator/pkg/osbin/git/find.go +++ b/staging/src/k8s.io/code-generator/pkg/osbin/git/find.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package git diff --git a/staging/src/k8s.io/code-generator/pkg/osbin/git/grep.go b/staging/src/k8s.io/code-generator/pkg/osbin/git/grep.go index 740da2a4729b4..8a90c42cdee93 100644 --- a/staging/src/k8s.io/code-generator/pkg/osbin/git/grep.go +++ b/staging/src/k8s.io/code-generator/pkg/osbin/git/grep.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package git diff --git a/staging/src/k8s.io/code-generator/pkg/osbin/golang/packageof.go b/staging/src/k8s.io/code-generator/pkg/osbin/golang/packageof.go index 62f2ff4a843d1..1aa229a12a8a6 100644 --- a/staging/src/k8s.io/code-generator/pkg/osbin/golang/packageof.go +++ b/staging/src/k8s.io/code-generator/pkg/osbin/golang/packageof.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package golang diff --git a/staging/src/k8s.io/code-generator/pkg/osbin/golang/packageof_test.go b/staging/src/k8s.io/code-generator/pkg/osbin/golang/packageof_test.go index 6ba93629eb6d9..6230a97306125 100644 --- a/staging/src/k8s.io/code-generator/pkg/osbin/golang/packageof_test.go +++ b/staging/src/k8s.io/code-generator/pkg/osbin/golang/packageof_test.go @@ -1,17 +1,17 @@ /* - Copyright 2023 The Kubernetes Authors. +Copyright 2023 The Kubernetes Authors. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except In compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except In compliance with the License. +You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to In writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to In writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package golang_test