Skip to content

Commit 8586dc2

Browse files
committed
fix boilerplate
Since most of the new code is copied straight from Kubernetes, I felt uncomfortable to relicense it as Copyright KCP, so instead I chose to apply a dual-copyright. Ideally the KCP one should have been after the Kubernetes line, but that is not possible with verify_boilerplate.py. Since the examples are kcp-only, they got their own boilerplates. It felt weird to have the generated code be dual-copyrighted. On-behalf-of: @SAP [email protected]
1 parent 3e1589b commit 8586dc2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+115
-43
lines changed

Makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022 The KCP Authors.
1+
# Copyright 2025 The KCP Authors.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -100,4 +100,5 @@ $(TOOLS_DIR)/verify_boilerplate.py:
100100

101101
.PHONY: verify-boilerplate
102102
verify-boilerplate: $(TOOLS_DIR)/verify_boilerplate.py
103-
$(TOOLS_DIR)/verify_boilerplate.py --boilerplate-dir=hack/boilerplate
103+
$(TOOLS_DIR)/verify_boilerplate.py --boilerplate-dir=hack/boilerplate --skip examples
104+
$(TOOLS_DIR)/verify_boilerplate.py --boilerplate-dir=hack/boilerplate/examples examples

cluster_codegen.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
# Copyright 2023 The Kubernetes Authors.
3+
# Copyright 2025 The KCP Authors.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

cmd/cluster-client-gen/args/args.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
Copyright 2015 The Kubernetes Authors.
2+
Copyright 2025 The KCP Authors.
3+
Copyright 2025 The Kubernetes Authors.
34
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.

cmd/cluster-client-gen/args/gvpackages.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
Copyright 2017 The Kubernetes Authors.
2+
Copyright 2025 The KCP Authors.
3+
Copyright 2025 The Kubernetes Authors.
34
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.

cmd/cluster-client-gen/args/gvpackages_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
Copyright 2017 The Kubernetes Authors.
2+
Copyright 2025 The KCP Authors.
3+
Copyright 2025 The Kubernetes Authors.
34
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.

cmd/cluster-client-gen/args/gvtype.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
Copyright 2017 The Kubernetes Authors.
2+
Copyright 2025 The KCP Authors.
3+
Copyright 2025 The Kubernetes Authors.
34
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.

cmd/cluster-client-gen/generators/client_generator.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
Copyright 2015 The Kubernetes Authors.
2+
Copyright 2025 The KCP Authors.
3+
Copyright 2025 The Kubernetes Authors.
34
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.

cmd/cluster-client-gen/generators/fake/fake_client_generator.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
Copyright 2015 The Kubernetes Authors.
2+
Copyright 2025 The KCP Authors.
3+
Copyright 2025 The Kubernetes Authors.
34
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.

cmd/cluster-client-gen/generators/fake/generator_fake_for_clientset.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
Copyright 2016 The Kubernetes Authors.
2+
Copyright 2025 The KCP Authors.
3+
Copyright 2025 The Kubernetes Authors.
34
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.

cmd/cluster-client-gen/generators/fake/generator_fake_for_group.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
Copyright 2015 The Kubernetes Authors.
2+
Copyright 2025 The KCP Authors.
3+
Copyright 2025 The Kubernetes Authors.
34
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.

cmd/cluster-client-gen/generators/fake/generator_fake_for_type.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
Copyright 2015 The Kubernetes Authors.
2+
Copyright 2025 The KCP Authors.
3+
Copyright 2025 The Kubernetes Authors.
34
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.

cmd/cluster-client-gen/generators/generator_for_clientset.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
Copyright 2016 The Kubernetes Authors.
2+
Copyright 2025 The KCP Authors.
3+
Copyright 2025 The Kubernetes Authors.
34
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.

cmd/cluster-client-gen/generators/generator_for_expansion.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
Copyright 2016 The Kubernetes Authors.
2+
Copyright 2025 The KCP Authors.
3+
Copyright 2025 The Kubernetes Authors.
34
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.

cmd/cluster-client-gen/generators/generator_for_group.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
Copyright 2015 The Kubernetes Authors.
2+
Copyright 2025 The KCP Authors.
3+
Copyright 2025 The Kubernetes Authors.
34
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.

cmd/cluster-client-gen/generators/generator_for_type.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
Copyright 2015 The Kubernetes Authors.
2+
Copyright 2025 The KCP Authors.
3+
Copyright 2025 The Kubernetes Authors.
34
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.

cmd/cluster-client-gen/generators/scheme/generator_for_scheme.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
Copyright 2017 The Kubernetes Authors.
2+
Copyright 2025 The KCP Authors.
3+
Copyright 2025 The Kubernetes Authors.
34
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.

cmd/cluster-client-gen/generators/util/gvpackages.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
Copyright 2021 The Kubernetes Authors.
2+
Copyright 2025 The KCP Authors.
3+
Copyright 2025 The Kubernetes Authors.
34
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.

cmd/cluster-client-gen/generators/util/tags.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
Copyright 2016 The Kubernetes Authors.
2+
Copyright 2025 The KCP Authors.
3+
Copyright 2025 The Kubernetes Authors.
34
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.

cmd/cluster-client-gen/generators/util/tags_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
Copyright 2016 The Kubernetes Authors.
2+
Copyright 2025 The KCP Authors.
3+
Copyright 2025 The Kubernetes Authors.
34
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.

cmd/cluster-client-gen/main.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
Copyright 2015 The Kubernetes Authors.
2+
Copyright 2025 The KCP Authors.
3+
Copyright 2025 The Kubernetes Authors.
34
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.

cmd/cluster-client-gen/types/helpers.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
Copyright 2016 The Kubernetes Authors.
2+
Copyright 2025 The KCP Authors.
3+
Copyright 2025 The Kubernetes Authors.
34
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.

cmd/cluster-client-gen/types/helpers_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
Copyright 2016 The Kubernetes Authors.
2+
Copyright 2025 The KCP Authors.
3+
Copyright 2025 The Kubernetes Authors.
34
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.

cmd/cluster-client-gen/types/types.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
Copyright 2016 The Kubernetes Authors.
2+
Copyright 2025 The KCP Authors.
3+
Copyright 2025 The Kubernetes Authors.
34
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.

cmd/cluster-informer-gen/args/args.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
Copyright 2017 The Kubernetes Authors.
2+
Copyright 2025 The KCP Authors.
3+
Copyright 2025 The Kubernetes Authors.
34
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.

cmd/cluster-informer-gen/generators/factory.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
Copyright 2016 The Kubernetes Authors.
2+
Copyright 2025 The KCP Authors.
3+
Copyright 2025 The Kubernetes Authors.
34
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.

cmd/cluster-informer-gen/generators/factoryinterface.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
Copyright 2016 The Kubernetes Authors.
2+
Copyright 2025 The KCP Authors.
3+
Copyright 2025 The Kubernetes Authors.
34
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.

cmd/cluster-informer-gen/generators/generic.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
Copyright 2016 The Kubernetes Authors.
2+
Copyright 2025 The KCP Authors.
3+
Copyright 2025 The Kubernetes Authors.
34
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.

cmd/cluster-informer-gen/generators/groupinterface.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
Copyright 2016 The Kubernetes Authors.
2+
Copyright 2025 The KCP Authors.
3+
Copyright 2025 The Kubernetes Authors.
34
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.

cmd/cluster-informer-gen/generators/informer.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
Copyright 2016 The Kubernetes Authors.
2+
Copyright 2025 The KCP Authors.
3+
Copyright 2025 The Kubernetes Authors.
34
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.

cmd/cluster-informer-gen/generators/targets.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
Copyright 2016 The Kubernetes Authors.
2+
Copyright 2025 The KCP Authors.
3+
Copyright 2025 The Kubernetes Authors.
34
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.

cmd/cluster-informer-gen/generators/types.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
Copyright 2016 The Kubernetes Authors.
2+
Copyright 2025 The KCP Authors.
3+
Copyright 2025 The Kubernetes Authors.
34
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.

cmd/cluster-informer-gen/generators/versioninterface.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
Copyright 2016 The Kubernetes Authors.
2+
Copyright 2025 The KCP Authors.
3+
Copyright 2025 The Kubernetes Authors.
34
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.

cmd/cluster-informer-gen/main.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
Copyright 2016 The Kubernetes Authors.
2+
Copyright 2025 The KCP Authors.
3+
Copyright 2025 The Kubernetes Authors.
34
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.

cmd/cluster-lister-gen/args/args.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
Copyright 2017 The Kubernetes Authors.
2+
Copyright 2025 The KCP Authors.
3+
Copyright 2025 The Kubernetes Authors.
34
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.

cmd/cluster-lister-gen/generators/expansion.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
Copyright 2016 The Kubernetes Authors.
2+
Copyright 2025 The KCP Authors.
3+
Copyright 2025 The Kubernetes Authors.
34
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.

cmd/cluster-lister-gen/generators/lister.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
Copyright 2016 The Kubernetes Authors.
2+
Copyright 2025 The KCP Authors.
3+
Copyright 2025 The Kubernetes Authors.
34
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.

cmd/cluster-lister-gen/main.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
Copyright 2016 The Kubernetes Authors.
2+
Copyright 2025 The KCP Authors.
3+
Copyright 2025 The Kubernetes Authors.
34
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.

hack/boilerplate/boilerplate.go.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
22
Copyright YEAR The KCP Authors.
3+
Copyright 2025 The Kubernetes Authors.
34

45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/*
2+
Copyright The KCP 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+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/*
2+
Copyright YEAR The KCP 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+

hack/go-install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
# Copyright 2021 The KCP Authors.
3+
# Copyright 2025 The KCP Authors.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

hack/tools.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
// +build tools
33

44
/*
5-
Copyright 2021 The KCP Authors.
5+
Copyright 2025 The KCP Authors.
6+
Copyright 2025 The Kubernetes Authors.
67
78
Licensed under the Apache License, Version 2.0 (the "License");
89
you may not use this file except in compliance with the License.

hack/update-codegen.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
# Copyright 2022 The KCP Authors.
3+
# Copyright 2025 The KCP Authors.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

pkg/imports/kcptracker.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
Copyright 2015 The Kubernetes Authors.
2+
Copyright 2025 The KCP Authors.
3+
Copyright 2025 The Kubernetes Authors.
34
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.

pkg/util/plural_exceptions.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
Copyright 2017 The Kubernetes Authors.
2+
Copyright 2025 The KCP Authors.
3+
Copyright 2025 The Kubernetes Authors.
34
45
Licensed under the Apache License, Version 2.0 (the "License");
56
you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)