From 38d5bf8e0977b438982c412ad8cd17052ad6ed9a Mon Sep 17 00:00:00 2001 From: Katrina Verey Date: Thu, 13 Apr 2023 17:45:47 -0400 Subject: [PATCH] Add licence and make script use current year --- functions/examples/fn-framework-application/cmd/main.go | 3 +++ .../fn-framework-application/pkg/dispatcher/dispatcher.go | 3 +++ .../pkg/exampleapp/v1alpha1/crd_gen.sh | 3 +++ .../pkg/exampleapp/v1alpha1/example_app_test.go | 3 +++ .../pkg/exampleapp/v1alpha1/processing.go | 3 +++ .../fn-framework-application/pkg/exampleapp/v1alpha1/types.go | 3 +++ hack/add-license.sh | 2 +- 7 files changed, 19 insertions(+), 1 deletion(-) diff --git a/functions/examples/fn-framework-application/cmd/main.go b/functions/examples/fn-framework-application/cmd/main.go index 38cd6b412..2ba50a4cd 100644 --- a/functions/examples/fn-framework-application/cmd/main.go +++ b/functions/examples/fn-framework-application/cmd/main.go @@ -1,3 +1,6 @@ +// Copyright 2023 The Kubernetes Authors. +// SPDX-License-Identifier: Apache-2.0 + package main import "sigs.k8s.io/kustomize/functions/examples/fn-framework-application/pkg/dispatcher" diff --git a/functions/examples/fn-framework-application/pkg/dispatcher/dispatcher.go b/functions/examples/fn-framework-application/pkg/dispatcher/dispatcher.go index 9c7972c79..1efee15f5 100644 --- a/functions/examples/fn-framework-application/pkg/dispatcher/dispatcher.go +++ b/functions/examples/fn-framework-application/pkg/dispatcher/dispatcher.go @@ -1,3 +1,6 @@ +// Copyright 2023 The Kubernetes Authors. +// SPDX-License-Identifier: Apache-2.0 + package dispatcher import ( diff --git a/functions/examples/fn-framework-application/pkg/exampleapp/v1alpha1/crd_gen.sh b/functions/examples/fn-framework-application/pkg/exampleapp/v1alpha1/crd_gen.sh index 536aa52a3..e53b2d879 100755 --- a/functions/examples/fn-framework-application/pkg/exampleapp/v1alpha1/crd_gen.sh +++ b/functions/examples/fn-framework-application/pkg/exampleapp/v1alpha1/crd_gen.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright 2023 The Kubernetes Authors. +# SPDX-License-Identifier: Apache-2.0 + set -eo pipefail diff --git a/functions/examples/fn-framework-application/pkg/exampleapp/v1alpha1/example_app_test.go b/functions/examples/fn-framework-application/pkg/exampleapp/v1alpha1/example_app_test.go index 28bd6e1d6..ec793d80a 100644 --- a/functions/examples/fn-framework-application/pkg/exampleapp/v1alpha1/example_app_test.go +++ b/functions/examples/fn-framework-application/pkg/exampleapp/v1alpha1/example_app_test.go @@ -1,3 +1,6 @@ +// Copyright 2023 The Kubernetes Authors. +// SPDX-License-Identifier: Apache-2.0 + package v1alpha1_test import ( diff --git a/functions/examples/fn-framework-application/pkg/exampleapp/v1alpha1/processing.go b/functions/examples/fn-framework-application/pkg/exampleapp/v1alpha1/processing.go index 40a064c51..cb62af7d8 100644 --- a/functions/examples/fn-framework-application/pkg/exampleapp/v1alpha1/processing.go +++ b/functions/examples/fn-framework-application/pkg/exampleapp/v1alpha1/processing.go @@ -1,3 +1,6 @@ +// Copyright 2023 The Kubernetes Authors. +// SPDX-License-Identifier: Apache-2.0 + package v1alpha1 import ( diff --git a/functions/examples/fn-framework-application/pkg/exampleapp/v1alpha1/types.go b/functions/examples/fn-framework-application/pkg/exampleapp/v1alpha1/types.go index 7fa930423..cc82915c1 100644 --- a/functions/examples/fn-framework-application/pkg/exampleapp/v1alpha1/types.go +++ b/functions/examples/fn-framework-application/pkg/exampleapp/v1alpha1/types.go @@ -1,3 +1,6 @@ +// Copyright 2023 The Kubernetes Authors. +// SPDX-License-Identifier: Apache-2.0 + // +groupName=platform.example.com // +versionName=v1alpha1 // +kubebuilder:validation:Required diff --git a/hack/add-license.sh b/hack/add-license.sh index cca36c5f2..d921f20d1 100755 --- a/hack/add-license.sh +++ b/hack/add-license.sh @@ -21,7 +21,7 @@ else fi args=( - -y 2022 + -y $(date +"%Y") -c "The Kubernetes Authors." -f LICENSE_TEMPLATE -ignore "kyaml/internal/forked/github.com/**/*"