Skip to content

Commit da0e412

Browse files
authored
Merge pull request #529 from hime/main
Remove Kubernetes Authors requirement from boilerplate.
2 parents 3a7bfd8 + a8d62a9 commit da0e412

File tree

10 files changed

+5
-15
lines changed

10 files changed

+5
-15
lines changed

cmd/metadata_prefetch/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Copyright 2018 The Kubernetes Authors.
21
# Copyright 2024 Google LLC
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

cmd/metadata_prefetch/main.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/*
2-
Copyright 2018 The Kubernetes Authors.
32
Copyright 2024 Google LLC
43
54
Licensed under the Apache License, Version 2.0 (the "License");

hack/boilerplate/boilerplate.Dockerfile.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Copyright YEAR The Kubernetes Authors.
21
# Copyright YEAR Google LLC
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

hack/boilerplate/boilerplate.Makefile.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Copyright YEAR The Kubernetes Authors.
21
# Copyright YEAR Google LLC
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

hack/boilerplate/boilerplate.go.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/*
2-
Copyright YEAR The Kubernetes Authors.
32
Copyright YEAR Google LLC
43

54
Licensed under the Apache License, Version 2.0 (the "License");

hack/boilerplate/boilerplate.md.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<!--
2-
Copyright YEAR The Kubernetes Authors.
32
Copyright YEAR Google LLC
43

54
Licensed under the Apache License, Version 2.0 (the "License");

hack/boilerplate/boilerplate.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,11 @@ def file_passes(filename, refs, regexs):
103103

104104
data = data.splitlines()
105105

106-
# if our test file is smaller than the reference it surely fails!
107-
if len(ref) > len(data):
108-
print('File %s smaller than reference (%d < %d)' %
109-
(filename, len(data), len(ref)),
110-
file=verbose_out)
111-
return False
106+
# Exempt lines that contain Kubernetes authors.
107+
for i in range(len(data)):
108+
if data[i].__contains__("Kubernetes Authors"):
109+
data.pop(i)
110+
break
112111

113112
# trim our file to the same number of lines as the reference file
114113
data = data[:len(ref)]

hack/boilerplate/boilerplate.py.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Copyright YEAR The Kubernetes Authors.
21
# Copyright YEAR Google LLC
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

hack/boilerplate/boilerplate.sh.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Copyright YEAR The Kubernetes Authors.
21
# Copyright YEAR Google LLC
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

hack/boilerplate/boilerplate.yaml.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Copyright YEAR The Kubernetes Authors.
21
# Copyright YEAR Google LLC
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

0 commit comments

Comments
 (0)