Add licence and make script use current year

This commit is contained in:
Katrina Verey
2023-04-13 17:45:47 -04:00
parent 85d623bc86
commit 38d5bf8e09
7 changed files with 19 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
// Copyright 2023 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package main package main
import "sigs.k8s.io/kustomize/functions/examples/fn-framework-application/pkg/dispatcher" import "sigs.k8s.io/kustomize/functions/examples/fn-framework-application/pkg/dispatcher"

View File

@@ -1,3 +1,6 @@
// Copyright 2023 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package dispatcher package dispatcher
import ( import (

View File

@@ -1,4 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Copyright 2023 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0
set -eo pipefail set -eo pipefail

View File

@@ -1,3 +1,6 @@
// Copyright 2023 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package v1alpha1_test package v1alpha1_test
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2023 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package v1alpha1 package v1alpha1
import ( import (

View File

@@ -1,3 +1,6 @@
// Copyright 2023 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
// +groupName=platform.example.com // +groupName=platform.example.com
// +versionName=v1alpha1 // +versionName=v1alpha1
// +kubebuilder:validation:Required // +kubebuilder:validation:Required

View File

@@ -21,7 +21,7 @@ else
fi fi
args=( args=(
-y 2022 -y $(date +"%Y")
-c "The Kubernetes Authors." -c "The Kubernetes Authors."
-f LICENSE_TEMPLATE -f LICENSE_TEMPLATE
-ignore "kyaml/internal/forked/github.com/**/*" -ignore "kyaml/internal/forked/github.com/**/*"