From 2c9caa0e05cde1cffc47c272c63a81f188ded8cb Mon Sep 17 00:00:00 2001 From: Ahmet Alp Balkan Date: Mon, 4 Mar 2019 11:23:16 -0800 Subject: [PATCH] hack: remove redundant license headers in release * remove per-yaml license headers in release manifests * manually insert a license header in release manifests * add README.md to /kubernetes-manifests indicating they're not ready to use (and refer to /release instead). * regenerate manifests Signed-off-by: Ahmet Alp Balkan --- hack/license_header.txt | 13 ++ hack/make-release-artifacts.sh | 24 +++- kubernetes-manifests/README.md | 8 ++ release/istio-manifests.yaml | 56 -------- release/kubernetes-manifests.yaml | 218 +++++++----------------------- 5 files changed, 96 insertions(+), 223 deletions(-) create mode 100644 hack/license_header.txt create mode 100644 kubernetes-manifests/README.md diff --git a/hack/license_header.txt b/hack/license_header.txt new file mode 100644 index 0000000..2e94f3e --- /dev/null +++ b/hack/license_header.txt @@ -0,0 +1,13 @@ +# Copyright 2018 Google LLC +# +# 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/make-release-artifacts.sh b/hack/make-release-artifacts.sh index 2a14ae5..2f412e7 100755 --- a/hack/make-release-artifacts.sh +++ b/hack/make-release-artifacts.sh @@ -27,12 +27,31 @@ TAG="${TAG:?TAG env variable must be specified}" REPO_PREFIX="${REPO_PREFIX:?REPO_PREFIX env variable must be specified}" OUT_DIR="${OUT_DIR:-${SCRIPTDIR}/../release}" +print_license_header() { + cat "${SCRIPTDIR}/license_header.txt" + echo +} + +print_autogenerated_warning() { + cat<