From 2b10b061797f3e72dbb42f223a6aace2923afc5c Mon Sep 17 00:00:00 2001 From: David May <49894298+wass3rw3rk@users.noreply.github.com> Date: Wed, 11 Oct 2023 09:11:58 -0500 Subject: [PATCH] chore(license): update source code headers + copyright year (#161) --- .github/README.md | 4 ++-- .golangci.yml | 4 +--- .vela/template.yml | 4 +--- Dockerfile | 4 +--- LICENSE | 2 +- Makefile | 4 +--- cmd/vela-kubernetes/apply.go | 4 +--- cmd/vela-kubernetes/apply_test.go | 4 +--- cmd/vela-kubernetes/command.go | 4 +--- cmd/vela-kubernetes/command_test.go | 4 +--- cmd/vela-kubernetes/config.go | 4 +--- cmd/vela-kubernetes/config_test.go | 4 +--- cmd/vela-kubernetes/container.go | 4 +--- cmd/vela-kubernetes/container_test.go | 4 +--- cmd/vela-kubernetes/kubectl.go | 4 +--- cmd/vela-kubernetes/kubectl_test.go | 4 +--- cmd/vela-kubernetes/main.go | 6 ++---- cmd/vela-kubernetes/patch.go | 4 +--- cmd/vela-kubernetes/patch_test.go | 4 +--- cmd/vela-kubernetes/plugin.go | 4 +--- cmd/vela-kubernetes/plugin_test.go | 4 +--- cmd/vela-kubernetes/status.go | 4 +--- cmd/vela-kubernetes/status_test.go | 4 +--- version/version.go | 4 +--- 24 files changed, 26 insertions(+), 70 deletions(-) diff --git a/.github/README.md b/.github/README.md index f0e275d..931810a 100644 --- a/.github/README.md +++ b/.github/README.md @@ -28,7 +28,7 @@ Please see our [support](SUPPORT.md) documentation for further instructions. ## Copyright and License ``` -Copyright (c) 2023 Target Brands, Inc. +Copyright 2020 Target Brands, Inc. ``` -[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0) +[Apache License, Version 2.0](../LICENSE) diff --git a/.golangci.yml b/.golangci.yml index 97b6d15..44382f6 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -35,9 +35,7 @@ linters-settings: # https://github.com/denis-tingaikin/go-header goheader: template: |- - Copyright (c) {{ YEAR }} Target Brands, Inc. All rights reserved. - - Use of this source code is governed by the LICENSE file in this repository. + SPDX-License-Identifier: Apache-2.0 # https://github.com/client9/misspell misspell: diff --git a/.vela/template.yml b/.vela/template.yml index a6a66c1..e0f3e72 100644 --- a/.vela/template.yml +++ b/.vela/template.yml @@ -1,6 +1,4 @@ -# Copyright (c) 2023 Target Brands, Inc. All rights reserved. -# -# Use of this source code is governed by the LICENSE file in this repository. +# SPDX-License-Identifier: Apache-2.0 ## Template Variables # - .image (default: "target/vela-kubernetes:latest") diff --git a/Dockerfile b/Dockerfile index 2db8397..232fee4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,4 @@ -# Copyright (c) 2023 Target Brands, Inc. All rights reserved. -# -# Use of this source code is governed by the LICENSE file in this repository. +# SPDX-License-Identifier: Apache-2.0 # set a global Docker argument for the default CLI version # diff --git a/LICENSE b/LICENSE index aa8083a..2f0c342 100644 --- a/LICENSE +++ b/LICENSE @@ -186,7 +186,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright (c) 2023 Target Brands, Inc. + Copyright 2020 Target Brands, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/Makefile b/Makefile index dd9a67a..d782d47 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,4 @@ -# Copyright (c) 2023 Target Brands, Inc. All rights reserved. -# -# Use of this source code is governed by the LICENSE file in this repository. +# SPDX-License-Identifier: Apache-2.0 # capture the current date we build the application from BUILD_DATE = $(shell date +%Y-%m-%dT%H:%M:%SZ) diff --git a/cmd/vela-kubernetes/apply.go b/cmd/vela-kubernetes/apply.go index 90bafc3..45bf97e 100644 --- a/cmd/vela-kubernetes/apply.go +++ b/cmd/vela-kubernetes/apply.go @@ -1,6 +1,4 @@ -// Copyright (c) 2023 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/vela-kubernetes/apply_test.go b/cmd/vela-kubernetes/apply_test.go index d54966f..1af13b1 100644 --- a/cmd/vela-kubernetes/apply_test.go +++ b/cmd/vela-kubernetes/apply_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2023 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/vela-kubernetes/command.go b/cmd/vela-kubernetes/command.go index eb5b528..9774777 100644 --- a/cmd/vela-kubernetes/command.go +++ b/cmd/vela-kubernetes/command.go @@ -1,6 +1,4 @@ -// Copyright (c) 2023 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/vela-kubernetes/command_test.go b/cmd/vela-kubernetes/command_test.go index a6b967e..3ca9198 100644 --- a/cmd/vela-kubernetes/command_test.go +++ b/cmd/vela-kubernetes/command_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2023 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/vela-kubernetes/config.go b/cmd/vela-kubernetes/config.go index 69d19cd..edfab3e 100644 --- a/cmd/vela-kubernetes/config.go +++ b/cmd/vela-kubernetes/config.go @@ -1,6 +1,4 @@ -// Copyright (c) 2023 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/vela-kubernetes/config_test.go b/cmd/vela-kubernetes/config_test.go index 7f4b39a..31e9e8f 100644 --- a/cmd/vela-kubernetes/config_test.go +++ b/cmd/vela-kubernetes/config_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2023 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/vela-kubernetes/container.go b/cmd/vela-kubernetes/container.go index f309644..8a84b14 100644 --- a/cmd/vela-kubernetes/container.go +++ b/cmd/vela-kubernetes/container.go @@ -1,6 +1,4 @@ -// Copyright (c) 2023 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/vela-kubernetes/container_test.go b/cmd/vela-kubernetes/container_test.go index 3002c11..b0ccdcc 100644 --- a/cmd/vela-kubernetes/container_test.go +++ b/cmd/vela-kubernetes/container_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2023 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/vela-kubernetes/kubectl.go b/cmd/vela-kubernetes/kubectl.go index 55fe74d..e56805a 100644 --- a/cmd/vela-kubernetes/kubectl.go +++ b/cmd/vela-kubernetes/kubectl.go @@ -1,6 +1,4 @@ -// Copyright (c) 2023 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/vela-kubernetes/kubectl_test.go b/cmd/vela-kubernetes/kubectl_test.go index a363f32..0d44b93 100644 --- a/cmd/vela-kubernetes/kubectl_test.go +++ b/cmd/vela-kubernetes/kubectl_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2023 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/vela-kubernetes/main.go b/cmd/vela-kubernetes/main.go index 5aa3ef6..7fa3711 100644 --- a/cmd/vela-kubernetes/main.go +++ b/cmd/vela-kubernetes/main.go @@ -1,6 +1,4 @@ -// Copyright (c) 2023 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main @@ -39,7 +37,7 @@ func main() { app.Name = "vela-kubernetes" app.HelpName = "vela-kubernetes" app.Usage = "Vela Kubernetes plugin for managing Kubernetes resources" - app.Copyright = "Copyright (c) 2023 Target Brands, Inc. All rights reserved." + app.Copyright = "Copyright 2020 Target Brands, Inc. All rights reserved." app.Authors = []*cli.Author{ { Name: "Vela Admins", diff --git a/cmd/vela-kubernetes/patch.go b/cmd/vela-kubernetes/patch.go index a26686f..d68fe85 100644 --- a/cmd/vela-kubernetes/patch.go +++ b/cmd/vela-kubernetes/patch.go @@ -1,6 +1,4 @@ -// Copyright (c) 2023 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/vela-kubernetes/patch_test.go b/cmd/vela-kubernetes/patch_test.go index a3c6a56..9d33a9e 100644 --- a/cmd/vela-kubernetes/patch_test.go +++ b/cmd/vela-kubernetes/patch_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2023 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/vela-kubernetes/plugin.go b/cmd/vela-kubernetes/plugin.go index 4b60302..2ab1edf 100644 --- a/cmd/vela-kubernetes/plugin.go +++ b/cmd/vela-kubernetes/plugin.go @@ -1,6 +1,4 @@ -// Copyright (c) 2023 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/vela-kubernetes/plugin_test.go b/cmd/vela-kubernetes/plugin_test.go index cda11a8..c6f582b 100644 --- a/cmd/vela-kubernetes/plugin_test.go +++ b/cmd/vela-kubernetes/plugin_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2023 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/vela-kubernetes/status.go b/cmd/vela-kubernetes/status.go index 5120daa..00c9f77 100644 --- a/cmd/vela-kubernetes/status.go +++ b/cmd/vela-kubernetes/status.go @@ -1,6 +1,4 @@ -// Copyright (c) 2023 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/cmd/vela-kubernetes/status_test.go b/cmd/vela-kubernetes/status_test.go index 8803a0b..59e29b3 100644 --- a/cmd/vela-kubernetes/status_test.go +++ b/cmd/vela-kubernetes/status_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2023 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/version/version.go b/version/version.go index e6003a7..3777217 100644 --- a/version/version.go +++ b/version/version.go @@ -1,6 +1,4 @@ -// Copyright (c) 2023 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package version