diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index 639b2b5..071407a 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -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 diff --git a/.golangci.yml b/.golangci.yml index 811db58..9da212d 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -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: diff --git a/api/v1/groupversion_info.go b/api/v1/groupversion_info.go index 1b9fcb9..b03587c 100644 --- a/api/v1/groupversion_info.go +++ b/api/v1/groupversion_info.go @@ -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 diff --git a/api/v1/nbgroup_types.go b/api/v1/nbgroup_types.go index 24bb509..922718b 100644 --- a/api/v1/nbgroup_types.go +++ b/api/v1/nbgroup_types.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package v1 import ( diff --git a/api/v1/nbpolicy_types.go b/api/v1/nbpolicy_types.go index f64a53e..3777d9f 100644 --- a/api/v1/nbpolicy_types.go +++ b/api/v1/nbpolicy_types.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package v1 import ( diff --git a/api/v1/nbresource_types.go b/api/v1/nbresource_types.go index ef45533..54c6296 100644 --- a/api/v1/nbresource_types.go +++ b/api/v1/nbresource_types.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package v1 import ( diff --git a/api/v1/nbroutingpeer_types.go b/api/v1/nbroutingpeer_types.go index 8553374..9022008 100644 --- a/api/v1/nbroutingpeer_types.go +++ b/api/v1/nbroutingpeer_types.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package v1 import ( diff --git a/api/v1/nbsetupkey_types.go b/api/v1/nbsetupkey_types.go index 679aa9e..67aa15d 100644 --- a/api/v1/nbsetupkey_types.go +++ b/api/v1/nbsetupkey_types.go @@ -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 diff --git a/api/v1/zz_generated.deepcopy.go b/api/v1/zz_generated.deepcopy.go index f614b3f..727a95f 100644 --- a/api/v1/zz_generated.deepcopy.go +++ b/api/v1/zz_generated.deepcopy.go @@ -1,5 +1,7 @@ //go:build !ignore_autogenerated +// SPDX-License-Identifier: BSD-3-Clause + // Code generated by controller-gen. DO NOT EDIT. package v1 diff --git a/api/v1alpha1/condition_types.go b/api/v1alpha1/condition_types.go index 74c854d..3f81a86 100644 --- a/api/v1alpha1/condition_types.go +++ b/api/v1alpha1/condition_types.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package v1alpha1 const ReadyCondition = "Ready" diff --git a/api/v1alpha1/group_types.go b/api/v1alpha1/group_types.go index b703625..e3b48e0 100644 --- a/api/v1alpha1/group_types.go +++ b/api/v1alpha1/group_types.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package v1alpha1 import ( diff --git a/api/v1alpha1/groupversion_info.go b/api/v1alpha1/groupversion_info.go index d2bf4a2..e98da75 100644 --- a/api/v1alpha1/groupversion_info.go +++ b/api/v1alpha1/groupversion_info.go @@ -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 diff --git a/api/v1alpha1/networkresource_types.go b/api/v1alpha1/networkresource_types.go index 867cd4c..751b005 100644 --- a/api/v1alpha1/networkresource_types.go +++ b/api/v1alpha1/networkresource_types.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package v1alpha1 import ( diff --git a/api/v1alpha1/networkrouter_types.go b/api/v1alpha1/networkrouter_types.go index 151d43a..47103dc 100644 --- a/api/v1alpha1/networkrouter_types.go +++ b/api/v1alpha1/networkrouter_types.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package v1alpha1 import ( diff --git a/api/v1alpha1/reference_type.go b/api/v1alpha1/reference_type.go index d227006..d279f3f 100644 --- a/api/v1alpha1/reference_type.go +++ b/api/v1alpha1/reference_type.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package v1alpha1 type CrossNamespaceReference struct { diff --git a/api/v1alpha1/setupkey_types.go b/api/v1alpha1/setupkey_types.go index a0b1c5e..17e9f3c 100644 --- a/api/v1alpha1/setupkey_types.go +++ b/api/v1alpha1/setupkey_types.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package v1alpha1 import ( diff --git a/api/v1alpha1/sidecarprofile_types.go b/api/v1alpha1/sidecarprofile_types.go index f15f768..6ad6bf0 100644 --- a/api/v1alpha1/sidecarprofile_types.go +++ b/api/v1alpha1/sidecarprofile_types.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package v1alpha1 import ( diff --git a/api/v1alpha1/zz_generated.deepcopy.go b/api/v1alpha1/zz_generated.deepcopy.go index 2f35b21..ff5b7e0 100644 --- a/api/v1alpha1/zz_generated.deepcopy.go +++ b/api/v1alpha1/zz_generated.deepcopy.go @@ -1,5 +1,7 @@ //go:build !ignore_autogenerated +// SPDX-License-Identifier: BSD-3-Clause + // Code generated by controller-gen. DO NOT EDIT. package v1alpha1 diff --git a/cmd/main.go b/cmd/main.go index dd85d51..adaf94f 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -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 diff --git a/hack/boilerplate.go.txt b/hack/boilerplate.go.txt index e69de29..1113d25 100644 --- a/hack/boilerplate.go.txt +++ b/hack/boilerplate.go.txt @@ -0,0 +1 @@ +// SPDX-License-Identifier: BSD-3-Clause diff --git a/internal/controller/gateway_controller.go b/internal/controller/gateway_controller.go index 644ffb9..ed043aa 100644 --- a/internal/controller/gateway_controller.go +++ b/internal/controller/gateway_controller.go @@ -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 controller diff --git a/internal/controller/gatewayclass_controller.go b/internal/controller/gatewayclass_controller.go index fd95338..0e4738b 100644 --- a/internal/controller/gatewayclass_controller.go +++ b/internal/controller/gatewayclass_controller.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package controller import ( diff --git a/internal/controller/group_controller.go b/internal/controller/group_controller.go index 65e747b..825e25a 100644 --- a/internal/controller/group_controller.go +++ b/internal/controller/group_controller.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package controller import ( diff --git a/internal/controller/group_controller_test.go b/internal/controller/group_controller_test.go index f33bb6d..dc5daab 100644 --- a/internal/controller/group_controller_test.go +++ b/internal/controller/group_controller_test.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package controller import ( diff --git a/internal/controller/httproute_controller.go b/internal/controller/httproute_controller.go index e53b980..c2dee07 100644 --- a/internal/controller/httproute_controller.go +++ b/internal/controller/httproute_controller.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package controller import ( diff --git a/internal/controller/nbgroup_controller.go b/internal/controller/nbgroup_controller.go index 1926099..bb51e01 100644 --- a/internal/controller/nbgroup_controller.go +++ b/internal/controller/nbgroup_controller.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package controller import ( diff --git a/internal/controller/nbgroup_controller_test.go b/internal/controller/nbgroup_controller_test.go index 615bdf7..16a4beb 100644 --- a/internal/controller/nbgroup_controller_test.go +++ b/internal/controller/nbgroup_controller_test.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package controller import ( diff --git a/internal/controller/nbpolicy_controller.go b/internal/controller/nbpolicy_controller.go index 1669bcf..a8b648b 100644 --- a/internal/controller/nbpolicy_controller.go +++ b/internal/controller/nbpolicy_controller.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package controller import ( diff --git a/internal/controller/nbpolicy_controller_test.go b/internal/controller/nbpolicy_controller_test.go index acfb9d9..1f2dcc5 100644 --- a/internal/controller/nbpolicy_controller_test.go +++ b/internal/controller/nbpolicy_controller_test.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package controller import ( diff --git a/internal/controller/nbresource_controller.go b/internal/controller/nbresource_controller.go index 6192724..6f494c3 100644 --- a/internal/controller/nbresource_controller.go +++ b/internal/controller/nbresource_controller.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package controller import ( diff --git a/internal/controller/nbresource_controller_test.go b/internal/controller/nbresource_controller_test.go index 0278509..e8a284f 100644 --- a/internal/controller/nbresource_controller_test.go +++ b/internal/controller/nbresource_controller_test.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package controller import ( diff --git a/internal/controller/nbroutingpeer_controller.go b/internal/controller/nbroutingpeer_controller.go index 73686b0..0f8bbfd 100644 --- a/internal/controller/nbroutingpeer_controller.go +++ b/internal/controller/nbroutingpeer_controller.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package controller import ( diff --git a/internal/controller/nbroutingpeer_controller_test.go b/internal/controller/nbroutingpeer_controller_test.go index 2df1565..43702eb 100644 --- a/internal/controller/nbroutingpeer_controller_test.go +++ b/internal/controller/nbroutingpeer_controller_test.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package controller import ( diff --git a/internal/controller/nbsetupkey_controller.go b/internal/controller/nbsetupkey_controller.go index 7941a2a..0406a9d 100644 --- a/internal/controller/nbsetupkey_controller.go +++ b/internal/controller/nbsetupkey_controller.go @@ -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 controller diff --git a/internal/controller/nbsetupkey_controller_test.go b/internal/controller/nbsetupkey_controller_test.go index 412fd20..797c77b 100644 --- a/internal/controller/nbsetupkey_controller_test.go +++ b/internal/controller/nbsetupkey_controller_test.go @@ -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 controller diff --git a/internal/controller/networkresource_controller.go b/internal/controller/networkresource_controller.go index bfe540a..703f386 100644 --- a/internal/controller/networkresource_controller.go +++ b/internal/controller/networkresource_controller.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package controller import ( diff --git a/internal/controller/networkresource_controller_test.go b/internal/controller/networkresource_controller_test.go index a513b76..d47c510 100644 --- a/internal/controller/networkresource_controller_test.go +++ b/internal/controller/networkresource_controller_test.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package controller import ( diff --git a/internal/controller/networkrouter_controller.go b/internal/controller/networkrouter_controller.go index da0c82a..077a3e6 100644 --- a/internal/controller/networkrouter_controller.go +++ b/internal/controller/networkrouter_controller.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package controller import ( diff --git a/internal/controller/networkrouter_controller_test.go b/internal/controller/networkrouter_controller_test.go index 761c1e4..9f33fe3 100644 --- a/internal/controller/networkrouter_controller_test.go +++ b/internal/controller/networkrouter_controller_test.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package controller import ( diff --git a/internal/controller/service_controller.go b/internal/controller/service_controller.go index f669423..cfbba9b 100644 --- a/internal/controller/service_controller.go +++ b/internal/controller/service_controller.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package controller import ( diff --git a/internal/controller/service_controller_test.go b/internal/controller/service_controller_test.go index 4221958..1641110 100644 --- a/internal/controller/service_controller_test.go +++ b/internal/controller/service_controller_test.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package controller import ( diff --git a/internal/controller/setupkey_controller.go b/internal/controller/setupkey_controller.go index bc8cb05..126a1ca 100644 --- a/internal/controller/setupkey_controller.go +++ b/internal/controller/setupkey_controller.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package controller import ( diff --git a/internal/controller/setupkey_controller_test.go b/internal/controller/setupkey_controller_test.go index 7d796d7..e3e0834 100644 --- a/internal/controller/setupkey_controller_test.go +++ b/internal/controller/setupkey_controller_test.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package controller import ( diff --git a/internal/controller/suite_test.go b/internal/controller/suite_test.go index 86fd012..1b24fdf 100644 --- a/internal/controller/suite_test.go +++ b/internal/controller/suite_test.go @@ -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 controller diff --git a/internal/controller/tcproute_controller.go b/internal/controller/tcproute_controller.go index 2e2b187..bca91bd 100644 --- a/internal/controller/tcproute_controller.go +++ b/internal/controller/tcproute_controller.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package controller import ( diff --git a/internal/gatewayutil/gatewayutil.go b/internal/gatewayutil/gatewayutil.go index 3eb1175..b958ab9 100644 --- a/internal/gatewayutil/gatewayutil.go +++ b/internal/gatewayutil/gatewayutil.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package gatewayutil import ( diff --git a/internal/k8sutil/finalizer.go b/internal/k8sutil/finalizer.go index 6e11907..292bd30 100644 --- a/internal/k8sutil/finalizer.go +++ b/internal/k8sutil/finalizer.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package k8sutil const NetbirdFinalizer = "finalizers.netbird.io" diff --git a/internal/k8sutil/owner.go b/internal/k8sutil/owner.go index f58181c..62291f6 100644 --- a/internal/k8sutil/owner.go +++ b/internal/k8sutil/owner.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package k8sutil import ( diff --git a/internal/netbirdmock/netbirdmock.go b/internal/netbirdmock/netbirdmock.go index dbc03c4..2f05f91 100644 --- a/internal/netbirdmock/netbirdmock.go +++ b/internal/netbirdmock/netbirdmock.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package netbirdmock import ( diff --git a/internal/netbirdutil/group.go b/internal/netbirdutil/group.go index 09b7762..1a9fff4 100644 --- a/internal/netbirdutil/group.go +++ b/internal/netbirdutil/group.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package netbirdutil import ( diff --git a/internal/netbirdutil/zone.go b/internal/netbirdutil/zone.go index 48bee15..8bca613 100644 --- a/internal/netbirdutil/zone.go +++ b/internal/netbirdutil/zone.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package netbirdutil import ( diff --git a/internal/util/ptr.go b/internal/util/ptr.go index 8b972e2..4237cf1 100644 --- a/internal/util/ptr.go +++ b/internal/util/ptr.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package util // Ptr return pointer to any value for API purposes diff --git a/internal/util/slices.go b/internal/util/slices.go index d1241be..bd7e30f 100644 --- a/internal/util/slices.go +++ b/internal/util/slices.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package util import "strings" diff --git a/internal/version/version.go b/internal/version/version.go index 4aa5079..c5c0b60 100644 --- a/internal/version/version.go +++ b/internal/version/version.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package version func ClientImage() string { diff --git a/internal/version/version_test.go b/internal/version/version_test.go index bd0eea8..d1250da 100644 --- a/internal/version/version_test.go +++ b/internal/version/version_test.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package version import ( diff --git a/internal/webhook/v1/nbgroup_webhook.go b/internal/webhook/v1/nbgroup_webhook.go index 3e0ef10..d62e540 100644 --- a/internal/webhook/v1/nbgroup_webhook.go +++ b/internal/webhook/v1/nbgroup_webhook.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package v1 import ( diff --git a/internal/webhook/v1/nbgroup_webhook_test.go b/internal/webhook/v1/nbgroup_webhook_test.go index 7e02053..0d8d487 100644 --- a/internal/webhook/v1/nbgroup_webhook_test.go +++ b/internal/webhook/v1/nbgroup_webhook_test.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + package v1 import ( diff --git a/internal/webhook/v1/pod_webhook.go b/internal/webhook/v1/pod_webhook.go index 31d6a02..ba88ebb 100644 --- a/internal/webhook/v1/pod_webhook.go +++ b/internal/webhook/v1/pod_webhook.go @@ -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 diff --git a/internal/webhook/v1/pod_webhook_test.go b/internal/webhook/v1/pod_webhook_test.go index 579041f..9e47af2 100644 --- a/internal/webhook/v1/pod_webhook_test.go +++ b/internal/webhook/v1/pod_webhook_test.go @@ -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 diff --git a/internal/webhook/v1/webhook_suite_test.go b/internal/webhook/v1/webhook_suite_test.go index 226b963..b46adbb 100644 --- a/internal/webhook/v1/webhook_suite_test.go +++ b/internal/webhook/v1/webhook_suite_test.go @@ -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 diff --git a/pkg/applyconfigurations/api/v1alpha1/containeroverride.go b/pkg/applyconfigurations/api/v1alpha1/containeroverride.go index 088ae89..3e865e7 100644 --- a/pkg/applyconfigurations/api/v1alpha1/containeroverride.go +++ b/pkg/applyconfigurations/api/v1alpha1/containeroverride.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + // Code generated by controller-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/applyconfigurations/api/v1alpha1/crossnamespacereference.go b/pkg/applyconfigurations/api/v1alpha1/crossnamespacereference.go index 4b11320..81cb19c 100644 --- a/pkg/applyconfigurations/api/v1alpha1/crossnamespacereference.go +++ b/pkg/applyconfigurations/api/v1alpha1/crossnamespacereference.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + // Code generated by controller-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/applyconfigurations/api/v1alpha1/dnszonereference.go b/pkg/applyconfigurations/api/v1alpha1/dnszonereference.go index 4b11ea1..265f827 100644 --- a/pkg/applyconfigurations/api/v1alpha1/dnszonereference.go +++ b/pkg/applyconfigurations/api/v1alpha1/dnszonereference.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + // Code generated by controller-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/applyconfigurations/api/v1alpha1/group.go b/pkg/applyconfigurations/api/v1alpha1/group.go index 73fe628..f41ac1e 100644 --- a/pkg/applyconfigurations/api/v1alpha1/group.go +++ b/pkg/applyconfigurations/api/v1alpha1/group.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + // Code generated by controller-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/applyconfigurations/api/v1alpha1/groupreference.go b/pkg/applyconfigurations/api/v1alpha1/groupreference.go index 35f934e..e02c851 100644 --- a/pkg/applyconfigurations/api/v1alpha1/groupreference.go +++ b/pkg/applyconfigurations/api/v1alpha1/groupreference.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + // Code generated by controller-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/applyconfigurations/api/v1alpha1/groupspec.go b/pkg/applyconfigurations/api/v1alpha1/groupspec.go index d7b1e67..ecf77fe 100644 --- a/pkg/applyconfigurations/api/v1alpha1/groupspec.go +++ b/pkg/applyconfigurations/api/v1alpha1/groupspec.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + // Code generated by controller-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/applyconfigurations/api/v1alpha1/groupstatus.go b/pkg/applyconfigurations/api/v1alpha1/groupstatus.go index 557b72e..ed6e40a 100644 --- a/pkg/applyconfigurations/api/v1alpha1/groupstatus.go +++ b/pkg/applyconfigurations/api/v1alpha1/groupstatus.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + // Code generated by controller-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/applyconfigurations/api/v1alpha1/networkresource.go b/pkg/applyconfigurations/api/v1alpha1/networkresource.go index 912d320..1375147 100644 --- a/pkg/applyconfigurations/api/v1alpha1/networkresource.go +++ b/pkg/applyconfigurations/api/v1alpha1/networkresource.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + // Code generated by controller-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/applyconfigurations/api/v1alpha1/networkresourcespec.go b/pkg/applyconfigurations/api/v1alpha1/networkresourcespec.go index 61b7ca9..7491e7b 100644 --- a/pkg/applyconfigurations/api/v1alpha1/networkresourcespec.go +++ b/pkg/applyconfigurations/api/v1alpha1/networkresourcespec.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + // Code generated by controller-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/applyconfigurations/api/v1alpha1/networkresourcestatus.go b/pkg/applyconfigurations/api/v1alpha1/networkresourcestatus.go index 8404af7..9fda6bb 100644 --- a/pkg/applyconfigurations/api/v1alpha1/networkresourcestatus.go +++ b/pkg/applyconfigurations/api/v1alpha1/networkresourcestatus.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + // Code generated by controller-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/applyconfigurations/api/v1alpha1/networkrouter.go b/pkg/applyconfigurations/api/v1alpha1/networkrouter.go index c2c6dd7..b8daa86 100644 --- a/pkg/applyconfigurations/api/v1alpha1/networkrouter.go +++ b/pkg/applyconfigurations/api/v1alpha1/networkrouter.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + // Code generated by controller-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/applyconfigurations/api/v1alpha1/networkrouterspec.go b/pkg/applyconfigurations/api/v1alpha1/networkrouterspec.go index 3b49eaf..8d69e92 100644 --- a/pkg/applyconfigurations/api/v1alpha1/networkrouterspec.go +++ b/pkg/applyconfigurations/api/v1alpha1/networkrouterspec.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + // Code generated by controller-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/applyconfigurations/api/v1alpha1/networkrouterstatus.go b/pkg/applyconfigurations/api/v1alpha1/networkrouterstatus.go index b7cc453..fd1e7ae 100644 --- a/pkg/applyconfigurations/api/v1alpha1/networkrouterstatus.go +++ b/pkg/applyconfigurations/api/v1alpha1/networkrouterstatus.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + // Code generated by controller-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/applyconfigurations/api/v1alpha1/setupkey.go b/pkg/applyconfigurations/api/v1alpha1/setupkey.go index 88bb856..43e57df 100644 --- a/pkg/applyconfigurations/api/v1alpha1/setupkey.go +++ b/pkg/applyconfigurations/api/v1alpha1/setupkey.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + // Code generated by controller-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/applyconfigurations/api/v1alpha1/setupkeyspec.go b/pkg/applyconfigurations/api/v1alpha1/setupkeyspec.go index b16ce18..2c02f6b 100644 --- a/pkg/applyconfigurations/api/v1alpha1/setupkeyspec.go +++ b/pkg/applyconfigurations/api/v1alpha1/setupkeyspec.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + // Code generated by controller-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/applyconfigurations/api/v1alpha1/setupkeystatus.go b/pkg/applyconfigurations/api/v1alpha1/setupkeystatus.go index 08b22d3..ebe2f23 100644 --- a/pkg/applyconfigurations/api/v1alpha1/setupkeystatus.go +++ b/pkg/applyconfigurations/api/v1alpha1/setupkeystatus.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + // Code generated by controller-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/applyconfigurations/api/v1alpha1/sidecarprofile.go b/pkg/applyconfigurations/api/v1alpha1/sidecarprofile.go index eecbe58..cebfbff 100644 --- a/pkg/applyconfigurations/api/v1alpha1/sidecarprofile.go +++ b/pkg/applyconfigurations/api/v1alpha1/sidecarprofile.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + // Code generated by controller-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/applyconfigurations/api/v1alpha1/sidecarprofilespec.go b/pkg/applyconfigurations/api/v1alpha1/sidecarprofilespec.go index dcbf6fb..8ea8158 100644 --- a/pkg/applyconfigurations/api/v1alpha1/sidecarprofilespec.go +++ b/pkg/applyconfigurations/api/v1alpha1/sidecarprofilespec.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + // Code generated by controller-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/applyconfigurations/api/v1alpha1/sidecarprofilestatus.go b/pkg/applyconfigurations/api/v1alpha1/sidecarprofilestatus.go index 3581316..d670549 100644 --- a/pkg/applyconfigurations/api/v1alpha1/sidecarprofilestatus.go +++ b/pkg/applyconfigurations/api/v1alpha1/sidecarprofilestatus.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + // Code generated by controller-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/applyconfigurations/api/v1alpha1/workloadoverride.go b/pkg/applyconfigurations/api/v1alpha1/workloadoverride.go index 66135da..e94d030 100644 --- a/pkg/applyconfigurations/api/v1alpha1/workloadoverride.go +++ b/pkg/applyconfigurations/api/v1alpha1/workloadoverride.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + // Code generated by controller-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/applyconfigurations/internal/internal.go b/pkg/applyconfigurations/internal/internal.go index 35ead19..4fb8408 100644 --- a/pkg/applyconfigurations/internal/internal.go +++ b/pkg/applyconfigurations/internal/internal.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + // Code generated by controller-gen. DO NOT EDIT. package internal diff --git a/pkg/applyconfigurations/utils.go b/pkg/applyconfigurations/utils.go index 6091592..9ecc3ad 100644 --- a/pkg/applyconfigurations/utils.go +++ b/pkg/applyconfigurations/utils.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-3-Clause + // Code generated by controller-gen. DO NOT EDIT. package applyconfigurations