diff --git a/.reuse/dep5 b/.reuse/dep5 new file mode 100644 index 0000000..01cc9ea --- /dev/null +++ b/.reuse/dep5 @@ -0,0 +1,36 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: controller-utils +Upstream-Contact: IronCore authors +Source: https://github.com/ironcore-dev/controller-utils + +# -------------------------------------------------- +# source code + +Files: + .github/* + .gitignore + .golangci.yaml + CODEOWNERS + CODE_OF_CONDUCT.md + CONTRIBUTING.md + Makefile + go.mod + go.sum + testdata/bases/cm.yaml + testdata/bases/objects.yaml + testdata/kustomization.yaml + testdata/testmod1/go.mod + testdata/testmod2/go.mod +Copyright: 2023 SAP SE or an SAP affiliate company and IronCore contributors +License: Apache-2.0 + +# -------------------------------------------------- +# documentation + +Files: + README.md +Copyright: 2023 SAP SE or an SAP affiliate company and IronCore contributors +License: Apache-2.0 + +# -------------------------------------------------- +# source dependencies diff --git a/LICENSES/Apache-2.0.txt b/LICENSES/Apache-2.0.txt new file mode 100644 index 0000000..137069b --- /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 b1ca90c..966e66c 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ help: ## Display this help. .PHONY: add-license add-license: addlicense ## Add license headers to all go files. - find . -name '*.go' -exec $(ADDLICENSE) -c 'IronCore authors' {} + + find . -name '*.go' -exec $(ADDLICENSE) -f hack/license-header.txt {} + .PHONY: fmt fmt: goimports ## Run goimports against code. diff --git a/README.md b/README.md index e0161e7..6a83ffa 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,11 @@ # controller-utils +[![REUSE status](https://api.reuse.software/badge/github.com/ironcore-dev/controller-utils)](https://api.reuse.software/info/github.com/ironcore-dev/controller-utils) [![Go Report Card](https://goreportcard.com/badge/github.com/ironcore-dev/controller-utils)](https://goreportcard.com/report/github.com/ironcore-dev/controller-utils) [![Go Reference](https://pkg.go.dev/badge/github.com/ironcore-dev/controller-utils.svg)](https://pkg.go.dev/github.com/ironcore-dev/controller-utils) [![Test](https://github.com/ironcore-dev/controller-utils/actions/workflows/test.yml/badge.svg)](https://github.com/ironcore-dev/controller-utils/actions/workflows/test.yml) -[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://makeapullrequest.com) -[![GitHub License](https://img.shields.io/static/v1?label=License&message=Apache-2.0&color=blue&style=flat-square)](LICENSE) +[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://makeapullrequest.com) +[![GitHub License](https://img.shields.io/static/v1?label=License&message=Apache-2.0&color=blue)](LICENSE) ## Overview diff --git a/buildutils/alias.go b/buildutils/alias.go index d078b2a..c161e5f 100644 --- a/buildutils/alias.go +++ b/buildutils/alias.go @@ -1,16 +1,5 @@ -// Copyright 2022 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 package buildutils diff --git a/buildutils/buildutils.go b/buildutils/buildutils.go index 74c9393..8e11fb7 100644 --- a/buildutils/buildutils.go +++ b/buildutils/buildutils.go @@ -1,16 +1,5 @@ -// Copyright 2022 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 package buildutils diff --git a/buildutils/buildutils_suite_test.go b/buildutils/buildutils_suite_test.go index b6a20ba..471493a 100644 --- a/buildutils/buildutils_suite_test.go +++ b/buildutils/buildutils_suite_test.go @@ -1,16 +1,5 @@ -// Copyright 2022 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 package buildutils_test diff --git a/buildutils/buildutils_test.go b/buildutils/buildutils_test.go index 55382b9..7c221d4 100644 --- a/buildutils/buildutils_test.go +++ b/buildutils/buildutils_test.go @@ -1,16 +1,5 @@ -// Copyright 2022 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 package buildutils_test diff --git a/clientutils/clientutils.go b/clientutils/clientutils.go index ee50d0c..44c0cc2 100644 --- a/clientutils/clientutils.go +++ b/clientutils/clientutils.go @@ -1,16 +1,5 @@ -// Copyright 2021 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 // Package clientutils provides utilities for working with the client package of // controller-runtime. diff --git a/clientutils/clientutils_suite_test.go b/clientutils/clientutils_suite_test.go index 47a4a09..73f6b55 100644 --- a/clientutils/clientutils_suite_test.go +++ b/clientutils/clientutils_suite_test.go @@ -1,16 +1,5 @@ -// Copyright 2021 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 package clientutils_test diff --git a/clientutils/clientutils_test.go b/clientutils/clientutils_test.go index fdbd817..5f75794 100644 --- a/clientutils/clientutils_test.go +++ b/clientutils/clientutils_test.go @@ -1,16 +1,5 @@ -// Copyright 2021 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 package clientutils_test diff --git a/clientutils/fieldindexer.go b/clientutils/fieldindexer.go index d9a18de..76ad651 100644 --- a/clientutils/fieldindexer.go +++ b/clientutils/fieldindexer.go @@ -1,16 +1,5 @@ -// Copyright 2022 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 package clientutils diff --git a/clientutils/fieldindexer_test.go b/clientutils/fieldindexer_test.go index 87a748c..b68536a 100644 --- a/clientutils/fieldindexer_test.go +++ b/clientutils/fieldindexer_test.go @@ -1,16 +1,5 @@ -// Copyright 2021 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 package clientutils diff --git a/clientutils/objectkey.go b/clientutils/objectkey.go index 0f0fc97..9a5d328 100644 --- a/clientutils/objectkey.go +++ b/clientutils/objectkey.go @@ -1,16 +1,5 @@ -// Copyright 2022 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 package clientutils diff --git a/clientutils/objectkey_test.go b/clientutils/objectkey_test.go index 9b7f727..4446497 100644 --- a/clientutils/objectkey_test.go +++ b/clientutils/objectkey_test.go @@ -1,16 +1,5 @@ -// Copyright 2022 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 package clientutils_test diff --git a/clientutils/objectref.go b/clientutils/objectref.go index f058e25..f5a6167 100644 --- a/clientutils/objectref.go +++ b/clientutils/objectref.go @@ -1,16 +1,5 @@ -// Copyright 2021 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 package clientutils diff --git a/clientutils/objectref_test.go b/clientutils/objectref_test.go index 0354e5b..2c0ae5e 100644 --- a/clientutils/objectref_test.go +++ b/clientutils/objectref_test.go @@ -1,16 +1,5 @@ -// Copyright 2021 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 package clientutils diff --git a/cmdutils/switches/switches.go b/cmdutils/switches/switches.go index 2075aca..8bf5a60 100644 --- a/cmdutils/switches/switches.go +++ b/cmdutils/switches/switches.go @@ -1,16 +1,5 @@ -// Copyright 2021 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 // Package switches provides new type that implements flag.Value interface -- Switches. // It can be used for enabling/disabling controllers/webhooks in your controller manager. diff --git a/cmdutils/switches/switches_suite_test.go b/cmdutils/switches/switches_suite_test.go index 47ae18b..6a3a68c 100644 --- a/cmdutils/switches/switches_suite_test.go +++ b/cmdutils/switches/switches_suite_test.go @@ -1,16 +1,5 @@ -// Copyright 2021 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 package switches diff --git a/cmdutils/switches/switches_test.go b/cmdutils/switches/switches_test.go index 6d0c940..43163c8 100644 --- a/cmdutils/switches/switches_test.go +++ b/cmdutils/switches/switches_test.go @@ -1,16 +1,6 @@ -// Copyright 2021 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 + package switches import ( diff --git a/conditionutils/alias.go b/conditionutils/alias.go index 4194cde..d4eed9f 100644 --- a/conditionutils/alias.go +++ b/conditionutils/alias.go @@ -1,16 +1,5 @@ -// Copyright 2021 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 package conditionutils diff --git a/conditionutils/alias_test.go b/conditionutils/alias_test.go index 5f2c53b..2fb3a41 100644 --- a/conditionutils/alias_test.go +++ b/conditionutils/alias_test.go @@ -1,16 +1,5 @@ -// Copyright 2022 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 package conditionutils_test diff --git a/conditionutils/conditionutils.go b/conditionutils/conditionutils.go index a9142f6..f1000d0 100644 --- a/conditionutils/conditionutils.go +++ b/conditionutils/conditionutils.go @@ -1,16 +1,5 @@ -// Copyright 2021 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 // Package conditionutils simplifies condition handling with any structurally compatible condition // (comparable to a sort of duck-typing) via go reflection. diff --git a/conditionutils/conditionutils_suite_test.go b/conditionutils/conditionutils_suite_test.go index 64bd555..c1f88ed 100644 --- a/conditionutils/conditionutils_suite_test.go +++ b/conditionutils/conditionutils_suite_test.go @@ -1,16 +1,5 @@ -// Copyright 2021 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 package conditionutils_test diff --git a/conditionutils/conditionutils_test.go b/conditionutils/conditionutils_test.go index a1cfda4..1b1efb6 100644 --- a/conditionutils/conditionutils_test.go +++ b/conditionutils/conditionutils_test.go @@ -1,16 +1,5 @@ -// Copyright 2021 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 package conditionutils_test diff --git a/configutils/configutils.go b/configutils/configutils.go index 3ba9406..3992e0a 100644 --- a/configutils/configutils.go +++ b/configutils/configutils.go @@ -1,16 +1,5 @@ -// Copyright 2022 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 package configutils diff --git a/configutils/configutils_suite_test.go b/configutils/configutils_suite_test.go index 9d3f2a2..f0f33ee 100644 --- a/configutils/configutils_suite_test.go +++ b/configutils/configutils_suite_test.go @@ -1,16 +1,5 @@ -// Copyright 2022 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 package configutils diff --git a/configutils/configutils_test.go b/configutils/configutils_test.go index dccc14a..1a0cdd2 100644 --- a/configutils/configutils_test.go +++ b/configutils/configutils_test.go @@ -1,16 +1,5 @@ -// Copyright 2022 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 package configutils diff --git a/envtestutils/envtestutils.go b/envtestutils/envtestutils.go index 81f3dc4..f273b78 100644 --- a/envtestutils/envtestutils.go +++ b/envtestutils/envtestutils.go @@ -1,16 +1,5 @@ -// Copyright 2021 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 package envtestutils diff --git a/envtestutils/envtestutils_suite_test.go b/envtestutils/envtestutils_suite_test.go index b8b8e03..8994e99 100644 --- a/envtestutils/envtestutils_suite_test.go +++ b/envtestutils/envtestutils_suite_test.go @@ -1,16 +1,5 @@ -// Copyright 2021 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 package envtestutils diff --git a/envtestutils/envtestutils_test.go b/envtestutils/envtestutils_test.go index 4b00277..de8b6f5 100644 --- a/envtestutils/envtestutils_test.go +++ b/envtestutils/envtestutils_test.go @@ -1,16 +1,5 @@ -// Copyright 2021 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 package envtestutils diff --git a/hack/boilerplate.go.txt b/hack/boilerplate.go.txt index b67d85e..977222d 100644 --- a/hack/boilerplate.go.txt +++ b/hack/boilerplate.go.txt @@ -1,13 +1,2 @@ -// Copyright 2021 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 diff --git a/hack/license-header.txt b/hack/license-header.txt new file mode 100644 index 0000000..8d8a5f2 --- /dev/null +++ b/hack/license-header.txt @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and IronCore contributors +SPDX-License-Identifier: Apache-2.0 diff --git a/kustomizeutils/kustomizeutils.go b/kustomizeutils/kustomizeutils.go index 329cf00..a221acd 100644 --- a/kustomizeutils/kustomizeutils.go +++ b/kustomizeutils/kustomizeutils.go @@ -1,16 +1,5 @@ -// Copyright 2021 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 package kustomizeutils diff --git a/kustomizeutils/kustomizeutils_suite_test.go b/kustomizeutils/kustomizeutils_suite_test.go index a418263..f3cafeb 100644 --- a/kustomizeutils/kustomizeutils_suite_test.go +++ b/kustomizeutils/kustomizeutils_suite_test.go @@ -1,16 +1,5 @@ -// Copyright 2021 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 package kustomizeutils diff --git a/kustomizeutils/kustomizeutils_test.go b/kustomizeutils/kustomizeutils_test.go index cffdbab..221df81 100644 --- a/kustomizeutils/kustomizeutils_test.go +++ b/kustomizeutils/kustomizeutils_test.go @@ -1,16 +1,5 @@ -// Copyright 2021 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 package kustomizeutils diff --git a/metautils/metautils.go b/metautils/metautils.go index 38731f8..333ca50 100644 --- a/metautils/metautils.go +++ b/metautils/metautils.go @@ -1,16 +1,5 @@ -// Copyright 2021 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 // Package metautils provides utilities to work with objects on the meta layer. package metautils diff --git a/metautils/metautils_suite_test.go b/metautils/metautils_suite_test.go index 8dc937b..5a31925 100644 --- a/metautils/metautils_suite_test.go +++ b/metautils/metautils_suite_test.go @@ -1,16 +1,5 @@ -// Copyright 2021 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 package metautils_test diff --git a/metautils/metautils_test.go b/metautils/metautils_test.go index 3e25e36..2a7f947 100644 --- a/metautils/metautils_test.go +++ b/metautils/metautils_test.go @@ -1,16 +1,5 @@ -// Copyright 2021 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 package metautils_test diff --git a/mock/controller-runtime/client/doc.go b/mock/controller-runtime/client/doc.go index 55f9a86..6d16a15 100644 --- a/mock/controller-runtime/client/doc.go +++ b/mock/controller-runtime/client/doc.go @@ -1,16 +1,5 @@ -// Copyright 2021 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 // Package client contains mocks for controller-runtime's client package. // diff --git a/mock/controller-runtime/client/funcs.go b/mock/controller-runtime/client/funcs.go index 2be1534..d824534 100644 --- a/mock/controller-runtime/client/funcs.go +++ b/mock/controller-runtime/client/funcs.go @@ -1,16 +1,5 @@ -// // Copyright 2021 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// // SPDX-License-Identifier: Apache-2.0 // // Code generated by MockGen. DO NOT EDIT. diff --git a/mock/controller-runtime/client/mocks.go b/mock/controller-runtime/client/mocks.go index d384842..ce95caa 100644 --- a/mock/controller-runtime/client/mocks.go +++ b/mock/controller-runtime/client/mocks.go @@ -1,16 +1,5 @@ -// // Copyright 2021 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// // SPDX-License-Identifier: Apache-2.0 // // Code generated by MockGen. DO NOT EDIT. diff --git a/mock/controller-utils/clientutils/doc.go b/mock/controller-utils/clientutils/doc.go index 62630f0..0512ee6 100644 --- a/mock/controller-utils/clientutils/doc.go +++ b/mock/controller-utils/clientutils/doc.go @@ -1,16 +1,5 @@ -// Copyright 2021 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 // Package clientutils contains mocks for the actual clientutils package. // diff --git a/mock/controller-utils/clientutils/mocks.go b/mock/controller-utils/clientutils/mocks.go index ff41c3a..5dc8cc8 100644 --- a/mock/controller-utils/clientutils/mocks.go +++ b/mock/controller-utils/clientutils/mocks.go @@ -1,16 +1,5 @@ -// // Copyright 2021 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// // SPDX-License-Identifier: Apache-2.0 // // Code generated by MockGen. DO NOT EDIT. diff --git a/mock/controller-utils/metautils/doc.go b/mock/controller-utils/metautils/doc.go index e2388a7..4270a7a 100644 --- a/mock/controller-utils/metautils/doc.go +++ b/mock/controller-utils/metautils/doc.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 + //go:generate $MOCKGEN -copyright_file ../../../hack/boilerplate.go.txt -package metautils -destination=funcs.go github.com/ironcore-dev/controller-utils/mock/controller-utils/metautils EachListItemFunc package metautils diff --git a/mock/controller-utils/metautils/funcs.go b/mock/controller-utils/metautils/funcs.go index e8ea333..44a9e03 100644 --- a/mock/controller-utils/metautils/funcs.go +++ b/mock/controller-utils/metautils/funcs.go @@ -1,16 +1,5 @@ -// // Copyright 2021 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// // SPDX-License-Identifier: Apache-2.0 // // Code generated by MockGen. DO NOT EDIT. diff --git a/modutils/alias.go b/modutils/alias.go index 401005e..a46e50a 100644 --- a/modutils/alias.go +++ b/modutils/alias.go @@ -1,16 +1,5 @@ -// Copyright 2022 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 package modutils diff --git a/modutils/modutils.go b/modutils/modutils.go index fd43dda..5d0bbf8 100644 --- a/modutils/modutils.go +++ b/modutils/modutils.go @@ -1,16 +1,5 @@ -// Copyright 2022 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 package modutils diff --git a/modutils/modutils_suite_test.go b/modutils/modutils_suite_test.go index bd615b5..94f67de 100644 --- a/modutils/modutils_suite_test.go +++ b/modutils/modutils_suite_test.go @@ -1,16 +1,5 @@ -// Copyright 2022 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 package modutils_test diff --git a/modutils/modutils_test.go b/modutils/modutils_test.go index ea4288d..ec87f1f 100644 --- a/modutils/modutils_test.go +++ b/modutils/modutils_test.go @@ -1,16 +1,5 @@ -// Copyright 2022 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 package modutils_test diff --git a/testdata/testdata.go b/testdata/testdata.go index a4ad4cc..4a55df4 100644 --- a/testdata/testdata.go +++ b/testdata/testdata.go @@ -1,16 +1,5 @@ -// Copyright 2021 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 // Package testdata contains test data for controller-utils. package testdata diff --git a/testdata/testmod2/main.go b/testdata/testmod2/main.go index a514df2..3a2037a 100644 --- a/testdata/testmod2/main.go +++ b/testdata/testmod2/main.go @@ -1,16 +1,5 @@ -// Copyright 2023 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/testdata/testmod2/submain/main.go b/testdata/testmod2/submain/main.go index 81075fd..25dd49f 100644 --- a/testdata/testmod2/submain/main.go +++ b/testdata/testmod2/submain/main.go @@ -1,16 +1,5 @@ -// Copyright 2023 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/testutils/matchers/matchers.go b/testutils/matchers/matchers.go index bcae2f8..802cfb1 100644 --- a/testutils/matchers/matchers.go +++ b/testutils/matchers/matchers.go @@ -1,16 +1,5 @@ -// Copyright 2023 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 package matchers diff --git a/testutils/matchers/matchers_suite_test.go b/testutils/matchers/matchers_suite_test.go index e50705a..6f7e9ba 100644 --- a/testutils/matchers/matchers_suite_test.go +++ b/testutils/matchers/matchers_suite_test.go @@ -1,16 +1,5 @@ -// Copyright 2023 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 package matchers_test diff --git a/testutils/matchers/matchers_test.go b/testutils/matchers/matchers_test.go index e52f276..d4aebb6 100644 --- a/testutils/matchers/matchers_test.go +++ b/testutils/matchers/matchers_test.go @@ -1,16 +1,5 @@ -// Copyright 2023 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 package matchers_test diff --git a/testutils/testutils.go b/testutils/testutils.go index 0647746..51208f6 100644 --- a/testutils/testutils.go +++ b/testutils/testutils.go @@ -1,16 +1,5 @@ -// Copyright 2022 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 package testutils diff --git a/unstructuredutils/unstructuredutils.go b/unstructuredutils/unstructuredutils.go index de6cfef..06f4e13 100644 --- a/unstructuredutils/unstructuredutils.go +++ b/unstructuredutils/unstructuredutils.go @@ -1,16 +1,5 @@ -// Copyright 2021 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 // Package unstructuredutils provides utilities working with the unstructured.Unstructured type. package unstructuredutils diff --git a/unstructuredutils/unstructuredutils_suite_test.go b/unstructuredutils/unstructuredutils_suite_test.go index 9ff6bd3..32f37c2 100644 --- a/unstructuredutils/unstructuredutils_suite_test.go +++ b/unstructuredutils/unstructuredutils_suite_test.go @@ -1,16 +1,5 @@ -// Copyright 2021 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 package unstructuredutils_test diff --git a/unstructuredutils/unstructuredutils_test.go b/unstructuredutils/unstructuredutils_test.go index e93afea..3703cef 100644 --- a/unstructuredutils/unstructuredutils_test.go +++ b/unstructuredutils/unstructuredutils_test.go @@ -1,16 +1,5 @@ -// Copyright 2021 IronCore 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: 2023 SAP SE or an SAP affiliate company and IronCore contributors +// SPDX-License-Identifier: Apache-2.0 package unstructuredutils_test