Skip to content

Commit

Permalink
Update the copyright statements to match CNCF recs
Browse files Browse the repository at this point in the history
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 (which is expected to
fail currently).

The change in copyright statement is only made to Red Hat statements.
Change automated with (split over multiple lines for the commit
message):

find . -name \*.go -exec sed -i -E \
's/© .... Red Hat, Inc. and others.?/
SPDX-License-Identifier: Apache-2.0\n\n
Copyright Contributors to the Submariner project./' {} +

Fixes: #1322
Signed-off-by: Stephen Kitt <skitt@redhat.com>
  • Loading branch information
skitt committed May 19, 2021
1 parent 7169840 commit 5440ec2
Show file tree
Hide file tree
Showing 162 changed files with 502 additions and 177 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ jobs:
- name: Check out the repository
uses: actions/checkout@v2

- name: Delete generated files
run: rm -rf pkg/client pkg/apis/submariner.io/v1/zz_generated.deepcopy.go pkg/natdiscovery/proto/natdiscovery.pb.go

- name: Check License Headers
uses: nilp0inter/search-legal-headers@v0.1.0

Expand Down
5 changes: 3 additions & 2 deletions .legal.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"**/*.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"
"**/*.go": "SPDX-License-Identifier: Apache-2.0\n\nCopyright Contributors to the Submariner project.\n\nLicensed 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",
"**/*.proto": "SPDX-License-Identifier: Apache-2.0\n\nCopyright Contributors to the Submariner project.\n\nLicensed 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"
}
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion pkg/apis/submariner.io/v1/doc.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion pkg/apis/submariner.io/v1/endpoint.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion pkg/apis/submariner.io/v1/register.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion pkg/apis/submariner.io/v1/string.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion pkg/apis/submariner.io/v1/string_test.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion pkg/apis/submariner.io/v1/types.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion pkg/cable/cleanup/default_cleanup.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion pkg/cable/cleanup/route_cleanup_handler.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion pkg/cable/cleanup/xfrm_cleanup_handler.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion pkg/cable/driver.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion pkg/cable/fake/driver.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion pkg/cable/libreswan/libreswan.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion pkg/cable/libreswan/libreswan_suite_test.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion pkg/cable/libreswan/libreswan_test.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion pkg/cable/libreswan/preferred_server.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion pkg/cable/metrics.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion pkg/cable/wireguard/driver.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion pkg/cable/wireguard/getconnections.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion pkg/cableengine/cableengine.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion pkg/cableengine/cableengine_test.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion pkg/cableengine/fake/cableengine.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion pkg/cableengine/healthchecker/fake/pinger.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion pkg/cableengine/healthchecker/healthchecker.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion pkg/cableengine/healthchecker/healthchecker_suite_test.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion pkg/cableengine/healthchecker/healthchecker_test.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion pkg/cableengine/healthchecker/pinger.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion pkg/cableengine/healthchecker/pinger_test.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion pkg/cableengine/healthchecker/statistics.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion pkg/cableengine/healthchecker/statistics_test.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion pkg/cableengine/syncer/syncer.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion pkg/cableengine/syncer/syncer_test.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion pkg/cidr/iputil.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion pkg/controllers/datastoresyncer/datastoresyncer.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion pkg/controllers/datastoresyncer/node_handler.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Loading

0 comments on commit 5440ec2

Please sign in to comment.