Skip to content

Commit a80dc6a

Browse files
committed
Remove copyright year in generated code
1 parent 5e8f4f9 commit a80dc6a

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ generate-deepcopy: vendor
108108
for api in $(APIS); do \
109109
rm -f $(CURDIR)/api/$(VENDOR)/resource/$${api}/zz_generated.deepcopy.go; \
110110
controller-gen \
111-
object:headerFile=$(CURDIR)/hack/boilerplate.go.txt,year=$(shell date +"%Y") \
111+
object:headerFile=$(CURDIR)/hack/boilerplate.generatego.txt \
112112
paths=$(CURDIR)/api/$(VENDOR)/resource/$${api}/ \
113113
output:object:dir=$(CURDIR)/api/$(VENDOR)/resource/$${api}; \
114114
done

api/example.com/resource/gpu/v1alpha1/zz_generated.deepcopy.go

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

hack/boilerplate.generatego.txt

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* Copyright 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+
*/

0 commit comments

Comments
 (0)