Fix SPDX license header (#231)

This change adds SPDX license headers to all files and eforces it with
the linter.

Signed-off-by: Philip Laine <philip.laine@gmail.com>
This commit is contained in:
Philip Laine
2026-05-05 12:59:36 +02:00
committed by GitHub
parent 8f8aeb562f
commit 69afe3aade
82 changed files with 154 additions and 151 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ jobs:
git diff --exit-code
- name: Verify generate is not dirty
run: |
make generate
make -B generate
git diff --exit-code
- name: Running unit tests
run: make test
+4
View File
@@ -18,6 +18,7 @@ linters:
- unparam
- unused
- importas
- goheader
settings:
revive:
rules:
@@ -76,6 +77,9 @@ linters:
- pkg: sigs.k8s.io/gateway-api/apis/v1alpha2
alias: gwv1alpha2
no-extra-aliases: true
goheader:
template: |-
SPDX-License-Identifier: BSD-3-Clause
exclusions:
generated: lax
rules:
+1 -15
View File
@@ -1,18 +1,4 @@
/*
Copyright 2025.
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.
*/
// SPDX-License-Identifier: BSD-3-Clause
// Package v1 contains API Schema definitions for the v1 API group.
// +kubebuilder:object:generate=true
+2
View File
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: BSD-3-Clause
package v1
import (
+2
View File
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: BSD-3-Clause
package v1
import (
+2
View File
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: BSD-3-Clause
package v1
import (
+2
View File
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: BSD-3-Clause
package v1
import (
+1 -15
View File
@@ -1,18 +1,4 @@
/*
Copyright 2025.
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.
*/
// SPDX-License-Identifier: BSD-3-Clause
package v1
+2
View File
@@ -1,5 +1,7 @@
//go:build !ignore_autogenerated
// SPDX-License-Identifier: BSD-3-Clause
// Code generated by controller-gen. DO NOT EDIT.
package v1
+2
View File
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: BSD-3-Clause
package v1alpha1
const ReadyCondition = "Ready"
+2
View File
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: BSD-3-Clause
package v1alpha1
import (
+2
View File
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: BSD-3-Clause
// Package v1alpha1 contains API Schema definitions for the v1alpha1 API group.
// +kubebuilder:object:generate=true
// +groupName=netbird.io
+2
View File
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: BSD-3-Clause
package v1alpha1
import (
+2
View File
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: BSD-3-Clause
package v1alpha1
import (
+2
View File
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: BSD-3-Clause
package v1alpha1
type CrossNamespaceReference struct {
+2
View File
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: BSD-3-Clause
package v1alpha1
import (
+2
View File
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: BSD-3-Clause
package v1alpha1
import (
+2
View File
@@ -1,5 +1,7 @@
//go:build !ignore_autogenerated
// SPDX-License-Identifier: BSD-3-Clause
// Code generated by controller-gen. DO NOT EDIT.
package v1alpha1
+1 -15
View File
@@ -1,18 +1,4 @@
/*
Copyright 2025.
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.
*/
// SPDX-License-Identifier: BSD-3-Clause
package main
+1
View File
@@ -0,0 +1 @@
// SPDX-License-Identifier: BSD-3-Clause

Some files were not shown because too many files have changed in this diff Show More