diff --git a/boilerplate/boilerplate.go.txt b/boilerplate/boilerplate.go.txt index 59e740c1..b7c650da 100644 --- a/boilerplate/boilerplate.go.txt +++ b/boilerplate/boilerplate.go.txt @@ -1,5 +1,5 @@ /* -Copyright YEAR The Kubernetes Authors. +Copyright 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. diff --git a/examples/deepcopy-gen/.gitignore b/examples/deepcopy-gen/.gitignore new file mode 100644 index 00000000..eab8184d --- /dev/null +++ b/examples/deepcopy-gen/.gitignore @@ -0,0 +1 @@ +deepcopy-gen diff --git a/examples/deepcopy-gen/output_tests/builtins/zz_generated.go b/examples/deepcopy-gen/output_tests/builtins/zz_generated.go index 922a7b0c..300dec48 100644 --- a/examples/deepcopy-gen/output_tests/builtins/zz_generated.go +++ b/examples/deepcopy-gen/output_tests/builtins/zz_generated.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2017 The Kubernetes Authors. +Copyright 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. diff --git a/examples/deepcopy-gen/output_tests/interfaces/zz_generated.go b/examples/deepcopy-gen/output_tests/interfaces/zz_generated.go index 85361281..e3f9fe34 100644 --- a/examples/deepcopy-gen/output_tests/interfaces/zz_generated.go +++ b/examples/deepcopy-gen/output_tests/interfaces/zz_generated.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2017 The Kubernetes Authors. +Copyright 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. diff --git a/examples/deepcopy-gen/output_tests/maps/zz_generated.go b/examples/deepcopy-gen/output_tests/maps/zz_generated.go index d8b97927..6f7b0156 100644 --- a/examples/deepcopy-gen/output_tests/maps/zz_generated.go +++ b/examples/deepcopy-gen/output_tests/maps/zz_generated.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2017 The Kubernetes Authors. +Copyright 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. diff --git a/examples/deepcopy-gen/output_tests/pointer/zz_generated.go b/examples/deepcopy-gen/output_tests/pointer/zz_generated.go index cc49bf83..4b98703d 100644 --- a/examples/deepcopy-gen/output_tests/pointer/zz_generated.go +++ b/examples/deepcopy-gen/output_tests/pointer/zz_generated.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2017 The Kubernetes Authors. +Copyright 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. diff --git a/examples/deepcopy-gen/output_tests/slices/zz_generated.go b/examples/deepcopy-gen/output_tests/slices/zz_generated.go index 869332aa..74c841c1 100644 --- a/examples/deepcopy-gen/output_tests/slices/zz_generated.go +++ b/examples/deepcopy-gen/output_tests/slices/zz_generated.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2017 The Kubernetes Authors. +Copyright 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. diff --git a/examples/deepcopy-gen/output_tests/structs/zz_generated.go b/examples/deepcopy-gen/output_tests/structs/zz_generated.go index 79d8a00b..209cd50a 100644 --- a/examples/deepcopy-gen/output_tests/structs/zz_generated.go +++ b/examples/deepcopy-gen/output_tests/structs/zz_generated.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2017 The Kubernetes Authors. +Copyright 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. diff --git a/examples/deepcopy-gen/output_tests/wholepkg/zz_generated.go b/examples/deepcopy-gen/output_tests/wholepkg/zz_generated.go index 17708a48..a951f1bf 100644 --- a/examples/deepcopy-gen/output_tests/wholepkg/zz_generated.go +++ b/examples/deepcopy-gen/output_tests/wholepkg/zz_generated.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2017 The Kubernetes Authors. +Copyright 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. diff --git a/examples/set-gen/Makefile b/examples/set-gen/Makefile new file mode 100644 index 00000000..0e73130a --- /dev/null +++ b/examples/set-gen/Makefile @@ -0,0 +1,15 @@ +TOOL=set-gen + +test: + @if ! git diff --quiet HEAD; then \ + echo "FAIL: git client is not clean"; \ + false; \ + fi + @go build -o /tmp/$(TOOL) + @PKGS=$$(go list ./sets/types | paste -sd' ' -); \ + /tmp/$(TOOL) --logtostderr --v=4 -i $$(echo $$PKGS | sed 's/ /,/g') -O zz_generated -o ./sets + @if ! git diff --quiet HEAD; then \ + echo "FAIL: output files changed"; \ + git diff; \ + false; \ + fi diff --git a/examples/set-gen/sets/byte.go b/examples/set-gen/sets/byte.go index 60144d18..ac3a7e71 100644 --- a/examples/set-gen/sets/byte.go +++ b/examples/set-gen/sets/byte.go @@ -1,5 +1,5 @@ /* -Copyright 2017 The Kubernetes Authors. +Copyright 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. diff --git a/examples/set-gen/sets/doc.go b/examples/set-gen/sets/doc.go index 28a6a7d5..feeee6c5 100644 --- a/examples/set-gen/sets/doc.go +++ b/examples/set-gen/sets/doc.go @@ -1,5 +1,5 @@ /* -Copyright 2017 The Kubernetes Authors. +Copyright 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. diff --git a/examples/set-gen/sets/empty.go b/examples/set-gen/sets/empty.go index cd22b953..2d069592 100644 --- a/examples/set-gen/sets/empty.go +++ b/examples/set-gen/sets/empty.go @@ -1,5 +1,5 @@ /* -Copyright 2017 The Kubernetes Authors. +Copyright 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. diff --git a/examples/set-gen/sets/int.go b/examples/set-gen/sets/int.go index 2b155e4e..63566301 100644 --- a/examples/set-gen/sets/int.go +++ b/examples/set-gen/sets/int.go @@ -1,5 +1,5 @@ /* -Copyright 2017 The Kubernetes Authors. +Copyright 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. diff --git a/examples/set-gen/sets/int64.go b/examples/set-gen/sets/int64.go index 0137bca2..eaab5d65 100644 --- a/examples/set-gen/sets/int64.go +++ b/examples/set-gen/sets/int64.go @@ -1,5 +1,5 @@ /* -Copyright 2017 The Kubernetes Authors. +Copyright 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. diff --git a/examples/set-gen/sets/string.go b/examples/set-gen/sets/string.go index ec72eea2..d5218c79 100644 --- a/examples/set-gen/sets/string.go +++ b/examples/set-gen/sets/string.go @@ -1,5 +1,5 @@ /* -Copyright 2017 The Kubernetes Authors. +Copyright 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.