Skip to content

Commit 69afe3a

Browse files
authored
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>
1 parent 8f8aeb5 commit 69afe3a

82 files changed

Lines changed: 154 additions & 151 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/go.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
git diff --exit-code
3232
- name: Verify generate is not dirty
3333
run: |
34-
make generate
34+
make -B generate
3535
git diff --exit-code
3636
- name: Running unit tests
3737
run: make test

.golangci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ linters:
1818
- unparam
1919
- unused
2020
- importas
21+
- goheader
2122
settings:
2223
revive:
2324
rules:
@@ -76,6 +77,9 @@ linters:
7677
- pkg: sigs.k8s.io/gateway-api/apis/v1alpha2
7778
alias: gwv1alpha2
7879
no-extra-aliases: true
80+
goheader:
81+
template: |-
82+
SPDX-License-Identifier: BSD-3-Clause
7983
exclusions:
8084
generated: lax
8185
rules:

api/v1/groupversion_info.go

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,4 @@
1-
/*
2-
Copyright 2025.
3-
4-
Licensed under the Apache License, Version 2.0 (the "License");
5-
you may not use this file except in compliance with the License.
6-
You may obtain a copy of the License at
7-
8-
http://www.apache.org/licenses/LICENSE-2.0
9-
10-
Unless required by applicable law or agreed to in writing, software
11-
distributed under the License is distributed on an "AS IS" BASIS,
12-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
See the License for the specific language governing permissions and
14-
limitations under the License.
15-
*/
1+
// SPDX-License-Identifier: BSD-3-Clause
162

173
// Package v1 contains API Schema definitions for the v1 API group.
184
// +kubebuilder:object:generate=true

api/v1/nbgroup_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: BSD-3-Clause
2+
13
package v1
24

35
import (

api/v1/nbpolicy_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: BSD-3-Clause
2+
13
package v1
24

35
import (

api/v1/nbresource_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: BSD-3-Clause
2+
13
package v1
24

35
import (

api/v1/nbroutingpeer_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: BSD-3-Clause
2+
13
package v1
24

35
import (

api/v1/nbsetupkey_types.go

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,4 @@
1-
/*
2-
Copyright 2025.
3-
4-
Licensed under the Apache License, Version 2.0 (the "License");
5-
you may not use this file except in compliance with the License.
6-
You may obtain a copy of the License at
7-
8-
http://www.apache.org/licenses/LICENSE-2.0
9-
10-
Unless required by applicable law or agreed to in writing, software
11-
distributed under the License is distributed on an "AS IS" BASIS,
12-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
See the License for the specific language governing permissions and
14-
limitations under the License.
15-
*/
1+
// SPDX-License-Identifier: BSD-3-Clause
162

173
package v1
184

api/v1/zz_generated.deepcopy.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1alpha1/condition_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: BSD-3-Clause
2+
13
package v1alpha1
24

35
const ReadyCondition = "Ready"

0 commit comments

Comments
 (0)