Skip to content

Commit 0120659

Browse files
Fix verify boilerplate
1 parent df9c56c commit 0120659

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

hack/boilerplate/boilerplate.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# Copyright 2015 The Kubernetes Authors.
44
#
@@ -150,9 +150,7 @@ def file_passes(filename, refs, regexs):
150150
def file_extension(filename):
151151
return os.path.splitext(filename)[1].split(".")[-1].lower()
152152

153-
skipped_dirs = ['_gopath', '_output', '.git', 'cluster/env.sh',
154-
"vendor", "test/e2e/generated/bindata.go", "hack/boilerplate/test",
155-
"staging/src/k8s.io/kubectl/pkg/generated/bindata.go"]
153+
skipped_dirs = ['_output', '.git', "hack/boilerplate/test"]
156154

157155
# list all the files contain 'DO NOT EDIT', but are not generated
158156
skipped_ungenerated_files = [

hack/boilerplate/boilerplate_test.py

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# Copyright 2016 The Kubernetes Authors.
44
#

hack/tools/runtime-openapi-gen/vendored_openapi.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
Copyright 2021 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+
117
package main
218

319
import (

0 commit comments

Comments
 (0)