diff --git a/.dockerignore b/.dockerignore index 243f81a508..6c32b59d59 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # More info: https://docs.docker.com/engine/reference/builder/#dockerignore-file # Ignore all files which are not go type !**/*.go diff --git a/.github/workflows/sanity.yml b/.github/workflows/sanity.yml index 91ad725372..19681e0d51 100644 --- a/.github/workflows/sanity.yml +++ b/.github/workflows/sanity.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + --- # yamllint disable rule:line-length diff --git a/.gitignore b/.gitignore index f1274dbab9..79fee131e8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 # Binaries for programs and plugins *.exe diff --git a/.golangci.yaml b/.golangci.yaml index 0361a4afcc..5d8fbe88e1 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + --- # yamllint disable rule:line-length # Ref template: https://github.com/golangci/golangci-lint/blob/v1.37.1/.golangci.example.yml @@ -26,19 +29,8 @@ linters-settings: min-complexity: 15 goheader: template: | - Copyright 2021 The RamenDR authors. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. + SPDX-FileCopyrightText: The RamenDR authors + SPDX-License-Identifier: Apache-2.0 misspell: locale: US wsl: diff --git a/.reuse/dep5 b/.reuse/dep5 new file mode 100644 index 0000000000..fd4965b80c --- /dev/null +++ b/.reuse/dep5 @@ -0,0 +1,10 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Ramen +Upstream-Contact: The RamenDR authors +Source: https://github.com/RamenDR/ramen + +# Sample paragraph, commented out: +# +# Files: src/* +# Copyright: $YEAR $NAME <$CONTACT> +# License: ... diff --git a/.reuse/templates/ramen.jinja2 b/.reuse/templates/ramen.jinja2 new file mode 100644 index 0000000000..30c7d8d49e --- /dev/null +++ b/.reuse/templates/ramen.jinja2 @@ -0,0 +1,6 @@ +{% for copyright_line in copyright_lines %} +{{ copyright_line }} +{% endfor %} +{% for expression in spdx_expressions %} +SPDX-License-Identifier: {{ expression }} +{% endfor %} diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 160e3b5a05..d58a93cc44 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,9 +1,14 @@ + + # How to Contribute -The Ramen project in under [Apache 2.0 license](LICENSE). We accept -contributions via GitHub pull requests. This document outlines some of the -conventions related to development workflow to make it easier to get your -contribution accepted. +The Ramen project in under [Apache 2.0 license](LICENSES/Apache-2.0.txt). +We accept contributions via GitHub pull requests. This document outlines +some of the conventions related to development workflow to make it +easier to get your contribution accepted. ## Certificate of Origin diff --git a/DCO b/DCO index 716561d5d2..b5a61ac94b 100644 --- a/DCO +++ b/DCO @@ -1,3 +1,6 @@ +SPDX-FileCopyrightText: The RamenDR authors +SPDX-License-Identifier: Apache-2.0 + Developer Certificate of Origin Version 1.1 diff --git a/Dockerfile b/Dockerfile index 91321c06ac..088d65c0c1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # Build the manager binary FROM golang:1.18 as builder diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 8e8487438a..0000000000 --- a/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2016 The Rook Authors. All rights reserved. - - 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. diff --git a/LICENSE b/LICENSE new file mode 120000 index 0000000000..5431dc12a1 --- /dev/null +++ b/LICENSE @@ -0,0 +1 @@ +LICENSES/Apache-2.0.txt \ No newline at end of file diff --git a/LICENSES/Apache-2.0.txt b/LICENSES/Apache-2.0.txt new file mode 100644 index 0000000000..137069b823 --- /dev/null +++ b/LICENSES/Apache-2.0.txt @@ -0,0 +1,73 @@ +Apache License +Version 2.0, January 2004 +http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + +"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. + +"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. + +"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. + +"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. + +"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. + +"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. + +"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). + +"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. + +"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." + +"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: + + (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. + + You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + +To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +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. diff --git a/Makefile b/Makefile index a469864d2a..6140a20994 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # Enable GOPROXY. This speeds up a lot of vendoring operations. export GOPROXY=https://proxy.golang.org diff --git a/PROJECT b/PROJECT index aa93413609..244ca9d70e 100644 --- a/PROJECT +++ b/PROJECT @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + domain: openshift.io layout: - go.kubebuilder.io/v3 diff --git a/README.md b/README.md index 7f55428559..1cdcad104c 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,8 @@ + + # Ramen Ramen is an [open-cluster-management (OCM)](https://open-cluster-management.io/concepts/architecture/) @@ -52,4 +57,4 @@ are currently **alpha**. There are no releases as yet. ## Licensing -Ramen is under the [Apache 2.0 license.](LICENSE) +Ramen is under the [Apache 2.0 license.](LICENSES/Apache-2.0.txt) diff --git a/api/v1alpha1/drcluster_types.go b/api/v1alpha1/drcluster_types.go index 566b009b8c..ac05c4a8d8 100644 --- a/api/v1alpha1/drcluster_types.go +++ b/api/v1alpha1/drcluster_types.go @@ -1,18 +1,6 @@ -/* -Copyright 2022 The RamenDR authors. - -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. -*/ +// Copyright 2022 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package v1alpha1 diff --git a/api/v1alpha1/drplacementcontrol_types.go b/api/v1alpha1/drplacementcontrol_types.go index 47e5d3facb..7c5b2a6eb3 100644 --- a/api/v1alpha1/drplacementcontrol_types.go +++ b/api/v1alpha1/drplacementcontrol_types.go @@ -1,18 +1,6 @@ -/* -Copyright 2021 The RamenDR authors. - -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. -*/ +// Copyright 2021 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package v1alpha1 diff --git a/api/v1alpha1/drpolicy_types.go b/api/v1alpha1/drpolicy_types.go index 7d7ab203e9..c784b5ec89 100644 --- a/api/v1alpha1/drpolicy_types.go +++ b/api/v1alpha1/drpolicy_types.go @@ -1,18 +1,6 @@ -/* -Copyright 2021 The RamenDR authors. - -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. -*/ +// Copyright 2021 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package v1alpha1 diff --git a/api/v1alpha1/groupversion_info.go b/api/v1alpha1/groupversion_info.go index 07e7087c1e..25baf62bde 100644 --- a/api/v1alpha1/groupversion_info.go +++ b/api/v1alpha1/groupversion_info.go @@ -1,18 +1,6 @@ -/* -Copyright 2021 The RamenDR authors. - -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. -*/ +// Copyright 2021 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 // Package v1alpha1 contains API Schema definitions for the ramendr v1alpha1 API group // +kubebuilder:object:generate=true diff --git a/api/v1alpha1/protectedvolumereplicationgrouplist_types.go b/api/v1alpha1/protectedvolumereplicationgrouplist_types.go index b125fa28f8..5d19d6fb43 100644 --- a/api/v1alpha1/protectedvolumereplicationgrouplist_types.go +++ b/api/v1alpha1/protectedvolumereplicationgrouplist_types.go @@ -1,18 +1,6 @@ -/* -Copyright 2022 The RamenDR authors. - -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. -*/ +// Copyright 2022 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package v1alpha1 diff --git a/api/v1alpha1/ramenconfig_types.go b/api/v1alpha1/ramenconfig_types.go index ebc587711c..eb6b1fe156 100644 --- a/api/v1alpha1/ramenconfig_types.go +++ b/api/v1alpha1/ramenconfig_types.go @@ -1,18 +1,6 @@ -/* -Copyright 2021 The RamenDR authors. - -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. -*/ +// Copyright 2021 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package v1alpha1 diff --git a/api/v1alpha1/volumereplicationgroup_types.go b/api/v1alpha1/volumereplicationgroup_types.go index 2c835f0b17..0b501dfe6b 100644 --- a/api/v1alpha1/volumereplicationgroup_types.go +++ b/api/v1alpha1/volumereplicationgroup_types.go @@ -1,18 +1,6 @@ -/* -Copyright 2021 The RamenDR authors. - -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. -*/ +// Copyright 2021 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package v1alpha1 diff --git a/api/v1alpha1/zz_generated.deepcopy.go b/api/v1alpha1/zz_generated.deepcopy.go index e03a662cda..c962347648 100644 --- a/api/v1alpha1/zz_generated.deepcopy.go +++ b/api/v1alpha1/zz_generated.deepcopy.go @@ -1,21 +1,9 @@ //go:build !ignore_autogenerated // +build !ignore_autogenerated -/* -Copyright 2022 The RamenDR authors. - -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. -*/ +// Copyright 2022 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 // Code generated by controller-gen. DO NOT EDIT. diff --git a/config/certmanager/certificate.yaml b/config/certmanager/certificate.yaml index 52d866183c..141594e78a 100644 --- a/config/certmanager/certificate.yaml +++ b/config/certmanager/certificate.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # The following manifests contain a self-signed issuer CR and a certificate CR. # More document can be found at https://docs.cert-manager.io # WARNING: Targets CertManager v1.0. Check https://cert-manager.io/docs/installation/upgrading/ for breaking changes. diff --git a/config/certmanager/kustomization.yaml b/config/certmanager/kustomization.yaml index bebea5a595..9e9a4b1c3d 100644 --- a/config/certmanager/kustomization.yaml +++ b/config/certmanager/kustomization.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + resources: - certificate.yaml diff --git a/config/certmanager/kustomizeconfig.yaml b/config/certmanager/kustomizeconfig.yaml index 90d7c313ca..ab7bbb4380 100644 --- a/config/certmanager/kustomizeconfig.yaml +++ b/config/certmanager/kustomizeconfig.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # This configuration is for teaching kustomize how to update name ref and var substitution nameReference: - kind: Issuer diff --git a/config/crd/bases/ramendr.openshift.io_drclusters.yaml b/config/crd/bases/ramendr.openshift.io_drclusters.yaml index 5ea64bda8e..8547fc9105 100644 --- a/config/crd/bases/ramendr.openshift.io_drclusters.yaml +++ b/config/crd/bases/ramendr.openshift.io_drclusters.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/config/crd/bases/ramendr.openshift.io_drplacementcontrols.yaml b/config/crd/bases/ramendr.openshift.io_drplacementcontrols.yaml index da7eb49d7b..574a5d8082 100644 --- a/config/crd/bases/ramendr.openshift.io_drplacementcontrols.yaml +++ b/config/crd/bases/ramendr.openshift.io_drplacementcontrols.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/config/crd/bases/ramendr.openshift.io_drpolicies.yaml b/config/crd/bases/ramendr.openshift.io_drpolicies.yaml index ec65441919..d959a982e1 100644 --- a/config/crd/bases/ramendr.openshift.io_drpolicies.yaml +++ b/config/crd/bases/ramendr.openshift.io_drpolicies.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/config/crd/bases/ramendr.openshift.io_protectedvolumereplicationgrouplists.yaml b/config/crd/bases/ramendr.openshift.io_protectedvolumereplicationgrouplists.yaml index c185ad4460..3392ec5c53 100644 --- a/config/crd/bases/ramendr.openshift.io_protectedvolumereplicationgrouplists.yaml +++ b/config/crd/bases/ramendr.openshift.io_protectedvolumereplicationgrouplists.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/config/crd/bases/ramendr.openshift.io_volumereplicationgroups.yaml b/config/crd/bases/ramendr.openshift.io_volumereplicationgroups.yaml index 1a7febb24d..5524fde5d3 100644 --- a/config/crd/bases/ramendr.openshift.io_volumereplicationgroups.yaml +++ b/config/crd/bases/ramendr.openshift.io_volumereplicationgroups.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/config/crd/kustomization.yaml b/config/crd/kustomization.yaml index b146ba8f32..b83157480d 100644 --- a/config/crd/kustomization.yaml +++ b/config/crd/kustomization.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # This kustomization.yaml is not intended to be run by itself, # since it depends on service name and namespace that are out of this kustomize package. # It should be run by config/default diff --git a/config/crd/kustomizeconfig.yaml b/config/crd/kustomizeconfig.yaml index ec5c150a9d..0af20c1bd5 100644 --- a/config/crd/kustomizeconfig.yaml +++ b/config/crd/kustomizeconfig.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # This file is for teaching kustomize how to substitute name and namespace reference in CRD nameReference: - kind: Service diff --git a/config/crd/patches/cainjection_in_drclusters.yaml b/config/crd/patches/cainjection_in_drclusters.yaml index 3733ad5175..9f9d7881ab 100644 --- a/config/crd/patches/cainjection_in_drclusters.yaml +++ b/config/crd/patches/cainjection_in_drclusters.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # The following patch adds a directive for certmanager to inject CA into the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/config/crd/patches/cainjection_in_drplacementcontrols.yaml b/config/crd/patches/cainjection_in_drplacementcontrols.yaml index 3d22385b25..9b5b2ca5d8 100644 --- a/config/crd/patches/cainjection_in_drplacementcontrols.yaml +++ b/config/crd/patches/cainjection_in_drplacementcontrols.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # The following patch adds a directive for certmanager to inject CA into the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/config/crd/patches/cainjection_in_drpolicies.yaml b/config/crd/patches/cainjection_in_drpolicies.yaml index bf3825766f..8c27560adc 100644 --- a/config/crd/patches/cainjection_in_drpolicies.yaml +++ b/config/crd/patches/cainjection_in_drpolicies.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # The following patch adds a directive for certmanager to inject CA into the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/config/crd/patches/cainjection_in_protectedvolumereplicationgrouplists.yaml b/config/crd/patches/cainjection_in_protectedvolumereplicationgrouplists.yaml index f685e59c2b..9770b0c92b 100644 --- a/config/crd/patches/cainjection_in_protectedvolumereplicationgrouplists.yaml +++ b/config/crd/patches/cainjection_in_protectedvolumereplicationgrouplists.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # The following patch adds a directive for certmanager to inject CA into the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/config/crd/patches/cainjection_in_volumereplicationgroups.yaml b/config/crd/patches/cainjection_in_volumereplicationgroups.yaml index ca0adc7fe4..51c6955876 100644 --- a/config/crd/patches/cainjection_in_volumereplicationgroups.yaml +++ b/config/crd/patches/cainjection_in_volumereplicationgroups.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # The following patch adds a directive for certmanager to inject CA into the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/config/crd/patches/webhook_in_drclusters.yaml b/config/crd/patches/webhook_in_drclusters.yaml index 35d38e47ca..16d05b6094 100644 --- a/config/crd/patches/webhook_in_drclusters.yaml +++ b/config/crd/patches/webhook_in_drclusters.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # The following patch enables a conversion webhook for the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/config/crd/patches/webhook_in_drplacementcontrols.yaml b/config/crd/patches/webhook_in_drplacementcontrols.yaml index e32a46d4b4..9e50550bcc 100644 --- a/config/crd/patches/webhook_in_drplacementcontrols.yaml +++ b/config/crd/patches/webhook_in_drplacementcontrols.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # The following patch enables a conversion webhook for the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/config/crd/patches/webhook_in_drpolicies.yaml b/config/crd/patches/webhook_in_drpolicies.yaml index 1d92161508..c3fe11027f 100644 --- a/config/crd/patches/webhook_in_drpolicies.yaml +++ b/config/crd/patches/webhook_in_drpolicies.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # The following patch enables a conversion webhook for the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/config/crd/patches/webhook_in_protectedvolumereplicationgrouplists.yaml b/config/crd/patches/webhook_in_protectedvolumereplicationgrouplists.yaml index 2509cc8dd8..54b5036a90 100644 --- a/config/crd/patches/webhook_in_protectedvolumereplicationgrouplists.yaml +++ b/config/crd/patches/webhook_in_protectedvolumereplicationgrouplists.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # The following patch enables a conversion webhook for the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/config/crd/patches/webhook_in_volumereplicationgroups.yaml b/config/crd/patches/webhook_in_volumereplicationgroups.yaml index e018614dd5..33f137d691 100644 --- a/config/crd/patches/webhook_in_volumereplicationgroups.yaml +++ b/config/crd/patches/webhook_in_volumereplicationgroups.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # The following patch enables a conversion webhook for the CRD apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/config/default/manager_auth_proxy_patch.yaml b/config/default/manager_auth_proxy_patch.yaml index 726e0aa20b..35870f6cf8 100644 --- a/config/default/manager_auth_proxy_patch.yaml +++ b/config/default/manager_auth_proxy_patch.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # This patch inject a sidecar container which is a HTTP proxy for the # controller manager, it performs RBAC authorization against the Kubernetes API using SubjectAccessReviews. apiVersion: apps/v1 diff --git a/config/default/manager_config_patch.yaml b/config/default/manager_config_patch.yaml index 5890c429d2..6d08c00d77 100644 --- a/config/default/manager_config_patch.yaml +++ b/config/default/manager_config_patch.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + apiVersion: apps/v1 kind: Deployment metadata: diff --git a/config/dr-cluster/crd/kustomization.yaml b/config/dr-cluster/crd/kustomization.yaml index 2214d30ea9..f402028b72 100644 --- a/config/dr-cluster/crd/kustomization.yaml +++ b/config/dr-cluster/crd/kustomization.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # This kustomization.yaml is not intended to be run by itself, # since it depends on service name and namespace that are out of this kustomize package. # It should be run by config/default diff --git a/config/dr-cluster/default/kustomization.yaml b/config/dr-cluster/default/kustomization.yaml index 3578e5fde1..a1ef39acee 100644 --- a/config/dr-cluster/default/kustomization.yaml +++ b/config/dr-cluster/default/kustomization.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # Adds namespace to all resources. namespace: ramen-system diff --git a/config/dr-cluster/manager/kustomization.yaml b/config/dr-cluster/manager/kustomization.yaml index 3517818756..25342f90a0 100644 --- a/config/dr-cluster/manager/kustomization.yaml +++ b/config/dr-cluster/manager/kustomization.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + resources: - ../../manager/manager.yaml diff --git a/config/dr-cluster/manager/ramen_manager_config.yaml b/config/dr-cluster/manager/ramen_manager_config.yaml index c770e42052..ce58547353 100644 --- a/config/dr-cluster/manager/ramen_manager_config.yaml +++ b/config/dr-cluster/manager/ramen_manager_config.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + apiVersion: ramendr.openshift.io/v1alpha1 kind: RamenConfig health: diff --git a/config/dr-cluster/manifests/bases/ramen_dr_cluster.clusterserviceversion.yaml b/config/dr-cluster/manifests/bases/ramen_dr_cluster.clusterserviceversion.yaml index 51a31d6611..8b7bda4c69 100644 --- a/config/dr-cluster/manifests/bases/ramen_dr_cluster.clusterserviceversion.yaml +++ b/config/dr-cluster/manifests/bases/ramen_dr_cluster.clusterserviceversion.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + apiVersion: operators.coreos.com/v1alpha1 kind: ClusterServiceVersion metadata: diff --git a/config/dr-cluster/manifests/ramen/kustomization.yaml b/config/dr-cluster/manifests/ramen/kustomization.yaml index 34506e9e96..c16cffa8fe 100644 --- a/config/dr-cluster/manifests/ramen/kustomization.yaml +++ b/config/dr-cluster/manifests/ramen/kustomization.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # These resources constitute the fully configured set of manifests # used to generate the 'manifests/' directory in a bundle. resources: diff --git a/config/dr-cluster/rbac/kustomization.yaml b/config/dr-cluster/rbac/kustomization.yaml index 24b6c05cce..303988b253 100644 --- a/config/dr-cluster/rbac/kustomization.yaml +++ b/config/dr-cluster/rbac/kustomization.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + resources: # All RBAC will be applied under this service account in # the deployment namespace. You may comment out this resource diff --git a/config/dr-cluster/rbac/role.yaml b/config/dr-cluster/rbac/role.yaml index 1132c4f6cf..8239a47db3 100644 --- a/config/dr-cluster/rbac/role.yaml +++ b/config/dr-cluster/rbac/role.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/config/dr-cluster/rbac/role_binding.yaml b/config/dr-cluster/rbac/role_binding.yaml index e26c75fedb..6d03c03498 100644 --- a/config/dr-cluster/rbac/role_binding.yaml +++ b/config/dr-cluster/rbac/role_binding.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: diff --git a/config/dr-cluster/samples/kustomization.yaml b/config/dr-cluster/samples/kustomization.yaml index 239757c2cb..47f7e8a520 100644 --- a/config/dr-cluster/samples/kustomization.yaml +++ b/config/dr-cluster/samples/kustomization.yaml @@ -1,2 +1,5 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + resources: - ../../samples/ramendr_v1alpha1_volumereplicationgroup.yaml diff --git a/config/hub/crd/kustomization.yaml b/config/hub/crd/kustomization.yaml index f5fa923648..3b3a986e75 100644 --- a/config/hub/crd/kustomization.yaml +++ b/config/hub/crd/kustomization.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # This kustomization.yaml is not intended to be run by itself, # since it depends on service name and namespace that are out of this kustomize package. # It should be run by config/default diff --git a/config/hub/default/kustomization.yaml b/config/hub/default/kustomization.yaml index b7c3e9f67c..a5e8dff142 100644 --- a/config/hub/default/kustomization.yaml +++ b/config/hub/default/kustomization.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # Adds namespace to all resources. namespace: ramen-system diff --git a/config/hub/manager/kustomization.yaml b/config/hub/manager/kustomization.yaml index 3517818756..25342f90a0 100644 --- a/config/hub/manager/kustomization.yaml +++ b/config/hub/manager/kustomization.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + resources: - ../../manager/manager.yaml diff --git a/config/hub/manager/ramen_manager_config.yaml b/config/hub/manager/ramen_manager_config.yaml index 29cb25b89a..8c19102419 100644 --- a/config/hub/manager/ramen_manager_config.yaml +++ b/config/hub/manager/ramen_manager_config.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + apiVersion: ramendr.openshift.io/v1alpha1 kind: RamenConfig health: diff --git a/config/hub/manifests/bases/ramen_hub.clusterserviceversion.yaml b/config/hub/manifests/bases/ramen_hub.clusterserviceversion.yaml index 4a1356f068..0500561361 100644 --- a/config/hub/manifests/bases/ramen_hub.clusterserviceversion.yaml +++ b/config/hub/manifests/bases/ramen_hub.clusterserviceversion.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + apiVersion: operators.coreos.com/v1alpha1 kind: ClusterServiceVersion metadata: diff --git a/config/hub/manifests/ramen/kustomization.yaml b/config/hub/manifests/ramen/kustomization.yaml index 2bfeb9a3e7..0c4cc3ab8c 100644 --- a/config/hub/manifests/ramen/kustomization.yaml +++ b/config/hub/manifests/ramen/kustomization.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # These resources constitute the fully configured set of manifests # used to generate the 'manifests/' directory in a bundle. resources: diff --git a/config/hub/manifests/ramen/ramen_manager_config_append.yaml b/config/hub/manifests/ramen/ramen_manager_config_append.yaml index b782cfa760..aa80d9ec5a 100644 --- a/config/hub/manifests/ramen/ramen_manager_config_append.yaml +++ b/config/hub/manifests/ramen/ramen_manager_config_append.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + drClusterOperator: deploymentAutomationEnabled: true s3SecretDistributionEnabled: true diff --git a/config/hub/rbac/kustomization.yaml b/config/hub/rbac/kustomization.yaml index 24b6c05cce..303988b253 100644 --- a/config/hub/rbac/kustomization.yaml +++ b/config/hub/rbac/kustomization.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + resources: # All RBAC will be applied under this service account in # the deployment namespace. You may comment out this resource diff --git a/config/hub/rbac/role.yaml b/config/hub/rbac/role.yaml index 4bccda5b60..a91cb7af11 100644 --- a/config/hub/rbac/role.yaml +++ b/config/hub/rbac/role.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/config/hub/rbac/role_binding.yaml b/config/hub/rbac/role_binding.yaml index e26c75fedb..6d03c03498 100644 --- a/config/hub/rbac/role_binding.yaml +++ b/config/hub/rbac/role_binding.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: diff --git a/config/hub/samples/kustomization.yaml b/config/hub/samples/kustomization.yaml index e3e612afae..ce0c5493d8 100644 --- a/config/hub/samples/kustomization.yaml +++ b/config/hub/samples/kustomization.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + resources: - ../../samples/ramendr_v1alpha1_drpolicy.yaml - ../../samples/ramendr_v1alpha1_drplacementcontrol.yaml diff --git a/config/manager/manager.yaml b/config/manager/manager.yaml index af4c9f1405..221ce548f5 100644 --- a/config/manager/manager.yaml +++ b/config/manager/manager.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + apiVersion: v1 kind: Namespace metadata: diff --git a/config/olm-install/base/catalog-source-kustomizeconfig.yaml b/config/olm-install/base/catalog-source-kustomizeconfig.yaml index 55f1b233e3..62ad5bcde6 100644 --- a/config/olm-install/base/catalog-source-kustomizeconfig.yaml +++ b/config/olm-install/base/catalog-source-kustomizeconfig.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + --- images: - path: spec/image diff --git a/config/olm-install/base/kustomization.yaml b/config/olm-install/base/kustomization.yaml index cb662662f0..389d2d705d 100644 --- a/config/olm-install/base/kustomization.yaml +++ b/config/olm-install/base/kustomization.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization diff --git a/config/olm-install/base/ramen-catalog.yaml b/config/olm-install/base/ramen-catalog.yaml index 35191a513c..05ee7e254e 100644 --- a/config/olm-install/base/ramen-catalog.yaml +++ b/config/olm-install/base/ramen-catalog.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + --- apiVersion: operators.coreos.com/v1alpha1 kind: CatalogSource diff --git a/config/olm-install/base/ramen-operator-group.yaml b/config/olm-install/base/ramen-operator-group.yaml index 217be191d4..3f17169da4 100644 --- a/config/olm-install/base/ramen-operator-group.yaml +++ b/config/olm-install/base/ramen-operator-group.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + --- apiVersion: v1 kind: Namespace diff --git a/config/olm-install/dr-cluster/kustomization.yaml b/config/olm-install/dr-cluster/kustomization.yaml index 414af14771..6484a7a429 100644 --- a/config/olm-install/dr-cluster/kustomization.yaml +++ b/config/olm-install/dr-cluster/kustomization.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + --- apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization diff --git a/config/olm-install/dr-cluster/ramen-dr-cluster-subscription.yaml b/config/olm-install/dr-cluster/ramen-dr-cluster-subscription.yaml index 940c31fbeb..29ac7a2861 100644 --- a/config/olm-install/dr-cluster/ramen-dr-cluster-subscription.yaml +++ b/config/olm-install/dr-cluster/ramen-dr-cluster-subscription.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + --- apiVersion: operators.coreos.com/v1alpha1 kind: Subscription diff --git a/config/olm-install/hub/kustomization.yaml b/config/olm-install/hub/kustomization.yaml index 3f3dbcda7c..04fca155af 100644 --- a/config/olm-install/hub/kustomization.yaml +++ b/config/olm-install/hub/kustomization.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + --- apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization diff --git a/config/olm-install/hub/ramen-hub-subscription.yaml b/config/olm-install/hub/ramen-hub-subscription.yaml index 69a588ddda..30ff4ba542 100644 --- a/config/olm-install/hub/ramen-hub-subscription.yaml +++ b/config/olm-install/hub/ramen-hub-subscription.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + --- apiVersion: operators.coreos.com/v1alpha1 kind: Subscription diff --git a/config/prometheus/kustomization.yaml b/config/prometheus/kustomization.yaml index ed137168a1..fae3acef9a 100644 --- a/config/prometheus/kustomization.yaml +++ b/config/prometheus/kustomization.yaml @@ -1,2 +1,5 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + resources: - monitor.yaml diff --git a/config/prometheus/monitor.yaml b/config/prometheus/monitor.yaml index baff28ca09..01f57d1a27 100644 --- a/config/prometheus/monitor.yaml +++ b/config/prometheus/monitor.yaml @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 # Prometheus Monitor Service (Metrics) apiVersion: monitoring.coreos.com/v1 diff --git a/config/rbac/auth_proxy_client_clusterrole.yaml b/config/rbac/auth_proxy_client_clusterrole.yaml index bd4af137a9..eea1ef15cb 100644 --- a/config/rbac/auth_proxy_client_clusterrole.yaml +++ b/config/rbac/auth_proxy_client_clusterrole.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: diff --git a/config/rbac/auth_proxy_role.yaml b/config/rbac/auth_proxy_role.yaml index 618f5e4177..7be56d9634 100644 --- a/config/rbac/auth_proxy_role.yaml +++ b/config/rbac/auth_proxy_role.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: diff --git a/config/rbac/auth_proxy_role_binding.yaml b/config/rbac/auth_proxy_role_binding.yaml index 3963c8246c..e380dab402 100644 --- a/config/rbac/auth_proxy_role_binding.yaml +++ b/config/rbac/auth_proxy_role_binding.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: diff --git a/config/rbac/auth_proxy_service.yaml b/config/rbac/auth_proxy_service.yaml index 3b2f551be3..d80e6dab8e 100644 --- a/config/rbac/auth_proxy_service.yaml +++ b/config/rbac/auth_proxy_service.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + apiVersion: v1 kind: Service metadata: diff --git a/config/rbac/drcluster_editor_role.yaml b/config/rbac/drcluster_editor_role.yaml index af71f20cd2..8a38195254 100644 --- a/config/rbac/drcluster_editor_role.yaml +++ b/config/rbac/drcluster_editor_role.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # permissions for end users to edit drclusters. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/config/rbac/drcluster_viewer_role.yaml b/config/rbac/drcluster_viewer_role.yaml index 1828072a15..db8f0f9667 100644 --- a/config/rbac/drcluster_viewer_role.yaml +++ b/config/rbac/drcluster_viewer_role.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # permissions for end users to view drclusters. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/config/rbac/drplacementcontrol_editor_role.yaml b/config/rbac/drplacementcontrol_editor_role.yaml index b472a7eafd..0529d39971 100644 --- a/config/rbac/drplacementcontrol_editor_role.yaml +++ b/config/rbac/drplacementcontrol_editor_role.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # permissions for end users to edit DRPlacementControls. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/config/rbac/drplacementcontrol_viewer_role.yaml b/config/rbac/drplacementcontrol_viewer_role.yaml index 5800239b7e..01b24c0abd 100644 --- a/config/rbac/drplacementcontrol_viewer_role.yaml +++ b/config/rbac/drplacementcontrol_viewer_role.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # permissions for end users to view DRPlacementControls. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/config/rbac/drpolicy_editor_role.yaml b/config/rbac/drpolicy_editor_role.yaml index c4b69f192e..59c3e59836 100644 --- a/config/rbac/drpolicy_editor_role.yaml +++ b/config/rbac/drpolicy_editor_role.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # permissions for end users to edit drpolicies. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/config/rbac/drpolicy_viewer_role.yaml b/config/rbac/drpolicy_viewer_role.yaml index b7ab68bb7d..85f946b5b1 100644 --- a/config/rbac/drpolicy_viewer_role.yaml +++ b/config/rbac/drpolicy_viewer_role.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # permissions for end users to view drpolicies. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/config/rbac/leader_election_role.yaml b/config/rbac/leader_election_role.yaml index 4190ec8059..65b97f5342 100644 --- a/config/rbac/leader_election_role.yaml +++ b/config/rbac/leader_election_role.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # permissions to do leader election. apiVersion: rbac.authorization.k8s.io/v1 kind: Role diff --git a/config/rbac/leader_election_role_binding.yaml b/config/rbac/leader_election_role_binding.yaml index 95d4b27213..0a2ec09f96 100644 --- a/config/rbac/leader_election_role_binding.yaml +++ b/config/rbac/leader_election_role_binding.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: diff --git a/config/rbac/protectedvolumereplicationgrouplist_editor_role.yaml b/config/rbac/protectedvolumereplicationgrouplist_editor_role.yaml index 8d7c678382..39148dfb6f 100644 --- a/config/rbac/protectedvolumereplicationgrouplist_editor_role.yaml +++ b/config/rbac/protectedvolumereplicationgrouplist_editor_role.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # permissions for end users to edit protectedvolumereplicationgrouplists. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/config/rbac/protectedvolumereplicationgrouplist_viewer_role.yaml b/config/rbac/protectedvolumereplicationgrouplist_viewer_role.yaml index 55893c942a..36e49d2ba5 100644 --- a/config/rbac/protectedvolumereplicationgrouplist_viewer_role.yaml +++ b/config/rbac/protectedvolumereplicationgrouplist_viewer_role.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # permissions for end users to view protectedvolumereplicationgrouplists. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/config/rbac/role.yaml b/config/rbac/role.yaml index b6907b9b43..e5e7617237 100644 --- a/config/rbac/role.yaml +++ b/config/rbac/role.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/config/rbac/role_binding.yaml b/config/rbac/role_binding.yaml index e26c75fedb..6d03c03498 100644 --- a/config/rbac/role_binding.yaml +++ b/config/rbac/role_binding.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: diff --git a/config/rbac/service_account.yaml b/config/rbac/service_account.yaml index 38423bc86b..eb643e197a 100644 --- a/config/rbac/service_account.yaml +++ b/config/rbac/service_account.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + apiVersion: v1 kind: ServiceAccount metadata: diff --git a/config/rbac/volumereplicationgroup_editor_role.yaml b/config/rbac/volumereplicationgroup_editor_role.yaml index 4c3746830a..84d34ae2f0 100644 --- a/config/rbac/volumereplicationgroup_editor_role.yaml +++ b/config/rbac/volumereplicationgroup_editor_role.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # permissions for end users to edit volumereplicationgroups. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/config/rbac/volumereplicationgroup_viewer_role.yaml b/config/rbac/volumereplicationgroup_viewer_role.yaml index dd70608002..8d505a666e 100644 --- a/config/rbac/volumereplicationgroup_viewer_role.yaml +++ b/config/rbac/volumereplicationgroup_viewer_role.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # permissions for end users to view volumereplicationgroups. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/config/samples/kustomization.yaml b/config/samples/kustomization.yaml index d722246af7..c8e6f6ae35 100644 --- a/config/samples/kustomization.yaml +++ b/config/samples/kustomization.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + ## Append samples you want in your CSV to this file as resources ## resources: - ramendr_v1alpha1_drcluster.yaml diff --git a/config/samples/ramendr_v1alpha1_drcluster.yaml b/config/samples/ramendr_v1alpha1_drcluster.yaml index a135b7e0a2..033e1f8297 100644 --- a/config/samples/ramendr_v1alpha1_drcluster.yaml +++ b/config/samples/ramendr_v1alpha1_drcluster.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + apiVersion: ramendr.openshift.io/v1alpha1 kind: DRCluster metadata: diff --git a/config/samples/ramendr_v1alpha1_drplacementcontrol.yaml b/config/samples/ramendr_v1alpha1_drplacementcontrol.yaml index 7b473c7e21..39d09bfc51 100644 --- a/config/samples/ramendr_v1alpha1_drplacementcontrol.yaml +++ b/config/samples/ramendr_v1alpha1_drplacementcontrol.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + apiVersion: ramendr.openshift.io/v1alpha1 kind: DRPlacementControl metadata: diff --git a/config/samples/ramendr_v1alpha1_drpolicy.yaml b/config/samples/ramendr_v1alpha1_drpolicy.yaml index 880e2031fb..80241880f4 100644 --- a/config/samples/ramendr_v1alpha1_drpolicy.yaml +++ b/config/samples/ramendr_v1alpha1_drpolicy.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + apiVersion: ramendr.openshift.io/v1alpha1 kind: DRPolicy metadata: diff --git a/config/samples/ramendr_v1alpha1_metrodr_drpolicy.yaml b/config/samples/ramendr_v1alpha1_metrodr_drpolicy.yaml index f48b16f875..60b6797978 100644 --- a/config/samples/ramendr_v1alpha1_metrodr_drpolicy.yaml +++ b/config/samples/ramendr_v1alpha1_metrodr_drpolicy.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + apiVersion: ramendr.openshift.io/v1alpha1 kind: DRPolicy metadata: diff --git a/config/samples/ramendr_v1alpha1_protectedvolumereplicationgrouplist.yaml b/config/samples/ramendr_v1alpha1_protectedvolumereplicationgrouplist.yaml index 76db2ed4cf..6dff3d29d9 100644 --- a/config/samples/ramendr_v1alpha1_protectedvolumereplicationgrouplist.yaml +++ b/config/samples/ramendr_v1alpha1_protectedvolumereplicationgrouplist.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + apiVersion: ramendr.openshift.io/v1alpha1 kind: ProtectedVolumeReplicationGroupList metadata: diff --git a/config/samples/ramendr_v1alpha1_ramenconfig.yaml b/config/samples/ramendr_v1alpha1_ramenconfig.yaml index affdec220a..82105a4bec 100644 --- a/config/samples/ramendr_v1alpha1_ramenconfig.yaml +++ b/config/samples/ramendr_v1alpha1_ramenconfig.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + apiVersion: ramendr.openshift.io/v1alpha1 kind: RamenConfig health: diff --git a/config/samples/ramendr_v1alpha1_volumereplicationgroup.yaml b/config/samples/ramendr_v1alpha1_volumereplicationgroup.yaml index 4cf1775458..5a0ad2b7b3 100644 --- a/config/samples/ramendr_v1alpha1_volumereplicationgroup.yaml +++ b/config/samples/ramendr_v1alpha1_volumereplicationgroup.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + apiVersion: ramendr.openshift.io/v1alpha1 kind: VolumeReplicationGroup metadata: diff --git a/config/samples/ramnedr_v1alpha1_metrodr_drcluster.yaml b/config/samples/ramnedr_v1alpha1_metrodr_drcluster.yaml index a93c22060f..964013b241 100644 --- a/config/samples/ramnedr_v1alpha1_metrodr_drcluster.yaml +++ b/config/samples/ramnedr_v1alpha1_metrodr_drcluster.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + apiVersion: ramendr.openshift.io/v1alpha1 kind: DRCluster metadata: diff --git a/config/scorecard/bases/config.yaml b/config/scorecard/bases/config.yaml index c77047841e..fc457121e5 100644 --- a/config/scorecard/bases/config.yaml +++ b/config/scorecard/bases/config.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + apiVersion: scorecard.operatorframework.io/v1alpha3 kind: Configuration metadata: diff --git a/config/scorecard/kustomization.yaml b/config/scorecard/kustomization.yaml index d73509ee73..0d7e0c2782 100644 --- a/config/scorecard/kustomization.yaml +++ b/config/scorecard/kustomization.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + resources: - bases/config.yaml patchesJson6902: diff --git a/config/scorecard/patches/basic.config.yaml b/config/scorecard/patches/basic.config.yaml index 80e03d5431..222feeae20 100644 --- a/config/scorecard/patches/basic.config.yaml +++ b/config/scorecard/patches/basic.config.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + - op: add path: /stages/0/tests/- value: diff --git a/config/scorecard/patches/olm.config.yaml b/config/scorecard/patches/olm.config.yaml index 2bc9691c06..2830d04e4d 100644 --- a/config/scorecard/patches/olm.config.yaml +++ b/config/scorecard/patches/olm.config.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + - op: add path: /stages/0/tests/- value: diff --git a/controllers/drcluster_controller.go b/controllers/drcluster_controller.go index 933868fa33..e4d0e27859 100644 --- a/controllers/drcluster_controller.go +++ b/controllers/drcluster_controller.go @@ -1,18 +1,6 @@ -/* -Copyright 2022 The RamenDR authors. - -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. -*/ +// Copyright 2022 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package controllers diff --git a/controllers/drcluster_controller_test.go b/controllers/drcluster_controller_test.go index e17652ce77..70a32a8c09 100644 --- a/controllers/drcluster_controller_test.go +++ b/controllers/drcluster_controller_test.go @@ -1,17 +1,6 @@ -/* -Copyright 2022 The RamenDR authors. -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. -*/ +// Copyright 2022 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package controllers_test diff --git a/controllers/drclusters.go b/controllers/drclusters.go index 8bb7a594a0..64e871c986 100644 --- a/controllers/drclusters.go +++ b/controllers/drclusters.go @@ -1,18 +1,6 @@ -/* -Copyright 2022 The RamenDR authors. - -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. -*/ +// Copyright 2022 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package controllers diff --git a/controllers/drplacementcontrol.go b/controllers/drplacementcontrol.go index 7602acb40a..9a78379160 100644 --- a/controllers/drplacementcontrol.go +++ b/controllers/drplacementcontrol.go @@ -1,17 +1,6 @@ -/* -Copyright 2021 The RamenDR authors. -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. -*/ +// Copyright 2021 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package controllers diff --git a/controllers/drplacementcontrol_controller.go b/controllers/drplacementcontrol_controller.go index 3e4225792e..0ff4bfe220 100644 --- a/controllers/drplacementcontrol_controller.go +++ b/controllers/drplacementcontrol_controller.go @@ -1,17 +1,6 @@ -/* -Copyright 2021 The RamenDR authors. -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. -*/ +// Copyright 2021 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package controllers diff --git a/controllers/drplacementcontrol_controller_test.go b/controllers/drplacementcontrol_controller_test.go index b18d344716..99b66587a7 100644 --- a/controllers/drplacementcontrol_controller_test.go +++ b/controllers/drplacementcontrol_controller_test.go @@ -1,15 +1,6 @@ -/* -Copyright 2021 The RamenDR authors. -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. -*/ +// Copyright 2021 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package controllers_test diff --git a/controllers/drplacementcontrolvolsync.go b/controllers/drplacementcontrolvolsync.go index 63de9b1cb9..60ad770c16 100644 --- a/controllers/drplacementcontrolvolsync.go +++ b/controllers/drplacementcontrolvolsync.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 + package controllers import ( diff --git a/controllers/drpolicy.go b/controllers/drpolicy.go index a9a63c1558..ef482e0890 100644 --- a/controllers/drpolicy.go +++ b/controllers/drpolicy.go @@ -1,18 +1,6 @@ -/* -Copyright 2022 The RamenDR authors. - -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. -*/ +// Copyright 2022 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package controllers diff --git a/controllers/drpolicy_controller.go b/controllers/drpolicy_controller.go index 9901dd9c3c..241f491ae0 100644 --- a/controllers/drpolicy_controller.go +++ b/controllers/drpolicy_controller.go @@ -1,18 +1,6 @@ -/* -Copyright 2021 The RamenDR authors. - -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. -*/ +// Copyright 2021 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package controllers diff --git a/controllers/drpolicy_controller_test.go b/controllers/drpolicy_controller_test.go index df5f98126f..4b94bdeae0 100644 --- a/controllers/drpolicy_controller_test.go +++ b/controllers/drpolicy_controller_test.go @@ -1,17 +1,6 @@ -/* -Copyright 2021 The RamenDR authors. -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. -*/ +// Copyright 2021 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package controllers_test diff --git a/controllers/kubeobjects/requests.go b/controllers/kubeobjects/requests.go index 08ae2cbb56..1689b3563b 100644 --- a/controllers/kubeobjects/requests.go +++ b/controllers/kubeobjects/requests.go @@ -1,18 +1,6 @@ -/* -Copyright 2022 The RamenDR authors. - -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. -*/ +// Copyright 2022 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package kubeobjects diff --git a/controllers/kubeobjects/velero/requests.go b/controllers/kubeobjects/velero/requests.go index 5b07c2ef52..75c7574d9d 100644 --- a/controllers/kubeobjects/velero/requests.go +++ b/controllers/kubeobjects/velero/requests.go @@ -1,18 +1,6 @@ -/* -Copyright 2022 The RamenDR authors. - -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. -*/ +// Copyright 2022 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 //nolint: lll // +kubebuilder:rbac:groups=velero.io,resources=backups,verbs=create;delete;deletecollection;get;list;patch;update;watch diff --git a/controllers/predicates.go b/controllers/predicates.go index 0810b66095..812e39bc93 100644 --- a/controllers/predicates.go +++ b/controllers/predicates.go @@ -1,18 +1,6 @@ -/* -Copyright 2022 The RamenDR authors. - -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. -*/ +// Copyright 2022 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package controllers diff --git a/controllers/protectedvolumereplicationgrouplist_controller.go b/controllers/protectedvolumereplicationgrouplist_controller.go index d90db661bd..cfb48b2758 100644 --- a/controllers/protectedvolumereplicationgrouplist_controller.go +++ b/controllers/protectedvolumereplicationgrouplist_controller.go @@ -1,18 +1,6 @@ -/* -Copyright 2022 The RamenDR authors. - -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. -*/ +// Copyright 2022 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package controllers diff --git a/controllers/protectedvolumereplicationgrouplist_controller_test.go b/controllers/protectedvolumereplicationgrouplist_controller_test.go index a7032a1110..cad6ae36e3 100644 --- a/controllers/protectedvolumereplicationgrouplist_controller_test.go +++ b/controllers/protectedvolumereplicationgrouplist_controller_test.go @@ -1,17 +1,6 @@ -/* -Copyright 2022 The RamenDR authors. -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. -*/ +// Copyright 2022 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package controllers_test diff --git a/controllers/ramenconfig.go b/controllers/ramenconfig.go index a0ebc0fb89..ed00cfbe4f 100644 --- a/controllers/ramenconfig.go +++ b/controllers/ramenconfig.go @@ -1,18 +1,6 @@ -/* -Copyright 2021 The RamenDR authors. - -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. -*/ +// Copyright 2021 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package controllers diff --git a/controllers/ramenconfig_test.go b/controllers/ramenconfig_test.go index bbf102370a..4a336ae0ef 100644 --- a/controllers/ramenconfig_test.go +++ b/controllers/ramenconfig_test.go @@ -1,18 +1,6 @@ -/* -Copyright 2022 The RamenDR authors. - -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. -*/ +// Copyright 2022 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package controllers_test diff --git a/controllers/reconcile_result.go b/controllers/reconcile_result.go index d8ab67c2e6..1849b6d59d 100644 --- a/controllers/reconcile_result.go +++ b/controllers/reconcile_result.go @@ -1,18 +1,6 @@ -/* -Copyright 2022 The RamenDR authors. - -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. -*/ +// Copyright 2022 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package controllers diff --git a/controllers/s3utils.go b/controllers/s3utils.go index 3e82b8b97f..f9e2667858 100644 --- a/controllers/s3utils.go +++ b/controllers/s3utils.go @@ -1,15 +1,6 @@ -/* -Copyright 2021 The RamenDR authors. -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. -*/ +// Copyright 2021 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package controllers diff --git a/controllers/s3utils_test.go b/controllers/s3utils_test.go index 1d7541c6ae..8dea6e3eb6 100644 --- a/controllers/s3utils_test.go +++ b/controllers/s3utils_test.go @@ -1,18 +1,6 @@ -/* -Copyright 2021 The RamenDR authors. - -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. -*/ +// Copyright 2021 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package controllers_test diff --git a/controllers/status.go b/controllers/status.go index 0eee723f72..dfb9dc110b 100644 --- a/controllers/status.go +++ b/controllers/status.go @@ -1,18 +1,6 @@ -/* -Copyright 2021 The RamenDR authors. - -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. -*/ +// Copyright 2021 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package controllers diff --git a/controllers/suite_test.go b/controllers/suite_test.go index c94f67d933..62e013b88c 100644 --- a/controllers/suite_test.go +++ b/controllers/suite_test.go @@ -1,18 +1,6 @@ -/* -Copyright 2021 The RamenDR authors. - -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. -*/ +// Copyright 2021 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package controllers_test diff --git a/controllers/util/conditions.go b/controllers/util/conditions.go index 18a2af5933..d7b300c376 100644 --- a/controllers/util/conditions.go +++ b/controllers/util/conditions.go @@ -1,18 +1,6 @@ -/* -Copyright 2021 The RamenDR authors. - -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. -*/ +// Copyright 2021 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package util diff --git a/controllers/util/drpolicy_util.go b/controllers/util/drpolicy_util.go index 2dbeb2671b..172e8e1e95 100644 --- a/controllers/util/drpolicy_util.go +++ b/controllers/util/drpolicy_util.go @@ -1,18 +1,6 @@ -/* -Copyright 2021 The RamenDR authors. - -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. -*/ +// Copyright 2021 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package util diff --git a/controllers/util/events.go b/controllers/util/events.go index 2183dc71fc..7673b019c8 100644 --- a/controllers/util/events.go +++ b/controllers/util/events.go @@ -1,18 +1,6 @@ -/* -Copyright 2021 The RamenDR authors. - -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. -*/ +// Copyright 2021 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package util diff --git a/controllers/util/labels.go b/controllers/util/labels.go index e152cf55f4..33b75663c4 100644 --- a/controllers/util/labels.go +++ b/controllers/util/labels.go @@ -1,18 +1,6 @@ -/* -Copyright 2022 The RamenDR authors. - -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. -*/ +// Copyright 2022 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package util diff --git a/controllers/util/mcv_util.go b/controllers/util/mcv_util.go index 3b91c49886..48ed455525 100644 --- a/controllers/util/mcv_util.go +++ b/controllers/util/mcv_util.go @@ -1,18 +1,6 @@ -/* -Copyright 2022 The RamenDR authors. - -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. -*/ +// Copyright 2022 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package util diff --git a/controllers/util/misc.go b/controllers/util/misc.go index 5a16e0284c..768be352d2 100644 --- a/controllers/util/misc.go +++ b/controllers/util/misc.go @@ -1,18 +1,6 @@ -/* -Copyright 2021 The RamenDR authors. - -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. -*/ +// Copyright 2021 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package util diff --git a/controllers/util/mw_util.go b/controllers/util/mw_util.go index c3250afef0..0b7e191408 100644 --- a/controllers/util/mw_util.go +++ b/controllers/util/mw_util.go @@ -1,18 +1,6 @@ -/* -Copyright 2021 The RamenDR authors. - -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. -*/ +// Copyright 2021 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package util diff --git a/controllers/util/mw_util_test.go b/controllers/util/mw_util_test.go index f82fbdb058..286cae6e57 100644 --- a/controllers/util/mw_util_test.go +++ b/controllers/util/mw_util_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 + package util_test import ( diff --git a/controllers/util/objectmeta.go b/controllers/util/objectmeta.go index 7cdf908dfb..6956290164 100644 --- a/controllers/util/objectmeta.go +++ b/controllers/util/objectmeta.go @@ -1,18 +1,6 @@ -/* -Copyright 2022 The RamenDR authors. - -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. -*/ +// Copyright 2022 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package util diff --git a/controllers/util/pvcs_util.go b/controllers/util/pvcs_util.go index 952d46357b..269b7c9963 100644 --- a/controllers/util/pvcs_util.go +++ b/controllers/util/pvcs_util.go @@ -1,18 +1,6 @@ -/* -Copyright 2021 The RamenDR authors. - -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. -*/ +// Copyright 2021 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package util diff --git a/controllers/util/pvcs_util_test.go b/controllers/util/pvcs_util_test.go index 363e12681e..cf89a20f41 100644 --- a/controllers/util/pvcs_util_test.go +++ b/controllers/util/pvcs_util_test.go @@ -1,18 +1,6 @@ -/* -Copyright 2022 The RamenDR authors. - -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. -*/ +// Copyright 2022 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package util_test diff --git a/controllers/util/secrets_util.go b/controllers/util/secrets_util.go index e63f6f03b1..53814783f0 100644 --- a/controllers/util/secrets_util.go +++ b/controllers/util/secrets_util.go @@ -1,18 +1,6 @@ -/* -Copyright 2022 The RamenDR authors. - -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. -*/ +// Copyright 2022 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 // NOTE: Added to skip creating shadow manifests for localSecret struct // +kubebuilder:skip diff --git a/controllers/util/secrets_util_test.go b/controllers/util/secrets_util_test.go index 251b0738e7..8d5041a233 100644 --- a/controllers/util/secrets_util_test.go +++ b/controllers/util/secrets_util_test.go @@ -1,18 +1,6 @@ -/* -Copyright 2022 The RamenDR authors. - -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. -*/ +// Copyright 2022 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package util_test diff --git a/controllers/util/util_suite_test.go b/controllers/util/util_suite_test.go index 94038c5266..d4427120b7 100644 --- a/controllers/util/util_suite_test.go +++ b/controllers/util/util_suite_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 + package util_test import ( diff --git a/controllers/volsync/common.go b/controllers/volsync/common.go index 6048f2e44f..3a43612c9f 100644 --- a/controllers/volsync/common.go +++ b/controllers/volsync/common.go @@ -1,18 +1,6 @@ -/* -Copyright 2021 The RamenDR authors. - -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. -*/ +// Copyright 2021 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package volsync diff --git a/controllers/volsync/deploy_volsync.go b/controllers/volsync/deploy_volsync.go index 95afb022f3..75b2cfde74 100644 --- a/controllers/volsync/deploy_volsync.go +++ b/controllers/volsync/deploy_volsync.go @@ -1,18 +1,6 @@ -/* -Copyright 2022 The RamenDR authors. - -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. -*/ +// Copyright 2022 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package volsync diff --git a/controllers/volsync/deploy_volsync_test.go b/controllers/volsync/deploy_volsync_test.go index 71a3accd50..21228d572d 100644 --- a/controllers/volsync/deploy_volsync_test.go +++ b/controllers/volsync/deploy_volsync_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 + package volsync_test import ( diff --git a/controllers/volsync/secret_propagator.go b/controllers/volsync/secret_propagator.go index d90d06eb66..e28dc7618d 100644 --- a/controllers/volsync/secret_propagator.go +++ b/controllers/volsync/secret_propagator.go @@ -1,18 +1,6 @@ -/* -Copyright 2022 The RamenDR authors. - -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. -*/ +// Copyright 2022 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package volsync diff --git a/controllers/volsync/secret_propagator_test.go b/controllers/volsync/secret_propagator_test.go index bc09ab8ef3..97688d9e22 100644 --- a/controllers/volsync/secret_propagator_test.go +++ b/controllers/volsync/secret_propagator_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 + package volsync_test import ( diff --git a/controllers/volsync/secretgen.go b/controllers/volsync/secretgen.go index 750ef9fc32..ee97668f06 100644 --- a/controllers/volsync/secretgen.go +++ b/controllers/volsync/secretgen.go @@ -1,18 +1,6 @@ -/* -Copyright 2022 The RamenDR authors. - -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. -*/ +// Copyright 2022 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package volsync diff --git a/controllers/volsync/secretgen_test.go b/controllers/volsync/secretgen_test.go index 056122f1a2..dea96e6ea2 100644 --- a/controllers/volsync/secretgen_test.go +++ b/controllers/volsync/secretgen_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 + package volsync_test import ( diff --git a/controllers/volsync/volsync_suite_test.go b/controllers/volsync/volsync_suite_test.go index 0e7fac8b74..5b6f6e7793 100644 --- a/controllers/volsync/volsync_suite_test.go +++ b/controllers/volsync/volsync_suite_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 + package volsync_test import ( diff --git a/controllers/volsync/vshandler.go b/controllers/volsync/vshandler.go index ba8c8e90f9..3a1ce04927 100644 --- a/controllers/volsync/vshandler.go +++ b/controllers/volsync/vshandler.go @@ -1,18 +1,6 @@ -/* -Copyright 2021 The RamenDR authors. - -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. -*/ +// Copyright 2021 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package volsync diff --git a/controllers/volsync/vshandler_test.go b/controllers/volsync/vshandler_test.go index a77bc537e5..ffab4d5870 100644 --- a/controllers/volsync/vshandler_test.go +++ b/controllers/volsync/vshandler_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 + package volsync_test import ( diff --git a/controllers/volumereplicationgroup_controller.go b/controllers/volumereplicationgroup_controller.go index 6adeeabf70..5776d70280 100644 --- a/controllers/volumereplicationgroup_controller.go +++ b/controllers/volumereplicationgroup_controller.go @@ -1,18 +1,6 @@ -/* -Copyright 2021 The RamenDR authors. - -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. -*/ +// Copyright 2021 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package controllers diff --git a/controllers/vrg_kubeobjects.go b/controllers/vrg_kubeobjects.go index f52381a52f..9051b6ca49 100644 --- a/controllers/vrg_kubeobjects.go +++ b/controllers/vrg_kubeobjects.go @@ -1,18 +1,6 @@ -/* -Copyright 2022 The RamenDR authors. - -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. -*/ +// Copyright 2022 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package controllers diff --git a/controllers/vrg_volrep.go b/controllers/vrg_volrep.go index e75df63a73..66457730df 100644 --- a/controllers/vrg_volrep.go +++ b/controllers/vrg_volrep.go @@ -1,18 +1,6 @@ -/* -Copyright 2022 The RamenDR authors. - -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. -*/ +// Copyright 2022 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package controllers diff --git a/controllers/vrg_volrep_test.go b/controllers/vrg_volrep_test.go index 82bbc71189..b3591d485a 100644 --- a/controllers/vrg_volrep_test.go +++ b/controllers/vrg_volrep_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 + package controllers_test import ( diff --git a/controllers/vrg_volsync.go b/controllers/vrg_volsync.go index 06339d452c..2a41596662 100644 --- a/controllers/vrg_volsync.go +++ b/controllers/vrg_volsync.go @@ -1,18 +1,6 @@ -/* -Copyright 2021 The RamenDR authors. - -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. -*/ +// Copyright 2021 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package controllers diff --git a/controllers/vrg_volsync_test.go b/controllers/vrg_volsync_test.go index 8d3425c640..4ce4831ce9 100644 --- a/controllers/vrg_volsync_test.go +++ b/controllers/vrg_volsync_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 + package controllers_test import ( diff --git a/docs/configure.md b/docs/configure.md index a4aeb23fd2..5400b949df 100644 --- a/docs/configure.md +++ b/docs/configure.md @@ -1,3 +1,8 @@ + + # Configure ## **Under construction** diff --git a/docs/design/VRG-TypeSequence.md b/docs/design/VRG-TypeSequence.md index a3762f130d..48604e6ad3 100644 --- a/docs/design/VRG-TypeSequence.md +++ b/docs/design/VRG-TypeSequence.md @@ -1,3 +1,8 @@ + + # VRG Type Sequence ## Overview diff --git a/docs/design/proposals/VRG-Reconciliation.md b/docs/design/proposals/VRG-Reconciliation.md index 6d47127ddb..d8edfa01c4 100644 --- a/docs/design/proposals/VRG-Reconciliation.md +++ b/docs/design/proposals/VRG-Reconciliation.md @@ -1,3 +1,8 @@ + + # VRG reconciler workflow This design document covers the VRG CRD and its reconciliation workflow. diff --git a/docs/drpc-crd.md b/docs/drpc-crd.md index 713f351cba..979bf089af 100644 --- a/docs/drpc-crd.md +++ b/docs/drpc-crd.md @@ -1,3 +1,8 @@ + + # DRPlacementControl(drpc) CRD ## **Under construction** diff --git a/docs/drpolicy-crd.md b/docs/drpolicy-crd.md index 2934bd61ea..220c88035a 100644 --- a/docs/drpolicy-crd.md +++ b/docs/drpolicy-crd.md @@ -1,3 +1,8 @@ + + # DRPolicy CRD ## **Under construction** diff --git a/docs/install.md b/docs/install.md index 0e92b4eee0..fc05f55517 100644 --- a/docs/install.md +++ b/docs/install.md @@ -1,3 +1,8 @@ + + # Install ## Prerequisites diff --git a/docs/interfaces.png.license b/docs/interfaces.png.license new file mode 100644 index 0000000000..cf0ee4352d --- /dev/null +++ b/docs/interfaces.png.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: The RamenDR authors +SPDX-License-Identifier: Apache-2.0 \ No newline at end of file diff --git a/docs/krp.md b/docs/krp.md index cd950b06e9..06cd9e6ea7 100644 --- a/docs/krp.md +++ b/docs/krp.md @@ -1,3 +1,8 @@ + + # Kubernetes Resource Protection ## Overview diff --git a/docs/metrics.md b/docs/metrics.md index 23c929a159..5eb358d9ac 100644 --- a/docs/metrics.md +++ b/docs/metrics.md @@ -1,3 +1,8 @@ + + # Metrics Metrics are collected using Prometheus, and registered with its global metrics diff --git a/docs/motivation.md b/docs/motivation.md index 33b5f7e83d..f4b695485f 100644 --- a/docs/motivation.md +++ b/docs/motivation.md @@ -1,3 +1,8 @@ + + # Motivation ## **Under Construction** diff --git a/docs/testing.md b/docs/testing.md index 2c8016d4a4..2f1a9c6ee8 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -1,3 +1,8 @@ + + # Testing ## **Under construction** diff --git a/docs/usage.md b/docs/usage.md index 715040e1d3..1855dc6f08 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -1,3 +1,8 @@ + + # Sample workload management using Ramen ## **Under construction** diff --git a/docs/vrg-crd.md b/docs/vrg-crd.md index cff62f7d80..0e5bc7c83b 100644 --- a/docs/vrg-crd.md +++ b/docs/vrg-crd.md @@ -1,3 +1,8 @@ + + # VolumeReplicationGroup(VRG) CRD ## **Under construction** diff --git a/docs/vrg-usage.md b/docs/vrg-usage.md index 94694e7bad..7ffb8ac82e 100644 --- a/docs/vrg-usage.md +++ b/docs/vrg-usage.md @@ -1,3 +1,8 @@ + + # Volume Replication Group (VRG) usage ## Protect application on cluster1 diff --git a/examples/dr_cluster_config.yaml b/examples/dr_cluster_config.yaml index cbb05676f2..f29effbb3f 100644 --- a/examples/dr_cluster_config.yaml +++ b/examples/dr_cluster_config.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + --- apiVersion: ramendr.openshift.io/v1alpha1 kind: RamenConfig diff --git a/examples/dr_hub_config.yaml b/examples/dr_hub_config.yaml index 9f3bc05064..b684f99c75 100644 --- a/examples/dr_hub_config.yaml +++ b/examples/dr_hub_config.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + --- apiVersion: ramendr.openshift.io/v1alpha1 kind: RamenConfig diff --git a/examples/managedclusterview/README.md b/examples/managedclusterview/README.md index 6791cea338..5158dbc64d 100644 --- a/examples/managedclusterview/README.md +++ b/examples/managedclusterview/README.md @@ -1,3 +1,8 @@ + + # ManagedClusterView ## Usage Description diff --git a/examples/managedclusterview/mcv-pv.yaml b/examples/managedclusterview/mcv-pv.yaml index 799d58d982..8dd2328d97 100644 --- a/examples/managedclusterview/mcv-pv.yaml +++ b/examples/managedclusterview/mcv-pv.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # Create ManagedClusterView for a PV --- apiVersion: view.open-cluster-management.io/v1beta1 diff --git a/examples/managedclusterview/mcv-vrg.yaml b/examples/managedclusterview/mcv-vrg.yaml index 46cf108f95..4cb0ed1103 100644 --- a/examples/managedclusterview/mcv-vrg.yaml +++ b/examples/managedclusterview/mcv-vrg.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # Create ManagedClusterView for a VRG --- apiVersion: view.open-cluster-management.io/v1beta1 diff --git a/go.mod b/go.mod index 80ab86cdb9..7c04fa0217 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 + module github.com/ramendr/ramen go 1.18 diff --git a/go.sum.license b/go.sum.license new file mode 100644 index 0000000000..cf0ee4352d --- /dev/null +++ b/go.sum.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: The RamenDR authors +SPDX-License-Identifier: Apache-2.0 \ No newline at end of file diff --git a/hack/README.md b/hack/README.md index c199735a65..d27dfe0c9a 100644 --- a/hack/README.md +++ b/hack/README.md @@ -1,3 +1,8 @@ + + # hack/ ## minikube-ramen.sh diff --git a/hack/boilerplate.go.txt b/hack/boilerplate.go.txt index 6d6dac5cd8..6b673a28c9 100644 --- a/hack/boilerplate.go.txt +++ b/hack/boilerplate.go.txt @@ -1,15 +1,2 @@ -/* -Copyright 2022 The RamenDR authors. - -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. -*/ \ No newline at end of file +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 diff --git a/hack/curl-install.sh b/hack/curl-install.sh index 39d029f560..6a76b6de65 100755 --- a/hack/curl-install.sh +++ b/hack/curl-install.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck disable=2086 if ! command -v curl; then wget -O ${1}/curl https://github.com/moparisthebest/static-curl/releases/download/v7.76.0/curl-amd64 diff --git a/hack/dev-rook-cluster.yaml b/hack/dev-rook-cluster.yaml index 977ea95cc5..eacf121e35 100644 --- a/hack/dev-rook-cluster.yaml +++ b/hack/dev-rook-cluster.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # Copy of: # github.com/rook/rook/blob/release-1.8/deploy/examples/cluster-test.yaml --- diff --git a/hack/dev-rook-rbdpool.yaml b/hack/dev-rook-rbdpool.yaml index 1afe61c54f..ba2e5a5ea6 100644 --- a/hack/dev-rook-rbdpool.yaml +++ b/hack/dev-rook-rbdpool.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + --- apiVersion: ceph.rook.io/v1 kind: CephBlockPool diff --git a/hack/dev-rook-sc.yaml b/hack/dev-rook-sc.yaml index a36ab388d9..36a077b7bd 100644 --- a/hack/dev-rook-sc.yaml +++ b/hack/dev-rook-sc.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + --- apiVersion: storage.k8s.io/v1 kind: StorageClass diff --git a/hack/docker-client-install.sh b/hack/docker-client-install.sh index dafab3af5c..e7746ba3c3 100755 --- a/hack/docker-client-install.sh +++ b/hack/docker-client-install.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck shell=sh disable=2046,2086 set -x set -- $1 20.10.6 diff --git a/hack/docker-install.sh b/hack/docker-install.sh index 675a829ee4..1fd110afa2 100644 --- a/hack/docker-install.sh +++ b/hack/docker-install.sh @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck shell=sh disable=2046,2086 docker_install() { diff --git a/hack/docker-uninstall.sh b/hack/docker-uninstall.sh index 25fcc4c4f0..5d3f0ce52b 100755 --- a/hack/docker-uninstall.sh +++ b/hack/docker-uninstall.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + set -x set -e if test -x "${1}"/dockerd-rootless-setuptool.sh; then diff --git a/hack/exit_stack.sh b/hack/exit_stack.sh index 6e91b892ba..6b7b4badfe 100644 --- a/hack/exit_stack.sh +++ b/hack/exit_stack.sh @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck shell=sh trap 'set -- $?; trap - EXIT; eval $exit_stack; echo exit status: $1' EXIT trap 'trap - EXIT; eval $exit_stack' EXIT diff --git a/hack/fuse-overlayfs-install.sh b/hack/fuse-overlayfs-install.sh index 62f3f7f430..9d617f29c5 100755 --- a/hack/fuse-overlayfs-install.sh +++ b/hack/fuse-overlayfs-install.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck disable=2086 set -x # https://github.com/containers/fuse-overlayfs diff --git a/hack/git-checkout.sh b/hack/git-checkout.sh index 6cd4932bf4..316f1d0e59 100644 --- a/hack/git-checkout.sh +++ b/hack/git-checkout.sh @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck shell=sh disable=2086 git_checkout() { diff --git a/hack/github-url.sh b/hack/github-url.sh index b6a0ac81af..035557c67e 100644 --- a/hack/github-url.sh +++ b/hack/github-url.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + github_url_file() { echo https://raw.githubusercontent.com/"$1"/"$3"/"$2" diff --git a/hack/go-install.sh b/hack/go-install.sh index 54d9a2ce6d..44811d0e54 100644 --- a/hack/go-install.sh +++ b/hack/go-install.sh @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck shell=sh disable=2046,2086 go_install() { diff --git a/hack/kubectl-install.sh b/hack/kubectl-install.sh index df748e7904..42f452507c 100755 --- a/hack/kubectl-install.sh +++ b/hack/kubectl-install.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck disable=2046,2086 if ! command -v kubectl\ ||\ diff --git a/hack/kustomize-install.sh b/hack/kustomize-install.sh index c944573639..355801cd36 100755 --- a/hack/kustomize-install.sh +++ b/hack/kustomize-install.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck disable=2046,2086 if ! command -v kustomize; then $(dirname ${0})/curl-install.sh ${1} diff --git a/hack/mdl-style.rb b/hack/mdl-style.rb index 1a9954dce4..e969d02650 100644 --- a/hack/mdl-style.rb +++ b/hack/mdl-style.rb @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + all #Refer below url for more information about the markdown rules. diff --git a/hack/minikube-install.sh b/hack/minikube-install.sh index 8007059a0f..8515482cf1 100755 --- a/hack/minikube-install.sh +++ b/hack/minikube-install.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck disable=2046,2086 if ! command -v minikube; then # https://minikube.sigs.k8s.io/docs/start/ diff --git a/hack/minikube-ramen.sh b/hack/minikube-ramen.sh index a3951e21af..cfeee6c63c 100755 --- a/hack/minikube-ramen.sh +++ b/hack/minikube-ramen.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck disable=2086 set -e ramen_hack_directory_path_name=$(dirname $0) diff --git a/hack/minikube-rook-mirror-setup.sh b/hack/minikube-rook-mirror-setup.sh index 9c19fbb156..5263e1b26b 100755 --- a/hack/minikube-rook-mirror-setup.sh +++ b/hack/minikube-rook-mirror-setup.sh @@ -1,4 +1,8 @@ #!/bin/bash + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + set -x set -e -o pipefail scriptdir="$(dirname "$(realpath "$0")")" diff --git a/hack/minikube-rook-mirror-test.sh b/hack/minikube-rook-mirror-test.sh index 123d60198b..931213d09a 100755 --- a/hack/minikube-rook-mirror-test.sh +++ b/hack/minikube-rook-mirror-test.sh @@ -1,4 +1,8 @@ #!/bin/bash + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + set -x set -e -o pipefail diff --git a/hack/minikube-rook-setup.sh b/hack/minikube-rook-setup.sh index d461ef9584..d61bfe0740 100755 --- a/hack/minikube-rook-setup.sh +++ b/hack/minikube-rook-setup.sh @@ -1,4 +1,8 @@ #!/bin/bash + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + set -x set -e -o pipefail diff --git a/hack/minikube.sh b/hack/minikube.sh index e0b8f24494..54948d7d31 100644 --- a/hack/minikube.sh +++ b/hack/minikube.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck disable=2086 minikube_minio_url() { diff --git a/hack/minio-deployment.yaml b/hack/minio-deployment.yaml index a3e3d2292c..cd6a61643a 100644 --- a/hack/minio-deployment.yaml +++ b/hack/minio-deployment.yaml @@ -1,16 +1,7 @@ # Copyright 2017 the Velero contributors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + --- apiVersion: v1 kind: Namespace diff --git a/hack/ocm-minikube-ramen.sh b/hack/ocm-minikube-ramen.sh index ccfdb6ba5a..2f5b5a05a2 100755 --- a/hack/ocm-minikube-ramen.sh +++ b/hack/ocm-minikube-ramen.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck disable=1090,2046,2086,1091 set -x set -e diff --git a/hack/ocm-minikube.sh b/hack/ocm-minikube.sh index 2702225594..f9b8865c91 100755 --- a/hack/ocm-minikube.sh +++ b/hack/ocm-minikube.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck disable=1090,1091,2046,2086 # open cluster management (ocm) hub and managed minikube kvm amd64 clusters deploy diff --git a/hack/olm.sh b/hack/olm.sh index 4326df6d56..1b4b46b89d 100644 --- a/hack/olm.sh +++ b/hack/olm.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck disable=1090,2086,1091 OLM_BASE_URL="https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.19.1" diff --git a/hack/podman-docker-install.sh b/hack/podman-docker-install.sh index a2d1295b61..8607f87517 100755 --- a/hack/podman-docker-install.sh +++ b/hack/podman-docker-install.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck disable=2046,2086 if ! command -v docker; then $(dirname ${0})/podman-install.sh diff --git a/hack/podman-docker-uninstall.sh b/hack/podman-docker-uninstall.sh index bbc134990f..889c9d9f5c 100755 --- a/hack/podman-docker-uninstall.sh +++ b/hack/podman-docker-uninstall.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck disable=2086 if test "$(file -h /usr/bin/docker)" = '/usr/bin/docker: symbolic link to /usr/bin/podman' then diff --git a/hack/podman-install.sh b/hack/podman-install.sh index 65642fede8..c0092f6ba8 100755 --- a/hack/podman-install.sh +++ b/hack/podman-install.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck disable=2086 if ! command -v podman; then # https://podman.io/getting-started/installation#linux-distributions diff --git a/hack/podman-uninstall.sh b/hack/podman-uninstall.sh index 306632986b..a43228ab9c 100755 --- a/hack/podman-uninstall.sh +++ b/hack/podman-uninstall.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck disable=2046,2086 if command -v podman; then $(dirname ${0})/podman-docker-uninstall.sh diff --git a/hack/pre-commit.sh b/hack/pre-commit.sh index 6666ad6caa..65be822a08 100755 --- a/hack/pre-commit.sh +++ b/hack/pre-commit.sh @@ -1,4 +1,8 @@ #! /bin/bash + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # vim: set ts=4 sw=4 et : # Usage: pre-commit.sh diff --git a/hack/rook-mirror-secret-template.yaml b/hack/rook-mirror-secret-template.yaml index 43dcbaa18b..30b20e118b 100644 --- a/hack/rook-mirror-secret-template.yaml +++ b/hack/rook-mirror-secret-template.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + --- apiVersion: v1 stringData: diff --git a/hack/setup-kind-cluster.sh b/hack/setup-kind-cluster.sh index e580343a01..77d1356a30 100755 --- a/hack/setup-kind-cluster.sh +++ b/hack/setup-kind-cluster.sh @@ -1,4 +1,8 @@ #! /bin/bash + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + set -e -o pipefail KIND_IMAGE="${KIND_IMAGE:-1.20.7@sha256:cbeaf907fc78ac97ce7b625e4bf0de16e3ea725daf6b04f930bd14c67c671ff9}" diff --git a/hack/shell_option_store_restore.sh b/hack/shell_option_store_restore.sh index bede3615a6..e399c4cb4e 100644 --- a/hack/shell_option_store_restore.sh +++ b/hack/shell_option_store_restore.sh @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck shell=sh disable=2086 shell_option_store() { diff --git a/hack/shio-demo.sh b/hack/shio-demo.sh index 879707d139..4e180a588f 100755 --- a/hack/shio-demo.sh +++ b/hack/shio-demo.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck disable=1090,2046,2086 set -e diff --git a/hack/test/0000_00_clusters.open-cluster-management.io_managedclusters.crd.yaml b/hack/test/0000_00_clusters.open-cluster-management.io_managedclusters.crd.yaml index 4173576f8c..2ba25f3961 100644 --- a/hack/test/0000_00_clusters.open-cluster-management.io_managedclusters.crd.yaml +++ b/hack/test/0000_00_clusters.open-cluster-management.io_managedclusters.crd.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: diff --git a/hack/test/0000_00_work.open-cluster-management.io_manifestworks.crd.yaml b/hack/test/0000_00_work.open-cluster-management.io_manifestworks.crd.yaml index 31c7394a21..12e6608b40 100644 --- a/hack/test/0000_00_work.open-cluster-management.io_manifestworks.crd.yaml +++ b/hack/test/0000_00_work.open-cluster-management.io_manifestworks.crd.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: diff --git a/hack/test/0000_01_addon.open-cluster-management.io_managedclusteraddons.crd.yaml b/hack/test/0000_01_addon.open-cluster-management.io_managedclusteraddons.crd.yaml index 614048d1ee..abc6de015b 100644 --- a/hack/test/0000_01_addon.open-cluster-management.io_managedclusteraddons.crd.yaml +++ b/hack/test/0000_01_addon.open-cluster-management.io_managedclusteraddons.crd.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: diff --git a/hack/test/apps.open-cluster-management.io_placementrules_crd.yaml b/hack/test/apps.open-cluster-management.io_placementrules_crd.yaml index 68c981b515..b2d773d324 100644 --- a/hack/test/apps.open-cluster-management.io_placementrules_crd.yaml +++ b/hack/test/apps.open-cluster-management.io_placementrules_crd.yaml @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 --- apiVersion: apiextensions.k8s.io/v1 diff --git a/hack/test/multicluster.x-k8s.io_serviceexports.yaml b/hack/test/multicluster.x-k8s.io_serviceexports.yaml index 8dda38c2f9..64fcd9d1b9 100644 --- a/hack/test/multicluster.x-k8s.io_serviceexports.yaml +++ b/hack/test/multicluster.x-k8s.io_serviceexports.yaml @@ -1,16 +1,7 @@ # Copyright 2020 The Kubernetes Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: diff --git a/hack/test/policy.open-cluster-management.io_placementbindings.yaml b/hack/test/policy.open-cluster-management.io_placementbindings.yaml index be8d923bc9..0315c6d348 100644 --- a/hack/test/policy.open-cluster-management.io_placementbindings.yaml +++ b/hack/test/policy.open-cluster-management.io_placementbindings.yaml @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 --- apiVersion: apiextensions.k8s.io/v1 diff --git a/hack/test/policy.open-cluster-management.io_policies.yaml b/hack/test/policy.open-cluster-management.io_policies.yaml index 35c9c4e141..230fe2eb6a 100644 --- a/hack/test/policy.open-cluster-management.io_policies.yaml +++ b/hack/test/policy.open-cluster-management.io_policies.yaml @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 --- apiVersion: apiextensions.k8s.io/v1 diff --git a/hack/test/replication.storage.openshift.io_volumereplicationclasses.yaml b/hack/test/replication.storage.openshift.io_volumereplicationclasses.yaml index 5057182960..d68009c73b 100644 --- a/hack/test/replication.storage.openshift.io_volumereplicationclasses.yaml +++ b/hack/test/replication.storage.openshift.io_volumereplicationclasses.yaml @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 --- apiVersion: apiextensions.k8s.io/v1 diff --git a/hack/test/replication.storage.openshift.io_volumereplications.yaml b/hack/test/replication.storage.openshift.io_volumereplications.yaml index bb24b40dc9..730430ffc9 100644 --- a/hack/test/replication.storage.openshift.io_volumereplications.yaml +++ b/hack/test/replication.storage.openshift.io_volumereplications.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/hack/test/snapshot.storage.k8s.io_volumesnapshotclasses.yaml b/hack/test/snapshot.storage.k8s.io_volumesnapshotclasses.yaml index 47e5fd3a60..f81ab188f9 100644 --- a/hack/test/snapshot.storage.k8s.io_volumesnapshotclasses.yaml +++ b/hack/test/snapshot.storage.k8s.io_volumesnapshotclasses.yaml @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 --- apiVersion: apiextensions.k8s.io/v1 diff --git a/hack/test/snapshot.storage.k8s.io_volumesnapshots.yaml b/hack/test/snapshot.storage.k8s.io_volumesnapshots.yaml index 1b41ff8bcf..c07c162d50 100644 --- a/hack/test/snapshot.storage.k8s.io_volumesnapshots.yaml +++ b/hack/test/snapshot.storage.k8s.io_volumesnapshots.yaml @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 --- apiVersion: apiextensions.k8s.io/v1 diff --git a/hack/test/velero.io_backups.yaml b/hack/test/velero.io_backups.yaml index fec76fbeee..bc0ba299ab 100644 --- a/hack/test/velero.io_backups.yaml +++ b/hack/test/velero.io_backups.yaml @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 --- apiVersion: apiextensions.k8s.io/v1 diff --git a/hack/test/velero.io_backupstoragelocations.yaml b/hack/test/velero.io_backupstoragelocations.yaml index 002126d046..e7ca3956eb 100644 --- a/hack/test/velero.io_backupstoragelocations.yaml +++ b/hack/test/velero.io_backupstoragelocations.yaml @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 --- apiVersion: apiextensions.k8s.io/v1 diff --git a/hack/test/velero.io_restores.yaml b/hack/test/velero.io_restores.yaml index 09df605e5c..a8dcf8a983 100644 --- a/hack/test/velero.io_restores.yaml +++ b/hack/test/velero.io_restores.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: diff --git a/hack/test/view.open-cluster-management.io_managedclusterviews.yaml b/hack/test/view.open-cluster-management.io_managedclusterviews.yaml index 29445cd3d1..7feeba8bda 100644 --- a/hack/test/view.open-cluster-management.io_managedclusterviews.yaml +++ b/hack/test/view.open-cluster-management.io_managedclusterviews.yaml @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 --- apiVersion: apiextensions.k8s.io/v1 diff --git a/hack/test/volsync.backube_replicationdestinations.yaml b/hack/test/volsync.backube_replicationdestinations.yaml index 3fbda1574e..8d1c36c8af 100644 --- a/hack/test/volsync.backube_replicationdestinations.yaml +++ b/hack/test/volsync.backube_replicationdestinations.yaml @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 --- apiVersion: apiextensions.k8s.io/v1 diff --git a/hack/test/volsync.backube_replicationsources.yaml b/hack/test/volsync.backube_replicationsources.yaml index 2dbdc2843c..7035dc7824 100644 --- a/hack/test/volsync.backube_replicationsources.yaml +++ b/hack/test/volsync.backube_replicationsources.yaml @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 --- apiVersion: apiextensions.k8s.io/v1 diff --git a/hack/true_if_exit_status_and_stderr.sh b/hack/true_if_exit_status_and_stderr.sh index 6ab0245ec6..3d63c2da5e 100644 --- a/hack/true_if_exit_status_and_stderr.sh +++ b/hack/true_if_exit_status_and_stderr.sh @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck shell=sh true_if_exit_status_and_stderr() { diff --git a/hack/uidmap-install.sh b/hack/uidmap-install.sh index 22b5dd8946..ed744587ee 100755 --- a/hack/uidmap-install.sh +++ b/hack/uidmap-install.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck disable=1091 if ! command -v newuidmap then diff --git a/hack/until_true_or_n.sh b/hack/until_true_or_n.sh index 4b03e7aaa7..97dc83dba7 100644 --- a/hack/until_true_or_n.sh +++ b/hack/until_true_or_n.sh @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck shell=sh disable=2086 until_true_or_n() { diff --git a/hack/velero-install.sh b/hack/velero-install.sh index 45ea86caa5..341c91af26 100755 --- a/hack/velero-install.sh +++ b/hack/velero-install.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck disable=2086 set -x set -e diff --git a/hack/velero-test.sh b/hack/velero-test.sh index 43f26630aa..1a88bd5ddb 100755 --- a/hack/velero-test.sh +++ b/hack/velero-test.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck disable=1090,2046,2086 set -e ramen_hack_directory_path_name=$(dirname $0) diff --git a/hack/velero-uninstall.sh b/hack/velero-uninstall.sh index 067235bf28..3dcbd21a3f 100755 --- a/hack/velero-uninstall.sh +++ b/hack/velero-uninstall.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + # shellcheck disable=2086 set -x set -e diff --git a/hack/yamlconfig.yaml b/hack/yamlconfig.yaml index baae962c82..e765a26375 100644 --- a/hack/yamlconfig.yaml +++ b/hack/yamlconfig.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: The RamenDR authors +# SPDX-License-Identifier: Apache-2.0 + --- # https://yamllint.readthedocs.io/en/stable/configuration.html diff --git a/main.go b/main.go index fc3e3faa0f..eaa77ecb3c 100644 --- a/main.go +++ b/main.go @@ -1,15 +1,6 @@ -/* -Copyright 2021 The RamenDR authors. -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. -*/ +// Copyright 2021 The RamenDR authors. +// SPDX-FileCopyrightText: The RamenDR authors +// SPDX-License-Identifier: Apache-2.0 package main