diff --git a/hack/boilerplate.go.txt b/hack/boilerplate.go.txt new file mode 100644 index 0000000000..878458a9e8 --- /dev/null +++ b/hack/boilerplate.go.txt @@ -0,0 +1,15 @@ +/* +Copyright 2024 The Knative Authors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ diff --git a/hack/update-codegen.sh b/hack/update-codegen.sh index 3c315a7440..19ffa910d1 100755 --- a/hack/update-codegen.sh +++ b/hack/update-codegen.sh @@ -25,9 +25,11 @@ echo "=== Update Codegen for $MODULE_NAME" group "Kubernetes Codegen" -generate-groups "deepcopy" \ - knative.dev/client/pkg/apis/client/v1alpha1/generated knative.dev/client/pkg/apis \ - client:v1alpha1 "$@" +source "${CODEGEN_PKG}/kube_codegen.sh" + +kube::codegen::gen_helpers \ + --boilerplate "${REPO_ROOT_DIR}/hack/boilerplate.go.txt" \ + "${REPO_ROOT_DIR}/pkg/apis" group "Update deps post-codegen" diff --git a/pkg/apis/client/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/client/v1alpha1/zz_generated.deepcopy.go index 721d474f8b..21666be8c0 100644 --- a/pkg/apis/client/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/client/v1alpha1/zz_generated.deepcopy.go @@ -2,13 +2,13 @@ // +build !ignore_autogenerated /* -Copyright 2020 The Knative Authors +Copyright 2024 The Knative Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,