From 6c465d194f4ac13ad69b79b35051b60b2ceeb343 Mon Sep 17 00:00:00 2001 From: Stephen Kitt Date: Fri, 21 May 2021 11:39:35 +0200 Subject: [PATCH] Update the copyright statements to match CNCF recs This updates the copyright statements to match the CNCF recommendation, as per https://github.com/cncf/foundation/blob/master/copyright-notices.md We also add SPDX headers, and add enforcement. Signed-off-by: Stephen Kitt --- .github/workflows/linting.yml | 2 +- .legal.json | 4 --- .licenserc.json | 32 +++++++++++++++++++ apis/addtoscheme_submariner_v1alpha1.go | 4 ++- apis/apis.go | 4 ++- apis/submariner/group.go | 4 ++- apis/submariner/v1alpha1/doc.go | 4 ++- apis/submariner/v1alpha1/register.go | 4 ++- .../v1alpha1/servicediscovery_types.go | 4 ++- apis/submariner/v1alpha1/submariner_types.go | 4 ++- .../v1alpha1/zz_generated.deepcopy.go | 3 +- controllers/controllers.go | 4 ++- controllers/helpers/helpers.go | 4 ++- controllers/metrics/metrics.go | 4 ++- .../servicediscovery_controller.go | 4 ++- .../servicediscovery_controller_test.go | 4 ++- .../servicediscovery_suite_test.go | 4 ++- controllers/submariner/broker_controller.go | 4 ++- controllers/submariner/netwokplugin_syncer.go | 4 ++- .../submariner/submariner_controller.go | 4 ++- .../submariner/submariner_controller_test.go | 4 ++- controllers/submariner/submariner_metrics.go | 4 ++- .../submariner/submariner_networkdiscovery.go | 4 ++- .../submariner/submariner_suite_test.go | 4 ++- hack/boilerplate.go.txt | 5 +-- main.go | 4 ++- pkg/broker/broker_suite_test.go | 4 ++- pkg/broker/ensure.go | 4 ++- pkg/broker/globalcidr_cm.go | 4 ++- pkg/broker/namespace.go | 4 ++- pkg/broker/rbac.go | 4 ++- pkg/discovery/globalnet/globalnet.go | 4 ++- .../globalnet/globalnet_suite_test.go | 4 ++- pkg/discovery/globalnet/globalnet_test.go | 4 ++- pkg/discovery/network/canal.go | 4 ++- pkg/discovery/network/canal_test.go | 4 ++- pkg/discovery/network/generic.go | 4 ++- pkg/discovery/network/generic_test.go | 4 ++- pkg/discovery/network/network.go | 4 ++- pkg/discovery/network/network_suite_test.go | 4 ++- pkg/discovery/network/openshift4.go | 4 ++- pkg/discovery/network/openshift4_test.go | 4 ++- pkg/discovery/network/ovnkubernetes.go | 4 ++- pkg/discovery/network/ovnkubernetes_test.go | 4 ++- pkg/discovery/network/pods.go | 4 ++- pkg/discovery/network/pods_test.go | 4 ++- pkg/discovery/network/weavenet.go | 4 ++- pkg/discovery/network/weavenet_test.go | 4 ++- pkg/gateway/crds.go | 4 ++- pkg/images/image_parsing_test.go | 4 ++- pkg/images/images.go | 4 ++- pkg/lighthouse/crds.go | 4 ++- pkg/names/names.go | 4 ++- pkg/subctl/benchmark/latency.go | 4 ++- pkg/subctl/benchmark/throughput.go | 4 ++- pkg/subctl/cmd/benchmark.go | 4 ++- pkg/subctl/cmd/cloud/cleanup/aws.go | 4 ++- pkg/subctl/cmd/cloud/cleanup/cleanup.go | 4 ++- pkg/subctl/cmd/cloud/cloud.go | 4 ++- pkg/subctl/cmd/cloud/prepare/aws.go | 4 ++- pkg/subctl/cmd/cloud/prepare/prepare.go | 4 ++- pkg/subctl/cmd/cloud/utils/aws.go | 4 ++- pkg/subctl/cmd/cloud/utils/reporter.go | 4 ++- pkg/subctl/cmd/deploybroker.go | 4 ++- pkg/subctl/cmd/export.go | 4 ++- pkg/subctl/cmd/gather.go | 4 ++- pkg/subctl/cmd/gather/cni.go | 4 ++- pkg/subctl/cmd/gather/connectivity.go | 4 ++- pkg/subctl/cmd/gather/logs.go | 4 ++- pkg/subctl/cmd/gather/operator.go | 4 ++- pkg/subctl/cmd/gather/resource.go | 4 ++- pkg/subctl/cmd/gather/servicediscovery.go | 4 ++- pkg/subctl/cmd/gather/types.go | 4 ++- pkg/subctl/cmd/join.go | 4 ++- pkg/subctl/cmd/resource.go | 4 ++- pkg/subctl/cmd/root.go | 4 ++- pkg/subctl/cmd/show.go | 4 ++- pkg/subctl/cmd/show_all.go | 4 ++- pkg/subctl/cmd/show_connections.go | 4 ++- pkg/subctl/cmd/show_endpoints.go | 4 ++- pkg/subctl/cmd/show_gateways.go | 4 ++- pkg/subctl/cmd/show_networks.go | 4 ++- pkg/subctl/cmd/show_versions.go | 4 ++- pkg/subctl/cmd/utils/utils.go | 4 ++- pkg/subctl/cmd/validate.go | 4 ++- pkg/subctl/cmd/validate_all.go | 4 ++- pkg/subctl/cmd/validate_cni.go | 4 ++- pkg/subctl/cmd/validate_connections.go | 4 ++- pkg/subctl/cmd/validate_deployment.go | 4 ++- pkg/subctl/cmd/validate_firewall.go | 4 ++- pkg/subctl/cmd/validate_fw_metrics.go | 4 ++- pkg/subctl/cmd/validate_fw_vxlan.go | 4 ++- pkg/subctl/cmd/validate_k8sversion.go | 4 ++- pkg/subctl/cmd/validate_kubeproxy.go | 4 ++- pkg/subctl/cmd/validate_tunnel.go | 4 ++- pkg/subctl/cmd/verify.go | 4 ++- pkg/subctl/cmd/version/version.go | 4 ++- pkg/subctl/components/consts.go | 4 ++- pkg/subctl/datafile/backup.go | 4 ++- pkg/subctl/datafile/datafile.go | 4 ++- pkg/subctl/datafile/datafile_test.go | 4 ++- pkg/subctl/datafile/ipsec_psk.go | 4 ++- pkg/subctl/datafile/ipsec_psk_test.go | 4 ++- pkg/subctl/main.go | 4 ++- pkg/subctl/operator/brokercr/ensure.go | 4 ++- .../operator/common/deployments/utils.go | 4 ++- .../operator/common/embeddedyamls/generate.go | 4 ++- .../embeddedyamls/generators/yamls2go.go | 29 +++++++++++++++-- .../common/embeddedyamls/unmarshal.go | 4 ++- .../operator/common/namespace/ensure.go | 4 ++- .../operator/common/operatorpod/ensure.go | 4 ++- pkg/subctl/operator/common/scc/utils.go | 4 ++- .../operator/common/serviceaccount/ensure.go | 4 ++- pkg/subctl/operator/lighthouse/crds/ensure.go | 4 ++- pkg/subctl/operator/lighthouse/ensure.go | 4 ++- pkg/subctl/operator/lighthouse/scc/ensure.go | 4 ++- .../lighthouse/serviceaccount/ensure.go | 4 ++- .../operator/servicediscoverycr/ensure.go | 4 ++- pkg/subctl/operator/submarinercr/ensure.go | 4 ++- .../operator/submarinerop/crds/ensure.go | 4 ++- .../submarinerop/deployment/ensure.go | 4 ++- pkg/subctl/operator/submarinerop/ensure.go | 4 ++- .../operator/submarinerop/scc/ensure.go | 4 ++- .../submarinerop/serviceaccount/ensure.go | 4 ++- pkg/subctl/resource/exec.go | 4 ++- pkg/subctl/resource/schedule_pod.go | 4 ++- pkg/subctl/resource/util.go | 4 ++- pkg/subctl/table/table.go | 4 ++- pkg/utils/crds/crdutils.go | 4 ++- pkg/utils/createorupdate.go | 4 ++- pkg/utils/createorupdate_test.go | 4 ++- pkg/version/version.go | 4 ++- pkg/versions/versions.go | 4 ++- tools.go | 4 ++- 134 files changed, 448 insertions(+), 139 deletions(-) delete mode 100644 .legal.json create mode 100644 .licenserc.json diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 24ef495e2..a25177463 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -44,7 +44,7 @@ jobs: uses: actions/checkout@v2 - name: Check License Headers - uses: nilp0inter/search-legal-headers@v0.1.0 + uses: kt3k/license_checker@v1.0.6 licenses: name: Dependency Licenses diff --git a/.legal.json b/.legal.json deleted file mode 100644 index 95021b3f3..000000000 --- a/.legal.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "**/*.go": "Licensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n", - "LICENSE": "Apache License" -} diff --git a/.licenserc.json b/.licenserc.json new file mode 100644 index 000000000..648615c53 --- /dev/null +++ b/.licenserc.json @@ -0,0 +1,32 @@ +[ + { + "**/*.{go,proto}": [ + "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." + ], + "ignore": [ + "vendor/" + ] + }, + { + "**/*.{go,proto}": [ + "SPDX-License-Identifier: Apache-2.0", + "Copyright Contributors to the Submariner project." + ], + "ignore": [ + "pkg/client/clientset/", + "pkg/internal/", + "vendor/" + ] + }, + { + "LICENSE": "Apache License" + } +] diff --git a/apis/addtoscheme_submariner_v1alpha1.go b/apis/addtoscheme_submariner_v1alpha1.go index 56a5edbe7..8082a7133 100644 --- a/apis/addtoscheme_submariner_v1alpha1.go +++ b/apis/addtoscheme_submariner_v1alpha1.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/apis/apis.go b/apis/apis.go index 0e4778fe3..4fa1bd98b 100644 --- a/apis/apis.go +++ b/apis/apis.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/apis/submariner/group.go b/apis/submariner/group.go index ff315c71d..25478c0d7 100644 --- a/apis/submariner/group.go +++ b/apis/submariner/group.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/apis/submariner/v1alpha1/doc.go b/apis/submariner/v1alpha1/doc.go index 48d213e81..cb3680dc7 100644 --- a/apis/submariner/v1alpha1/doc.go +++ b/apis/submariner/v1alpha1/doc.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/apis/submariner/v1alpha1/register.go b/apis/submariner/v1alpha1/register.go index 736b14b48..956694011 100644 --- a/apis/submariner/v1alpha1/register.go +++ b/apis/submariner/v1alpha1/register.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/apis/submariner/v1alpha1/servicediscovery_types.go b/apis/submariner/v1alpha1/servicediscovery_types.go index b95c2e612..110efd844 100644 --- a/apis/submariner/v1alpha1/servicediscovery_types.go +++ b/apis/submariner/v1alpha1/servicediscovery_types.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/apis/submariner/v1alpha1/submariner_types.go b/apis/submariner/v1alpha1/submariner_types.go index 0f522241d..52db82e8f 100644 --- a/apis/submariner/v1alpha1/submariner_types.go +++ b/apis/submariner/v1alpha1/submariner_types.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/apis/submariner/v1alpha1/zz_generated.deepcopy.go b/apis/submariner/v1alpha1/zz_generated.deepcopy.go index bccda0c56..86c4f546e 100644 --- a/apis/submariner/v1alpha1/zz_generated.deepcopy.go +++ b/apis/submariner/v1alpha1/zz_generated.deepcopy.go @@ -1,8 +1,9 @@ // +build !ignore_autogenerated /* +SPDX-License-Identifier: Apache-2.0 -© 2021 Red Hat, Inc. and others. +Copyright Contributors to the Submariner project. 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/controllers/controllers.go b/controllers/controllers.go index 8d7a23462..9bcda7ef6 100644 --- a/controllers/controllers.go +++ b/controllers/controllers.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/controllers/helpers/helpers.go b/controllers/helpers/helpers.go index 1007de826..054709ed6 100644 --- a/controllers/helpers/helpers.go +++ b/controllers/helpers/helpers.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/controllers/metrics/metrics.go b/controllers/metrics/metrics.go index 9c140bb89..c19b126f6 100644 --- a/controllers/metrics/metrics.go +++ b/controllers/metrics/metrics.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/controllers/servicediscovery/servicediscovery_controller.go b/controllers/servicediscovery/servicediscovery_controller.go index 8860c0d2f..2664fb5b1 100644 --- a/controllers/servicediscovery/servicediscovery_controller.go +++ b/controllers/servicediscovery/servicediscovery_controller.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/controllers/servicediscovery/servicediscovery_controller_test.go b/controllers/servicediscovery/servicediscovery_controller_test.go index 9bbf09de9..087247bb8 100644 --- a/controllers/servicediscovery/servicediscovery_controller_test.go +++ b/controllers/servicediscovery/servicediscovery_controller_test.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/controllers/servicediscovery/servicediscovery_suite_test.go b/controllers/servicediscovery/servicediscovery_suite_test.go index 971499f2e..5a214c9cb 100644 --- a/controllers/servicediscovery/servicediscovery_suite_test.go +++ b/controllers/servicediscovery/servicediscovery_suite_test.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/controllers/submariner/broker_controller.go b/controllers/submariner/broker_controller.go index acaf48b82..e48fa5635 100644 --- a/controllers/submariner/broker_controller.go +++ b/controllers/submariner/broker_controller.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/controllers/submariner/netwokplugin_syncer.go b/controllers/submariner/netwokplugin_syncer.go index 7646ad38f..43cb59e07 100644 --- a/controllers/submariner/netwokplugin_syncer.go +++ b/controllers/submariner/netwokplugin_syncer.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/controllers/submariner/submariner_controller.go b/controllers/submariner/submariner_controller.go index 4ffa28300..0d51945df 100644 --- a/controllers/submariner/submariner_controller.go +++ b/controllers/submariner/submariner_controller.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/controllers/submariner/submariner_controller_test.go b/controllers/submariner/submariner_controller_test.go index 45eba848d..3d83a476e 100644 --- a/controllers/submariner/submariner_controller_test.go +++ b/controllers/submariner/submariner_controller_test.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/controllers/submariner/submariner_metrics.go b/controllers/submariner/submariner_metrics.go index 1bbed2f8b..ef367442c 100644 --- a/controllers/submariner/submariner_metrics.go +++ b/controllers/submariner/submariner_metrics.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/controllers/submariner/submariner_networkdiscovery.go b/controllers/submariner/submariner_networkdiscovery.go index 24ddbb9b9..bfcb06489 100644 --- a/controllers/submariner/submariner_networkdiscovery.go +++ b/controllers/submariner/submariner_networkdiscovery.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/controllers/submariner/submariner_suite_test.go b/controllers/submariner/submariner_suite_test.go index edeea183d..6ac37907b 100644 --- a/controllers/submariner/submariner_suite_test.go +++ b/controllers/submariner/submariner_suite_test.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/hack/boilerplate.go.txt b/hack/boilerplate.go.txt index 7c7eafac7..5456d0af1 100644 --- a/hack/boilerplate.go.txt +++ b/hack/boilerplate.go.txt @@ -1,6 +1,7 @@ /* +SPDX-License-Identifier: Apache-2.0 -© YEAR Red Hat, Inc. and others. +Copyright Contributors to the Submariner project. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,4 +14,4 @@ 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. -*/ \ No newline at end of file +*/ diff --git a/main.go b/main.go index 49114ab19..0a95c8613 100644 --- a/main.go +++ b/main.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/broker/broker_suite_test.go b/pkg/broker/broker_suite_test.go index 959a6c2c1..aa67c775b 100644 --- a/pkg/broker/broker_suite_test.go +++ b/pkg/broker/broker_suite_test.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/broker/ensure.go b/pkg/broker/ensure.go index d34909266..317294bce 100644 --- a/pkg/broker/ensure.go +++ b/pkg/broker/ensure.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/broker/globalcidr_cm.go b/pkg/broker/globalcidr_cm.go index d96d24a54..fb5a64f08 100644 --- a/pkg/broker/globalcidr_cm.go +++ b/pkg/broker/globalcidr_cm.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/broker/namespace.go b/pkg/broker/namespace.go index 887ba6525..50d417d5e 100644 --- a/pkg/broker/namespace.go +++ b/pkg/broker/namespace.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/broker/rbac.go b/pkg/broker/rbac.go index a982d669a..a2083db4b 100644 --- a/pkg/broker/rbac.go +++ b/pkg/broker/rbac.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/discovery/globalnet/globalnet.go b/pkg/discovery/globalnet/globalnet.go index fabedd2a3..2058652b3 100644 --- a/pkg/discovery/globalnet/globalnet.go +++ b/pkg/discovery/globalnet/globalnet.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/discovery/globalnet/globalnet_suite_test.go b/pkg/discovery/globalnet/globalnet_suite_test.go index b570cb1a3..73a05477b 100644 --- a/pkg/discovery/globalnet/globalnet_suite_test.go +++ b/pkg/discovery/globalnet/globalnet_suite_test.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/discovery/globalnet/globalnet_test.go b/pkg/discovery/globalnet/globalnet_test.go index 6bb506c6e..dea83b6c5 100644 --- a/pkg/discovery/globalnet/globalnet_test.go +++ b/pkg/discovery/globalnet/globalnet_test.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/discovery/network/canal.go b/pkg/discovery/network/canal.go index 087706b18..a8f643fac 100644 --- a/pkg/discovery/network/canal.go +++ b/pkg/discovery/network/canal.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/discovery/network/canal_test.go b/pkg/discovery/network/canal_test.go index ca20968e0..5b839ac20 100644 --- a/pkg/discovery/network/canal_test.go +++ b/pkg/discovery/network/canal_test.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/discovery/network/generic.go b/pkg/discovery/network/generic.go index 806cf3284..e955de2e3 100644 --- a/pkg/discovery/network/generic.go +++ b/pkg/discovery/network/generic.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/discovery/network/generic_test.go b/pkg/discovery/network/generic_test.go index b401275a3..6be69a94d 100644 --- a/pkg/discovery/network/generic_test.go +++ b/pkg/discovery/network/generic_test.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/discovery/network/network.go b/pkg/discovery/network/network.go index cfeafc4af..3a6c3af88 100644 --- a/pkg/discovery/network/network.go +++ b/pkg/discovery/network/network.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/discovery/network/network_suite_test.go b/pkg/discovery/network/network_suite_test.go index d7af38cb5..3ae89e80a 100644 --- a/pkg/discovery/network/network_suite_test.go +++ b/pkg/discovery/network/network_suite_test.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/discovery/network/openshift4.go b/pkg/discovery/network/openshift4.go index 1d05e8ca9..770071892 100644 --- a/pkg/discovery/network/openshift4.go +++ b/pkg/discovery/network/openshift4.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/discovery/network/openshift4_test.go b/pkg/discovery/network/openshift4_test.go index 60a649c2a..858ae972b 100644 --- a/pkg/discovery/network/openshift4_test.go +++ b/pkg/discovery/network/openshift4_test.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/discovery/network/ovnkubernetes.go b/pkg/discovery/network/ovnkubernetes.go index d783c826d..c2d4345c1 100644 --- a/pkg/discovery/network/ovnkubernetes.go +++ b/pkg/discovery/network/ovnkubernetes.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/discovery/network/ovnkubernetes_test.go b/pkg/discovery/network/ovnkubernetes_test.go index 620732b98..118ee0185 100644 --- a/pkg/discovery/network/ovnkubernetes_test.go +++ b/pkg/discovery/network/ovnkubernetes_test.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/discovery/network/pods.go b/pkg/discovery/network/pods.go index 71ab8e25e..bce8e184e 100644 --- a/pkg/discovery/network/pods.go +++ b/pkg/discovery/network/pods.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/discovery/network/pods_test.go b/pkg/discovery/network/pods_test.go index d66a663f4..65ec4cce1 100644 --- a/pkg/discovery/network/pods_test.go +++ b/pkg/discovery/network/pods_test.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/discovery/network/weavenet.go b/pkg/discovery/network/weavenet.go index fea0f1d85..e0e948685 100644 --- a/pkg/discovery/network/weavenet.go +++ b/pkg/discovery/network/weavenet.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/discovery/network/weavenet_test.go b/pkg/discovery/network/weavenet_test.go index 697fb7e02..bd008d7a3 100644 --- a/pkg/discovery/network/weavenet_test.go +++ b/pkg/discovery/network/weavenet_test.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/gateway/crds.go b/pkg/gateway/crds.go index f9985bf5c..47e6ba99b 100644 --- a/pkg/gateway/crds.go +++ b/pkg/gateway/crds.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/images/image_parsing_test.go b/pkg/images/image_parsing_test.go index 49a3e1cf1..518e4718a 100644 --- a/pkg/images/image_parsing_test.go +++ b/pkg/images/image_parsing_test.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/images/images.go b/pkg/images/images.go index 2cbc8cb4c..96e84c08d 100644 --- a/pkg/images/images.go +++ b/pkg/images/images.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/lighthouse/crds.go b/pkg/lighthouse/crds.go index 8c21dcd63..3b9be38d2 100644 --- a/pkg/lighthouse/crds.go +++ b/pkg/lighthouse/crds.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/names/names.go b/pkg/names/names.go index cc47c4147..9f4288cce 100644 --- a/pkg/names/names.go +++ b/pkg/names/names.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/benchmark/latency.go b/pkg/subctl/benchmark/latency.go index 87fb9a8e8..e12c1dacd 100644 --- a/pkg/subctl/benchmark/latency.go +++ b/pkg/subctl/benchmark/latency.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/benchmark/throughput.go b/pkg/subctl/benchmark/throughput.go index adfbebf22..6f2fdfe5a 100644 --- a/pkg/subctl/benchmark/throughput.go +++ b/pkg/subctl/benchmark/throughput.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/benchmark.go b/pkg/subctl/cmd/benchmark.go index 5b861aa76..90ed5ec04 100644 --- a/pkg/subctl/cmd/benchmark.go +++ b/pkg/subctl/cmd/benchmark.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/cloud/cleanup/aws.go b/pkg/subctl/cmd/cloud/cleanup/aws.go index 9684a21ad..1c17cfcd9 100644 --- a/pkg/subctl/cmd/cloud/cleanup/aws.go +++ b/pkg/subctl/cmd/cloud/cleanup/aws.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/cloud/cleanup/cleanup.go b/pkg/subctl/cmd/cloud/cleanup/cleanup.go index 21cf40e50..050c075c9 100644 --- a/pkg/subctl/cmd/cloud/cleanup/cleanup.go +++ b/pkg/subctl/cmd/cloud/cleanup/cleanup.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/cloud/cloud.go b/pkg/subctl/cmd/cloud/cloud.go index a424e541d..929e5e4e3 100644 --- a/pkg/subctl/cmd/cloud/cloud.go +++ b/pkg/subctl/cmd/cloud/cloud.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/cloud/prepare/aws.go b/pkg/subctl/cmd/cloud/prepare/aws.go index 6905bfa39..61b79aca5 100644 --- a/pkg/subctl/cmd/cloud/prepare/aws.go +++ b/pkg/subctl/cmd/cloud/prepare/aws.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/cloud/prepare/prepare.go b/pkg/subctl/cmd/cloud/prepare/prepare.go index 73a0b9739..dd448a3f1 100644 --- a/pkg/subctl/cmd/cloud/prepare/prepare.go +++ b/pkg/subctl/cmd/cloud/prepare/prepare.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/cloud/utils/aws.go b/pkg/subctl/cmd/cloud/utils/aws.go index d05c9413d..167cf45c7 100644 --- a/pkg/subctl/cmd/cloud/utils/aws.go +++ b/pkg/subctl/cmd/cloud/utils/aws.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/cloud/utils/reporter.go b/pkg/subctl/cmd/cloud/utils/reporter.go index b502ce74d..835272ef8 100644 --- a/pkg/subctl/cmd/cloud/utils/reporter.go +++ b/pkg/subctl/cmd/cloud/utils/reporter.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/deploybroker.go b/pkg/subctl/cmd/deploybroker.go index 1f4db9f0b..392b6e069 100644 --- a/pkg/subctl/cmd/deploybroker.go +++ b/pkg/subctl/cmd/deploybroker.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/export.go b/pkg/subctl/cmd/export.go index e80f3901f..e14ade822 100644 --- a/pkg/subctl/cmd/export.go +++ b/pkg/subctl/cmd/export.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/gather.go b/pkg/subctl/cmd/gather.go index 6f3fbb29d..b25e97623 100644 --- a/pkg/subctl/cmd/gather.go +++ b/pkg/subctl/cmd/gather.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/gather/cni.go b/pkg/subctl/cmd/gather/cni.go index e6f695795..debd326a5 100644 --- a/pkg/subctl/cmd/gather/cni.go +++ b/pkg/subctl/cmd/gather/cni.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/gather/connectivity.go b/pkg/subctl/cmd/gather/connectivity.go index e8678c8f4..fc64d4973 100644 --- a/pkg/subctl/cmd/gather/connectivity.go +++ b/pkg/subctl/cmd/gather/connectivity.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/gather/logs.go b/pkg/subctl/cmd/gather/logs.go index 8627e12ff..16b02a7d8 100644 --- a/pkg/subctl/cmd/gather/logs.go +++ b/pkg/subctl/cmd/gather/logs.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/gather/operator.go b/pkg/subctl/cmd/gather/operator.go index 3656cacde..0baa1d94a 100644 --- a/pkg/subctl/cmd/gather/operator.go +++ b/pkg/subctl/cmd/gather/operator.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/gather/resource.go b/pkg/subctl/cmd/gather/resource.go index ae3f09c7f..41e2b81d6 100644 --- a/pkg/subctl/cmd/gather/resource.go +++ b/pkg/subctl/cmd/gather/resource.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/gather/servicediscovery.go b/pkg/subctl/cmd/gather/servicediscovery.go index 2566fd15a..f3f1d9004 100644 --- a/pkg/subctl/cmd/gather/servicediscovery.go +++ b/pkg/subctl/cmd/gather/servicediscovery.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/gather/types.go b/pkg/subctl/cmd/gather/types.go index 563c38edd..510ece9f7 100644 --- a/pkg/subctl/cmd/gather/types.go +++ b/pkg/subctl/cmd/gather/types.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/join.go b/pkg/subctl/cmd/join.go index 5974ba35c..03e9c2d64 100644 --- a/pkg/subctl/cmd/join.go +++ b/pkg/subctl/cmd/join.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/resource.go b/pkg/subctl/cmd/resource.go index 72f5becff..c9e865f31 100644 --- a/pkg/subctl/cmd/resource.go +++ b/pkg/subctl/cmd/resource.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/root.go b/pkg/subctl/cmd/root.go index 40b196695..9e16b17c7 100644 --- a/pkg/subctl/cmd/root.go +++ b/pkg/subctl/cmd/root.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/show.go b/pkg/subctl/cmd/show.go index c2a4ed7cb..413392f8a 100644 --- a/pkg/subctl/cmd/show.go +++ b/pkg/subctl/cmd/show.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/show_all.go b/pkg/subctl/cmd/show_all.go index 36cea6a90..3747e1998 100644 --- a/pkg/subctl/cmd/show_all.go +++ b/pkg/subctl/cmd/show_all.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/show_connections.go b/pkg/subctl/cmd/show_connections.go index a2564869d..89e353bc0 100644 --- a/pkg/subctl/cmd/show_connections.go +++ b/pkg/subctl/cmd/show_connections.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/show_endpoints.go b/pkg/subctl/cmd/show_endpoints.go index 287635710..116b893b1 100644 --- a/pkg/subctl/cmd/show_endpoints.go +++ b/pkg/subctl/cmd/show_endpoints.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/show_gateways.go b/pkg/subctl/cmd/show_gateways.go index c8de9e7ef..c82d92e9a 100644 --- a/pkg/subctl/cmd/show_gateways.go +++ b/pkg/subctl/cmd/show_gateways.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/show_networks.go b/pkg/subctl/cmd/show_networks.go index 1354fcafd..b59b211ed 100644 --- a/pkg/subctl/cmd/show_networks.go +++ b/pkg/subctl/cmd/show_networks.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/show_versions.go b/pkg/subctl/cmd/show_versions.go index 00803eafd..6824e4293 100644 --- a/pkg/subctl/cmd/show_versions.go +++ b/pkg/subctl/cmd/show_versions.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/utils/utils.go b/pkg/subctl/cmd/utils/utils.go index 0970a9427..226d0d8be 100644 --- a/pkg/subctl/cmd/utils/utils.go +++ b/pkg/subctl/cmd/utils/utils.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/validate.go b/pkg/subctl/cmd/validate.go index cab814042..4563f75ec 100644 --- a/pkg/subctl/cmd/validate.go +++ b/pkg/subctl/cmd/validate.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/validate_all.go b/pkg/subctl/cmd/validate_all.go index 881bf281e..d49f4f32f 100644 --- a/pkg/subctl/cmd/validate_all.go +++ b/pkg/subctl/cmd/validate_all.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/validate_cni.go b/pkg/subctl/cmd/validate_cni.go index b8a962cc5..c0629046c 100644 --- a/pkg/subctl/cmd/validate_cni.go +++ b/pkg/subctl/cmd/validate_cni.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/validate_connections.go b/pkg/subctl/cmd/validate_connections.go index 96c885463..b750a7a6d 100644 --- a/pkg/subctl/cmd/validate_connections.go +++ b/pkg/subctl/cmd/validate_connections.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/validate_deployment.go b/pkg/subctl/cmd/validate_deployment.go index c6e359b65..7fa013d74 100644 --- a/pkg/subctl/cmd/validate_deployment.go +++ b/pkg/subctl/cmd/validate_deployment.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/validate_firewall.go b/pkg/subctl/cmd/validate_firewall.go index d0f292ac1..d410d6a55 100644 --- a/pkg/subctl/cmd/validate_firewall.go +++ b/pkg/subctl/cmd/validate_firewall.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/validate_fw_metrics.go b/pkg/subctl/cmd/validate_fw_metrics.go index 14890f9d4..5950051dc 100644 --- a/pkg/subctl/cmd/validate_fw_metrics.go +++ b/pkg/subctl/cmd/validate_fw_metrics.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/validate_fw_vxlan.go b/pkg/subctl/cmd/validate_fw_vxlan.go index 0726fe551..7faf6db33 100644 --- a/pkg/subctl/cmd/validate_fw_vxlan.go +++ b/pkg/subctl/cmd/validate_fw_vxlan.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/validate_k8sversion.go b/pkg/subctl/cmd/validate_k8sversion.go index d2cb995f8..62af68847 100644 --- a/pkg/subctl/cmd/validate_k8sversion.go +++ b/pkg/subctl/cmd/validate_k8sversion.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/validate_kubeproxy.go b/pkg/subctl/cmd/validate_kubeproxy.go index c3b36a2e0..043cd8540 100644 --- a/pkg/subctl/cmd/validate_kubeproxy.go +++ b/pkg/subctl/cmd/validate_kubeproxy.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/validate_tunnel.go b/pkg/subctl/cmd/validate_tunnel.go index 1137d2336..da16521c6 100644 --- a/pkg/subctl/cmd/validate_tunnel.go +++ b/pkg/subctl/cmd/validate_tunnel.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/verify.go b/pkg/subctl/cmd/verify.go index 0f620db11..37efe25d9 100644 --- a/pkg/subctl/cmd/verify.go +++ b/pkg/subctl/cmd/verify.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/cmd/version/version.go b/pkg/subctl/cmd/version/version.go index 725687b79..d76a6fe55 100644 --- a/pkg/subctl/cmd/version/version.go +++ b/pkg/subctl/cmd/version/version.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/components/consts.go b/pkg/subctl/components/consts.go index 2d42fb439..cbd9d711b 100644 --- a/pkg/subctl/components/consts.go +++ b/pkg/subctl/components/consts.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/datafile/backup.go b/pkg/subctl/datafile/backup.go index ff9ee0a27..3d74b7914 100644 --- a/pkg/subctl/datafile/backup.go +++ b/pkg/subctl/datafile/backup.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/datafile/datafile.go b/pkg/subctl/datafile/datafile.go index bbbb4c53d..02012bb1e 100644 --- a/pkg/subctl/datafile/datafile.go +++ b/pkg/subctl/datafile/datafile.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/datafile/datafile_test.go b/pkg/subctl/datafile/datafile_test.go index b7b2f8cf4..da332115b 100644 --- a/pkg/subctl/datafile/datafile_test.go +++ b/pkg/subctl/datafile/datafile_test.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/datafile/ipsec_psk.go b/pkg/subctl/datafile/ipsec_psk.go index cfa097b37..8fc34f8fc 100644 --- a/pkg/subctl/datafile/ipsec_psk.go +++ b/pkg/subctl/datafile/ipsec_psk.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/datafile/ipsec_psk_test.go b/pkg/subctl/datafile/ipsec_psk_test.go index 0649b41a6..4eb125c5f 100644 --- a/pkg/subctl/datafile/ipsec_psk_test.go +++ b/pkg/subctl/datafile/ipsec_psk_test.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/main.go b/pkg/subctl/main.go index 615e35aec..ab9ebb307 100644 --- a/pkg/subctl/main.go +++ b/pkg/subctl/main.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/operator/brokercr/ensure.go b/pkg/subctl/operator/brokercr/ensure.go index cb7ef1743..cc9f1405a 100644 --- a/pkg/subctl/operator/brokercr/ensure.go +++ b/pkg/subctl/operator/brokercr/ensure.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/operator/common/deployments/utils.go b/pkg/subctl/operator/common/deployments/utils.go index de3d335af..74448e969 100644 --- a/pkg/subctl/operator/common/deployments/utils.go +++ b/pkg/subctl/operator/common/deployments/utils.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/operator/common/embeddedyamls/generate.go b/pkg/subctl/operator/common/embeddedyamls/generate.go index 5eb01608e..1b03a57cb 100644 --- a/pkg/subctl/operator/common/embeddedyamls/generate.go +++ b/pkg/subctl/operator/common/embeddedyamls/generate.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/operator/common/embeddedyamls/generators/yamls2go.go b/pkg/subctl/operator/common/embeddedyamls/generators/yamls2go.go index 9a3713682..a7ad6275c 100644 --- a/pkg/subctl/operator/common/embeddedyamls/generators/yamls2go.go +++ b/pkg/subctl/operator/common/embeddedyamls/generators/yamls2go.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -80,8 +82,29 @@ func main() { out, err := os.Create(goDirectory + string(os.PathSeparator) + "yamls.go") panicOnErr(err) - _, err = out.WriteString("// This file is auto-generated by yamls2go.go\n" + - "package embeddedyamls\n\nconst (\n") + _, err = out.WriteString(`/* +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. + +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. +*/ + +// This file is auto-generated by yamls2go.go +package embeddedyamls + +const ( +`) panicOnErr(err) // Raw string literals can’t contain backticks (which enclose the literals) diff --git a/pkg/subctl/operator/common/embeddedyamls/unmarshal.go b/pkg/subctl/operator/common/embeddedyamls/unmarshal.go index 406ae44d7..eb7e08e80 100644 --- a/pkg/subctl/operator/common/embeddedyamls/unmarshal.go +++ b/pkg/subctl/operator/common/embeddedyamls/unmarshal.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/operator/common/namespace/ensure.go b/pkg/subctl/operator/common/namespace/ensure.go index a6e058f79..a20da5068 100644 --- a/pkg/subctl/operator/common/namespace/ensure.go +++ b/pkg/subctl/operator/common/namespace/ensure.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/operator/common/operatorpod/ensure.go b/pkg/subctl/operator/common/operatorpod/ensure.go index d453c9ebd..00cebe1e0 100644 --- a/pkg/subctl/operator/common/operatorpod/ensure.go +++ b/pkg/subctl/operator/common/operatorpod/ensure.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/operator/common/scc/utils.go b/pkg/subctl/operator/common/scc/utils.go index 4085540de..a73cc889c 100644 --- a/pkg/subctl/operator/common/scc/utils.go +++ b/pkg/subctl/operator/common/scc/utils.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/operator/common/serviceaccount/ensure.go b/pkg/subctl/operator/common/serviceaccount/ensure.go index 9dc1d4198..5e8566ae1 100644 --- a/pkg/subctl/operator/common/serviceaccount/ensure.go +++ b/pkg/subctl/operator/common/serviceaccount/ensure.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/operator/lighthouse/crds/ensure.go b/pkg/subctl/operator/lighthouse/crds/ensure.go index b2aa81611..7778f5712 100644 --- a/pkg/subctl/operator/lighthouse/crds/ensure.go +++ b/pkg/subctl/operator/lighthouse/crds/ensure.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/operator/lighthouse/ensure.go b/pkg/subctl/operator/lighthouse/ensure.go index 4d3987eee..4e3fac459 100644 --- a/pkg/subctl/operator/lighthouse/ensure.go +++ b/pkg/subctl/operator/lighthouse/ensure.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/operator/lighthouse/scc/ensure.go b/pkg/subctl/operator/lighthouse/scc/ensure.go index b47043378..efc1ccf1c 100644 --- a/pkg/subctl/operator/lighthouse/scc/ensure.go +++ b/pkg/subctl/operator/lighthouse/scc/ensure.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/operator/lighthouse/serviceaccount/ensure.go b/pkg/subctl/operator/lighthouse/serviceaccount/ensure.go index f34bfd18d..e1a29b9ac 100644 --- a/pkg/subctl/operator/lighthouse/serviceaccount/ensure.go +++ b/pkg/subctl/operator/lighthouse/serviceaccount/ensure.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/operator/servicediscoverycr/ensure.go b/pkg/subctl/operator/servicediscoverycr/ensure.go index 7ad3e5708..7302a39e4 100644 --- a/pkg/subctl/operator/servicediscoverycr/ensure.go +++ b/pkg/subctl/operator/servicediscoverycr/ensure.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/operator/submarinercr/ensure.go b/pkg/subctl/operator/submarinercr/ensure.go index aaeb36779..04a67c3d9 100644 --- a/pkg/subctl/operator/submarinercr/ensure.go +++ b/pkg/subctl/operator/submarinercr/ensure.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/operator/submarinerop/crds/ensure.go b/pkg/subctl/operator/submarinerop/crds/ensure.go index 3c90eb460..37783adde 100644 --- a/pkg/subctl/operator/submarinerop/crds/ensure.go +++ b/pkg/subctl/operator/submarinerop/crds/ensure.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/operator/submarinerop/deployment/ensure.go b/pkg/subctl/operator/submarinerop/deployment/ensure.go index 1034bfe0b..cc1265795 100644 --- a/pkg/subctl/operator/submarinerop/deployment/ensure.go +++ b/pkg/subctl/operator/submarinerop/deployment/ensure.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/operator/submarinerop/ensure.go b/pkg/subctl/operator/submarinerop/ensure.go index 193f2d7d8..30d4150fb 100644 --- a/pkg/subctl/operator/submarinerop/ensure.go +++ b/pkg/subctl/operator/submarinerop/ensure.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/operator/submarinerop/scc/ensure.go b/pkg/subctl/operator/submarinerop/scc/ensure.go index 2e2c6702e..6e57ddc71 100644 --- a/pkg/subctl/operator/submarinerop/scc/ensure.go +++ b/pkg/subctl/operator/submarinerop/scc/ensure.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/operator/submarinerop/serviceaccount/ensure.go b/pkg/subctl/operator/submarinerop/serviceaccount/ensure.go index c05f0af79..014940826 100644 --- a/pkg/subctl/operator/submarinerop/serviceaccount/ensure.go +++ b/pkg/subctl/operator/submarinerop/serviceaccount/ensure.go @@ -1,5 +1,7 @@ /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/resource/exec.go b/pkg/subctl/resource/exec.go index 54318f0c5..4a56864d1 100644 --- a/pkg/subctl/resource/exec.go +++ b/pkg/subctl/resource/exec.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/resource/schedule_pod.go b/pkg/subctl/resource/schedule_pod.go index 2ae031b27..e14faeafc 100644 --- a/pkg/subctl/resource/schedule_pod.go +++ b/pkg/subctl/resource/schedule_pod.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/resource/util.go b/pkg/subctl/resource/util.go index 52327011b..ca6ce2e05 100644 --- a/pkg/subctl/resource/util.go +++ b/pkg/subctl/resource/util.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/subctl/table/table.go b/pkg/subctl/table/table.go index 362566fe1..5fc901cda 100644 --- a/pkg/subctl/table/table.go +++ b/pkg/subctl/table/table.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/utils/crds/crdutils.go b/pkg/utils/crds/crdutils.go index cae79cf74..0f334f94c 100644 --- a/pkg/utils/crds/crdutils.go +++ b/pkg/utils/crds/crdutils.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/utils/createorupdate.go b/pkg/utils/createorupdate.go index 8d338bd48..5a324964a 100644 --- a/pkg/utils/createorupdate.go +++ b/pkg/utils/createorupdate.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/utils/createorupdate_test.go b/pkg/utils/createorupdate_test.go index 7777730c0..257caa73f 100644 --- a/pkg/utils/createorupdate_test.go +++ b/pkg/utils/createorupdate_test.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/version/version.go b/pkg/version/version.go index e43c2924b..5b5ee78e6 100644 --- a/pkg/version/version.go +++ b/pkg/version/version.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/pkg/versions/versions.go b/pkg/versions/versions.go index e330e9849..b192b01d8 100644 --- a/pkg/versions/versions.go +++ b/pkg/versions/versions.go @@ -1,5 +1,7 @@ /* -© 2021 Red Hat, Inc. and others +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. 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/tools.go b/tools.go index b896573eb..d7099817b 100644 --- a/tools.go +++ b/tools.go @@ -1,7 +1,9 @@ // +build tools /* -© 2019 Red Hat, Inc. and others. +SPDX-License-Identifier: Apache-2.0 + +Copyright Contributors to the Submariner project. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.