From 66026c7035f1872cc7bf1c01a154623eb51f727b Mon Sep 17 00:00:00 2001 From: Zeort Date: Wed, 25 Sep 2024 11:00:20 +0300 Subject: [PATCH] fix to become reuse compliant --- .reuse/dep5 | 37 ------------------- REUSE.toml | 11 ++++++ api/v1alpha1/cfapi_types.go | 5 +++ api/v1alpha1/managed_types.go | 5 +++ api/v1alpha1/status.go | 6 +++ api/v1alpha1/zz_generated.deepcopy.go | 5 +++ controllers/cfapi_auth.go | 6 +++ .../cfapi_controller_rendered_resources.go | 5 +++ ...fapi_controller_rendered_resources_test.go | 6 +++ controllers/suite_test.go | 5 +++ main.go | 5 +++ 11 files changed, 59 insertions(+), 37 deletions(-) delete mode 100755 .reuse/dep5 create mode 100644 REUSE.toml diff --git a/.reuse/dep5 b/.reuse/dep5 deleted file mode 100755 index 96d499f..0000000 --- a/.reuse/dep5 +++ /dev/null @@ -1,37 +0,0 @@ -Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ -Upstream-Name: -Upstream-Contact: -Source: -Disclaimer: The code in this project may include calls to APIs ("API Calls") of - SAP or third-party products or services developed outside of this project - ("External Products"). - "APIs" means application programming interfaces, as well as their respective - specifications and implementing code that allows software to communicate with - other software. - API Calls to External Products are not licensed under the open source license - that governs this project. The use of such API Calls and related External - Products are subject to applicable additional agreements with the relevant - provider of the External Products. In no event shall the open source license - that governs this project grant any rights in or to any External Products,or - alter, expand or supersede any terms of the applicable additional agreements. - If you have a valid license agreement with SAP for the use of a particular SAP - External Product, then you may make use of any API Calls included in this - project's code for that SAP External Product, subject to the terms of such - license agreement. If you do not have a valid license agreement for the use of - a particular SAP External Product, then you may only make use of any API Calls - in this project for that SAP External Product for your internal, non-productive - and non-commercial test and evaluation of such API Calls. Nothing herein grants - you any rights to use or access any SAP External Product, or provide any third - parties the right to use of access any SAP External Product, through API Calls. - -Files: -Copyright: SAP SE or an SAP affiliate company and contributors -License: Apache-2.0 - -Files: -Copyright: -License: - -Files: -Copyright: -License: \ No newline at end of file diff --git a/REUSE.toml b/REUSE.toml new file mode 100644 index 0000000..6ffdc4e --- /dev/null +++ b/REUSE.toml @@ -0,0 +1,11 @@ +version = 1 +SPDX-PackageName = "cfapi" +SPDX-PackageSupplier = "samir.zeort@sap.com" +SPDX-PackageDownloadLocation = "https://github.com/kyma-project/cfapi" +SPDX-PackageComment = "The code in this project may include calls to APIs (\"API Calls\") of\n SAP or third-party products or services developed outside of this project\n (\"External Products\").\n \"APIs\" means application programming interfaces, as well as their respective\n specifications and implementing code that allows software to communicate with\n other software.\n API Calls to External Products are not licensed under the open source license\n that governs this project. The use of such API Calls and related External\n Products are subject to applicable additional agreements with the relevant\n provider of the External Products. In no event shall the open source license\n that governs this project grant any rights in or to any External Products,or\n alter, expand or supersede any terms of the applicable additional agreements.\n If you have a valid license agreement with SAP for the use of a particular SAP\n External Product, then you may make use of any API Calls included in this\n project's code for that SAP External Product, subject to the terms of such\n license agreement. If you do not have a valid license agreement for the use of\n a particular SAP External Product, then you may only make use of any API Calls\n in this project for that SAP External Product for your internal, non-productive\n and non-commercial test and evaluation of such API Calls. Nothing herein grants\n you any rights to use or access any SAP External Product, or provide any third\n parties the right to use of access any SAP External Product, through API Calls." + +[[annotations]] +path = "**" +precedence = "aggregate" +SPDX-FileCopyrightText = "2023 SAP SE or an SAP affiliate company and Kyma contributors" +SPDX-License-Identifier = "Apache-2.0" diff --git a/api/v1alpha1/cfapi_types.go b/api/v1alpha1/cfapi_types.go index d218e26..d84b87d 100644 --- a/api/v1alpha1/cfapi_types.go +++ b/api/v1alpha1/cfapi_types.go @@ -13,6 +13,11 @@ 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: 2024 Samir Zeort + * + * SPDX-License-Identifier: Apache-2.0 + */ // Package v1alpha1 contains API Schema definitions for the component v1alpha1 API group // +kubebuilder:object:generate=true diff --git a/api/v1alpha1/managed_types.go b/api/v1alpha1/managed_types.go index b884364..7e50c7e 100644 --- a/api/v1alpha1/managed_types.go +++ b/api/v1alpha1/managed_types.go @@ -13,6 +13,11 @@ 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: 2024 Samir Zeort + * + * SPDX-License-Identifier: Apache-2.0 + */ // Package v1alpha1 contains API Schema definitions for the component v1alpha1 API group // +kubebuilder:object:generate=true diff --git a/api/v1alpha1/status.go b/api/v1alpha1/status.go index b23d056..af3b510 100644 --- a/api/v1alpha1/status.go +++ b/api/v1alpha1/status.go @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2024 Samir Zeort + * + * SPDX-License-Identifier: Apache-2.0 + */ + package v1alpha1 type State string diff --git a/api/v1alpha1/zz_generated.deepcopy.go b/api/v1alpha1/zz_generated.deepcopy.go index 7aea15b..24e5733 100644 --- a/api/v1alpha1/zz_generated.deepcopy.go +++ b/api/v1alpha1/zz_generated.deepcopy.go @@ -1,4 +1,9 @@ //go:build !ignore_autogenerated +/* + * SPDX-FileCopyrightText: 2024 Samir Zeort + * + * SPDX-License-Identifier: Apache-2.0 + */ /* Copyright 2022. diff --git a/controllers/cfapi_auth.go b/controllers/cfapi_auth.go index ede8d3b..135777c 100644 --- a/controllers/cfapi_auth.go +++ b/controllers/cfapi_auth.go @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2024 Samir Zeort + * + * SPDX-License-Identifier: Apache-2.0 + */ + package controllers import ( diff --git a/controllers/cfapi_controller_rendered_resources.go b/controllers/cfapi_controller_rendered_resources.go index 12c55e8..317ec4d 100644 --- a/controllers/cfapi_controller_rendered_resources.go +++ b/controllers/cfapi_controller_rendered_resources.go @@ -13,6 +13,11 @@ 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: 2024 Samir Zeort + * + * SPDX-License-Identifier: Apache-2.0 + */ package controllers diff --git a/controllers/cfapi_controller_rendered_resources_test.go b/controllers/cfapi_controller_rendered_resources_test.go index 9e7c277..f958333 100644 --- a/controllers/cfapi_controller_rendered_resources_test.go +++ b/controllers/cfapi_controller_rendered_resources_test.go @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2024 Samir Zeort + * + * SPDX-License-Identifier: Apache-2.0 + */ + package controllers_test import ( diff --git a/controllers/suite_test.go b/controllers/suite_test.go index 9edb32f..8edb879 100644 --- a/controllers/suite_test.go +++ b/controllers/suite_test.go @@ -13,6 +13,11 @@ 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: 2024 Samir Zeort + * + * SPDX-License-Identifier: Apache-2.0 + */ package controllers_test diff --git a/main.go b/main.go index 374303f..611d969 100644 --- a/main.go +++ b/main.go @@ -13,6 +13,11 @@ 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: 2024 Samir Zeort + * + * SPDX-License-Identifier: Apache-2.0 + */ package main