From 01206599ae79a4a736cbe473a94565b686e539ce Mon Sep 17 00:00:00 2001 From: fabriziopandini Date: Sun, 8 Jan 2023 14:03:07 +0100 Subject: [PATCH] Fix verify boilerplate --- hack/boilerplate/boilerplate.py | 6 ++---- hack/boilerplate/boilerplate_test.py | 2 +- .../runtime-openapi-gen/vendored_openapi.go | 16 ++++++++++++++++ 3 files changed, 19 insertions(+), 5 deletions(-) mode change 100644 => 100755 hack/boilerplate/boilerplate_test.py diff --git a/hack/boilerplate/boilerplate.py b/hack/boilerplate/boilerplate.py index 0c01379b71e9..830fcdd3e842 100755 --- a/hack/boilerplate/boilerplate.py +++ b/hack/boilerplate/boilerplate.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright 2015 The Kubernetes Authors. # @@ -150,9 +150,7 @@ def file_passes(filename, refs, regexs): def file_extension(filename): return os.path.splitext(filename)[1].split(".")[-1].lower() -skipped_dirs = ['_gopath', '_output', '.git', 'cluster/env.sh', - "vendor", "test/e2e/generated/bindata.go", "hack/boilerplate/test", - "staging/src/k8s.io/kubectl/pkg/generated/bindata.go"] +skipped_dirs = ['_output', '.git', "hack/boilerplate/test"] # list all the files contain 'DO NOT EDIT', but are not generated skipped_ungenerated_files = [ diff --git a/hack/boilerplate/boilerplate_test.py b/hack/boilerplate/boilerplate_test.py old mode 100644 new mode 100755 index b8d5b8e9e0f4..49dc60c8c462 --- a/hack/boilerplate/boilerplate_test.py +++ b/hack/boilerplate/boilerplate_test.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright 2016 The Kubernetes Authors. # diff --git a/hack/tools/runtime-openapi-gen/vendored_openapi.go b/hack/tools/runtime-openapi-gen/vendored_openapi.go index c8d69f0b9758..c9e5b9d325fb 100644 --- a/hack/tools/runtime-openapi-gen/vendored_openapi.go +++ b/hack/tools/runtime-openapi-gen/vendored_openapi.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 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 + + 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. +*/ + package main import (