diff --git a/LICENSE b/LICENSE index e55f9f08..261eeb9e 100644 --- a/LICENSE +++ b/LICENSE @@ -1,35 +1,201 @@ -Copyright The Cryostat Authors - -The Universal Permissive License (UPL), Version 1.0 - -Subject to the condition set forth below, permission is hereby granted to any -person obtaining a copy of this software, associated documentation and/or data -(collectively the "Software"), free of charge and under any and all copyright -rights in the Software, and any and all patent rights owned or freely -licensable by each licensor hereunder covering either (i) the unmodified -Software as contributed to or provided by such licensor, or (ii) the Larger -Works (as defined below), to deal in both - -(a) the Software, and -(b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -one is included with the Software (each a "Larger Work" to which the Software -is contributed by such licensors), - -without restriction, including without limitation the rights to copy, create -derivative works of, display, perform, and distribute the Software and make, -use, sell, offer for sale, import, export, have made, and have sold the -Software and the Larger Work(s), and to sublicense the foregoing rights on -either these or other terms. - -This license is subject to the following condition: -The above copyright notice and either this complete permission notice or at -a minimum a reference to the UPL must be included in all copies or -substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. + 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 ac79b278..09ee3ec3 100644 --- a/Makefile +++ b/Makefile @@ -76,7 +76,7 @@ CERT_MANAGER_MANIFEST ?= \ KUSTOMIZE_VERSION ?= 3.8.7 CONTROLLER_TOOLS_VERSION ?= 0.11.1 -ADDLICENSE_VERSION ?= 1.0.0 +GOLICENSE_VERSION ?= 1.29.0 OPM_VERSION ?= 1.23.0 # ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary. ENVTEST_K8S_VERSION ?= 1.26 @@ -245,10 +245,20 @@ generate: controller-gen # Check and add (if missing) license header LICENSE_FILE = $(shell pwd)/LICENSE GO_PACKAGES := $(shell go list -test -f '{{.Dir}}' ./... | sed -e "s|^$$(pwd)||" | cut -d/ -f2 | sort -u) +.PHONY: check-license +check-license: golicense + @echo "Checking license..." + $(GOLICENSE) --config=go-license.yml --verify $(shell find ${GO_PACKAGES} -name "*.go") + .PHONY: add-license -add-license: addlicense - @echo "Checking/Adding license..." - $(ADDLICENSE) -v -f $(LICENSE_FILE) ${GO_PACKAGES} +add-license: golicense + @echo "Adding license..." + $(GOLICENSE) --config=go-license.yml $(shell find ${GO_PACKAGES} -name "*.go") + +.PHONY: remove-license +remove-license: golicense + @echo "Removing license..." + $(GOLICENSE) --config=go-license.yml --remove $(shell find ${GO_PACKAGES} -name "*.go") # Build the OCI image .PHONY: oci-build @@ -329,12 +339,12 @@ $(KUSTOMIZE): local-bin fi test -s $(KUSTOMIZE) || { curl -Ss $(KUSTOMIZE_INSTALL_SCRIPT) | bash -s -- $(subst v,,$(KUSTOMIZE_VERSION)) $(LOCALBIN); } -# Download addlicense locally if necessary -ADDLICENSE = $(LOCALBIN)/addlicense -.PHONY: addlicense -addlicense: $(ADDLICENSE) -$(ADDLICENSE): local-bin - test -s $(ADDLICENSE) || GOBIN=$(LOCALBIN) go install github.com/google/addlicense@v$(ADDLICENSE_VERSION) +# Download go-license locally if necessary +GOLICENSE = $(LOCALBIN)/go-license +.PHONY: golicense +golicense: $(GOLICENSE) +$(GOLICENSE): local-bin + test -s $(GOLICENSE) || GOBIN=$(LOCALBIN) go install github.com/palantir/go-license@v$(GOLICENSE_VERSION) # Download setup-envtest locally if necessary ENVTEST = $(LOCALBIN)/setup-envtest diff --git a/api/v1beta1/clustercryostat_types.go b/api/v1beta1/clustercryostat_types.go index 1317f1fb..39190d9b 100644 --- a/api/v1beta1/clustercryostat_types.go +++ b/api/v1beta1/clustercryostat_types.go @@ -1,38 +1,16 @@ -// Copyright The Cryostat Authors +// Copyright The Cryostat Authors. // -// The Universal Permissive License (UPL), Version 1.0 +// 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 // -// Subject to the condition set forth below, permission is hereby granted to any -// person obtaining a copy of this software, associated documentation and/or data -// (collectively the "Software"), free of charge and under any and all copyright -// rights in the Software, and any and all patent rights owned or freely -// licensable by each licensor hereunder covering either (i) the unmodified -// Software as contributed to or provided by such licensor, or (ii) the Larger -// Works (as defined below), to deal in both +// http://www.apache.org/licenses/LICENSE-2.0 // -// (a) the Software, and -// (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -// one is included with the Software (each a "Larger Work" to which the Software -// is contributed by such licensors), -// -// without restriction, including without limitation the rights to copy, create -// derivative works of, display, perform, and distribute the Software and make, -// use, sell, offer for sale, import, export, have made, and have sold the -// Software and the Larger Work(s), and to sublicense the foregoing rights on -// either these or other terms. -// -// This license is subject to the following condition: -// The above copyright notice and either this complete permission notice or at -// a minimum a reference to the UPL must be included in all copies or -// substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// 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. package v1beta1 diff --git a/api/v1beta1/cryostat_types.go b/api/v1beta1/cryostat_types.go index fe562481..1bdbb34a 100644 --- a/api/v1beta1/cryostat_types.go +++ b/api/v1beta1/cryostat_types.go @@ -1,38 +1,16 @@ -// Copyright The Cryostat Authors +// Copyright The Cryostat Authors. // -// The Universal Permissive License (UPL), Version 1.0 +// 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 // -// Subject to the condition set forth below, permission is hereby granted to any -// person obtaining a copy of this software, associated documentation and/or data -// (collectively the "Software"), free of charge and under any and all copyright -// rights in the Software, and any and all patent rights owned or freely -// licensable by each licensor hereunder covering either (i) the unmodified -// Software as contributed to or provided by such licensor, or (ii) the Larger -// Works (as defined below), to deal in both +// http://www.apache.org/licenses/LICENSE-2.0 // -// (a) the Software, and -// (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -// one is included with the Software (each a "Larger Work" to which the Software -// is contributed by such licensors), -// -// without restriction, including without limitation the rights to copy, create -// derivative works of, display, perform, and distribute the Software and make, -// use, sell, offer for sale, import, export, have made, and have sold the -// Software and the Larger Work(s), and to sublicense the foregoing rights on -// either these or other terms. -// -// This license is subject to the following condition: -// The above copyright notice and either this complete permission notice or at -// a minimum a reference to the UPL must be included in all copies or -// substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// 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. package v1beta1 diff --git a/api/v1beta1/groupversion_info.go b/api/v1beta1/groupversion_info.go index 0b18daf5..5e00450e 100644 --- a/api/v1beta1/groupversion_info.go +++ b/api/v1beta1/groupversion_info.go @@ -1,38 +1,16 @@ -// Copyright The Cryostat Authors +// Copyright The Cryostat Authors. // -// The Universal Permissive License (UPL), Version 1.0 +// 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 // -// Subject to the condition set forth below, permission is hereby granted to any -// person obtaining a copy of this software, associated documentation and/or data -// (collectively the "Software"), free of charge and under any and all copyright -// rights in the Software, and any and all patent rights owned or freely -// licensable by each licensor hereunder covering either (i) the unmodified -// Software as contributed to or provided by such licensor, or (ii) the Larger -// Works (as defined below), to deal in both +// http://www.apache.org/licenses/LICENSE-2.0 // -// (a) the Software, and -// (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -// one is included with the Software (each a "Larger Work" to which the Software -// is contributed by such licensors), -// -// without restriction, including without limitation the rights to copy, create -// derivative works of, display, perform, and distribute the Software and make, -// use, sell, offer for sale, import, export, have made, and have sold the -// Software and the Larger Work(s), and to sublicense the foregoing rights on -// either these or other terms. -// -// This license is subject to the following condition: -// The above copyright notice and either this complete permission notice or at -// a minimum a reference to the UPL must be included in all copies or -// substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// 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. // Package v1beta1 contains API Schema definitions for the operator v1beta1 API group // +kubebuilder:object:generate=true diff --git a/api/v1beta1/zz_generated.deepcopy.go b/api/v1beta1/zz_generated.deepcopy.go index 53a48eac..aea1e737 100644 --- a/api/v1beta1/zz_generated.deepcopy.go +++ b/api/v1beta1/zz_generated.deepcopy.go @@ -1,41 +1,23 @@ //go:build !ignore_autogenerated // +build !ignore_autogenerated -// Copyright The Cryostat Authors +// Copyright The Cryostat Authors. // -// The Universal Permissive License (UPL), Version 1.0 +// 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 // -// Subject to the condition set forth below, permission is hereby granted to any -// person obtaining a copy of this software, associated documentation and/or data -// (collectively the "Software"), free of charge and under any and all copyright -// rights in the Software, and any and all patent rights owned or freely -// licensable by each licensor hereunder covering either (i) the unmodified -// Software as contributed to or provided by such licensor, or (ii) the Larger -// Works (as defined below), to deal in both +// http://www.apache.org/licenses/LICENSE-2.0 // -// (a) the Software, and -// (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -// one is included with the Software (each a "Larger Work" to which the Software -// is contributed by such licensors), -// -// without restriction, including without limitation the rights to copy, create -// derivative works of, display, perform, and distribute the Software and make, -// use, sell, offer for sale, import, export, have made, and have sold the -// Software and the Larger Work(s), and to sublicense the foregoing rights on -// either these or other terms. -// -// This license is subject to the following condition: -// The above copyright notice and either this complete permission notice or at -// a minimum a reference to the UPL must be included in all copies or -// substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// 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. + +// Package v1beta1 contains API Schema definitions for the operator v1beta1 API group +// +kubebuilder:object:generate=true +// +groupName=operator.cryostat.io // Code generated by controller-gen. DO NOT EDIT. diff --git a/go-license.yml b/go-license.yml new file mode 100644 index 00000000..2a9d2d95 --- /dev/null +++ b/go-license.yml @@ -0,0 +1,18 @@ +header: | + // Copyright The Cryostat 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. + +exclude: + names: + - '.*generated.*' diff --git a/hack/boilerplate.go.txt b/hack/boilerplate.go.txt index 4ae4b2e3..d9684829 100644 --- a/hack/boilerplate.go.txt +++ b/hack/boilerplate.go.txt @@ -1,35 +1,13 @@ -// Copyright The Cryostat Authors +// Copyright The Cryostat Authors. // -// The Universal Permissive License (UPL), Version 1.0 +// 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 // -// Subject to the condition set forth below, permission is hereby granted to any -// person obtaining a copy of this software, associated documentation and/or data -// (collectively the "Software"), free of charge and under any and all copyright -// rights in the Software, and any and all patent rights owned or freely -// licensable by each licensor hereunder covering either (i) the unmodified -// Software as contributed to or provided by such licensor, or (ii) the Larger -// Works (as defined below), to deal in both +// http://www.apache.org/licenses/LICENSE-2.0 // -// (a) the Software, and -// (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -// one is included with the Software (each a "Larger Work" to which the Software -// is contributed by such licensors), -// -// without restriction, including without limitation the rights to copy, create -// derivative works of, display, perform, and distribute the Software and make, -// use, sell, offer for sale, import, export, have made, and have sold the -// Software and the Larger Work(s), and to sublicense the foregoing rights on -// either these or other terms. -// -// This license is subject to the following condition: -// The above copyright notice and either this complete permission notice or at -// a minimum a reference to the UPL must be included in all copies or -// substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// 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/internal/controllers/certmanager.go b/internal/controllers/certmanager.go index 99e8e96f..93bdf044 100644 --- a/internal/controllers/certmanager.go +++ b/internal/controllers/certmanager.go @@ -1,38 +1,16 @@ -// Copyright The Cryostat Authors +// Copyright The Cryostat Authors. // -// The Universal Permissive License (UPL), Version 1.0 +// 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 // -// Subject to the condition set forth below, permission is hereby granted to any -// person obtaining a copy of this software, associated documentation and/or data -// (collectively the "Software"), free of charge and under any and all copyright -// rights in the Software, and any and all patent rights owned or freely -// licensable by each licensor hereunder covering either (i) the unmodified -// Software as contributed to or provided by such licensor, or (ii) the Larger -// Works (as defined below), to deal in both +// http://www.apache.org/licenses/LICENSE-2.0 // -// (a) the Software, and -// (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -// one is included with the Software (each a "Larger Work" to which the Software -// is contributed by such licensors), -// -// without restriction, including without limitation the rights to copy, create -// derivative works of, display, perform, and distribute the Software and make, -// use, sell, offer for sale, import, export, have made, and have sold the -// Software and the Larger Work(s), and to sublicense the foregoing rights on -// either these or other terms. -// -// This license is subject to the following condition: -// The above copyright notice and either this complete permission notice or at -// a minimum a reference to the UPL must be included in all copies or -// substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// 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. package controllers diff --git a/internal/controllers/clustercryostat_controller.go b/internal/controllers/clustercryostat_controller.go index 4042e9a9..cdb84e4a 100644 --- a/internal/controllers/clustercryostat_controller.go +++ b/internal/controllers/clustercryostat_controller.go @@ -1,38 +1,16 @@ -// Copyright The Cryostat Authors +// Copyright The Cryostat Authors. // -// The Universal Permissive License (UPL), Version 1.0 +// 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 // -// Subject to the condition set forth below, permission is hereby granted to any -// person obtaining a copy of this software, associated documentation and/or data -// (collectively the "Software"), free of charge and under any and all copyright -// rights in the Software, and any and all patent rights owned or freely -// licensable by each licensor hereunder covering either (i) the unmodified -// Software as contributed to or provided by such licensor, or (ii) the Larger -// Works (as defined below), to deal in both +// http://www.apache.org/licenses/LICENSE-2.0 // -// (a) the Software, and -// (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -// one is included with the Software (each a "Larger Work" to which the Software -// is contributed by such licensors), -// -// without restriction, including without limitation the rights to copy, create -// derivative works of, display, perform, and distribute the Software and make, -// use, sell, offer for sale, import, export, have made, and have sold the -// Software and the Larger Work(s), and to sublicense the foregoing rights on -// either these or other terms. -// -// This license is subject to the following condition: -// The above copyright notice and either this complete permission notice or at -// a minimum a reference to the UPL must be included in all copies or -// substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// 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. package controllers diff --git a/internal/controllers/clustercryostat_controller_test.go b/internal/controllers/clustercryostat_controller_test.go index b75ff311..51ef112f 100644 --- a/internal/controllers/clustercryostat_controller_test.go +++ b/internal/controllers/clustercryostat_controller_test.go @@ -1,38 +1,16 @@ -// Copyright The Cryostat Authors +// Copyright The Cryostat Authors. // -// The Universal Permissive License (UPL), Version 1.0 +// 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 // -// Subject to the condition set forth below, permission is hereby granted to any -// person obtaining a copy of this software, associated documentation and/or data -// (collectively the "Software"), free of charge and under any and all copyright -// rights in the Software, and any and all patent rights owned or freely -// licensable by each licensor hereunder covering either (i) the unmodified -// Software as contributed to or provided by such licensor, or (ii) the Larger -// Works (as defined below), to deal in both +// http://www.apache.org/licenses/LICENSE-2.0 // -// (a) the Software, and -// (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -// one is included with the Software (each a "Larger Work" to which the Software -// is contributed by such licensors), -// -// without restriction, including without limitation the rights to copy, create -// derivative works of, display, perform, and distribute the Software and make, -// use, sell, offer for sale, import, export, have made, and have sold the -// Software and the Larger Work(s), and to sublicense the foregoing rights on -// either these or other terms. -// -// This license is subject to the following condition: -// The above copyright notice and either this complete permission notice or at -// a minimum a reference to the UPL must be included in all copies or -// substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// 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. package controllers_test diff --git a/internal/controllers/common/common_utils.go b/internal/controllers/common/common_utils.go index 13fcc2ae..3c0cf3ea 100644 --- a/internal/controllers/common/common_utils.go +++ b/internal/controllers/common/common_utils.go @@ -1,38 +1,16 @@ -// Copyright The Cryostat Authors +// Copyright The Cryostat Authors. // -// The Universal Permissive License (UPL), Version 1.0 +// 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 // -// Subject to the condition set forth below, permission is hereby granted to any -// person obtaining a copy of this software, associated documentation and/or data -// (collectively the "Software"), free of charge and under any and all copyright -// rights in the Software, and any and all patent rights owned or freely -// licensable by each licensor hereunder covering either (i) the unmodified -// Software as contributed to or provided by such licensor, or (ii) the Larger -// Works (as defined below), to deal in both +// http://www.apache.org/licenses/LICENSE-2.0 // -// (a) the Software, and -// (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -// one is included with the Software (each a "Larger Work" to which the Software -// is contributed by such licensors), -// -// without restriction, including without limitation the rights to copy, create -// derivative works of, display, perform, and distribute the Software and make, -// use, sell, offer for sale, import, export, have made, and have sold the -// Software and the Larger Work(s), and to sublicense the foregoing rights on -// either these or other terms. -// -// This license is subject to the following condition: -// The above copyright notice and either this complete permission notice or at -// a minimum a reference to the UPL must be included in all copies or -// substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// 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. package common diff --git a/internal/controllers/common/finalizer_utils.go b/internal/controllers/common/finalizer_utils.go index 17ba54de..dc36890f 100644 --- a/internal/controllers/common/finalizer_utils.go +++ b/internal/controllers/common/finalizer_utils.go @@ -1,38 +1,16 @@ -// Copyright The Cryostat Authors +// Copyright The Cryostat Authors. // -// The Universal Permissive License (UPL), Version 1.0 +// 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 // -// Subject to the condition set forth below, permission is hereby granted to any -// person obtaining a copy of this software, associated documentation and/or data -// (collectively the "Software"), free of charge and under any and all copyright -// rights in the Software, and any and all patent rights owned or freely -// licensable by each licensor hereunder covering either (i) the unmodified -// Software as contributed to or provided by such licensor, or (ii) the Larger -// Works (as defined below), to deal in both +// http://www.apache.org/licenses/LICENSE-2.0 // -// (a) the Software, and -// (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -// one is included with the Software (each a "Larger Work" to which the Software -// is contributed by such licensors), -// -// without restriction, including without limitation the rights to copy, create -// derivative works of, display, perform, and distribute the Software and make, -// use, sell, offer for sale, import, export, have made, and have sold the -// Software and the Larger Work(s), and to sublicense the foregoing rights on -// either these or other terms. -// -// This license is subject to the following condition: -// The above copyright notice and either this complete permission notice or at -// a minimum a reference to the UPL must be included in all copies or -// substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// 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. package common diff --git a/internal/controllers/common/resource_definitions/certificates.go b/internal/controllers/common/resource_definitions/certificates.go index 75e778de..3d3dd076 100644 --- a/internal/controllers/common/resource_definitions/certificates.go +++ b/internal/controllers/common/resource_definitions/certificates.go @@ -1,38 +1,16 @@ -// Copyright The Cryostat Authors +// Copyright The Cryostat Authors. // -// The Universal Permissive License (UPL), Version 1.0 +// 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 // -// Subject to the condition set forth below, permission is hereby granted to any -// person obtaining a copy of this software, associated documentation and/or data -// (collectively the "Software"), free of charge and under any and all copyright -// rights in the Software, and any and all patent rights owned or freely -// licensable by each licensor hereunder covering either (i) the unmodified -// Software as contributed to or provided by such licensor, or (ii) the Larger -// Works (as defined below), to deal in both +// http://www.apache.org/licenses/LICENSE-2.0 // -// (a) the Software, and -// (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -// one is included with the Software (each a "Larger Work" to which the Software -// is contributed by such licensors), -// -// without restriction, including without limitation the rights to copy, create -// derivative works of, display, perform, and distribute the Software and make, -// use, sell, offer for sale, import, export, have made, and have sold the -// Software and the Larger Work(s), and to sublicense the foregoing rights on -// either these or other terms. -// -// This license is subject to the following condition: -// The above copyright notice and either this complete permission notice or at -// a minimum a reference to the UPL must be included in all copies or -// substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// 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. package resource_definitions diff --git a/internal/controllers/common/resource_definitions/resource_definitions.go b/internal/controllers/common/resource_definitions/resource_definitions.go index b8ea4846..1a947033 100644 --- a/internal/controllers/common/resource_definitions/resource_definitions.go +++ b/internal/controllers/common/resource_definitions/resource_definitions.go @@ -1,38 +1,16 @@ -// Copyright The Cryostat Authors +// Copyright The Cryostat Authors. // -// The Universal Permissive License (UPL), Version 1.0 +// 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 // -// Subject to the condition set forth below, permission is hereby granted to any -// person obtaining a copy of this software, associated documentation and/or data -// (collectively the "Software"), free of charge and under any and all copyright -// rights in the Software, and any and all patent rights owned or freely -// licensable by each licensor hereunder covering either (i) the unmodified -// Software as contributed to or provided by such licensor, or (ii) the Larger -// Works (as defined below), to deal in both +// http://www.apache.org/licenses/LICENSE-2.0 // -// (a) the Software, and -// (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -// one is included with the Software (each a "Larger Work" to which the Software -// is contributed by such licensors), -// -// without restriction, including without limitation the rights to copy, create -// derivative works of, display, perform, and distribute the Software and make, -// use, sell, offer for sale, import, export, have made, and have sold the -// Software and the Larger Work(s), and to sublicense the foregoing rights on -// either these or other terms. -// -// This license is subject to the following condition: -// The above copyright notice and either this complete permission notice or at -// a minimum a reference to the UPL must be included in all copies or -// substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// 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. package resource_definitions diff --git a/internal/controllers/common/tls.go b/internal/controllers/common/tls.go index 80020623..793c6217 100644 --- a/internal/controllers/common/tls.go +++ b/internal/controllers/common/tls.go @@ -1,38 +1,16 @@ -// Copyright The Cryostat Authors +// Copyright The Cryostat Authors. // -// The Universal Permissive License (UPL), Version 1.0 +// 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 // -// Subject to the condition set forth below, permission is hereby granted to any -// person obtaining a copy of this software, associated documentation and/or data -// (collectively the "Software"), free of charge and under any and all copyright -// rights in the Software, and any and all patent rights owned or freely -// licensable by each licensor hereunder covering either (i) the unmodified -// Software as contributed to or provided by such licensor, or (ii) the Larger -// Works (as defined below), to deal in both +// http://www.apache.org/licenses/LICENSE-2.0 // -// (a) the Software, and -// (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -// one is included with the Software (each a "Larger Work" to which the Software -// is contributed by such licensors), -// -// without restriction, including without limitation the rights to copy, create -// derivative works of, display, perform, and distribute the Software and make, -// use, sell, offer for sale, import, export, have made, and have sold the -// Software and the Larger Work(s), and to sublicense the foregoing rights on -// either these or other terms. -// -// This license is subject to the following condition: -// The above copyright notice and either this complete permission notice or at -// a minimum a reference to the UPL must be included in all copies or -// substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// 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. package common diff --git a/internal/controllers/configmaps.go b/internal/controllers/configmaps.go index a18c418c..73e6c700 100644 --- a/internal/controllers/configmaps.go +++ b/internal/controllers/configmaps.go @@ -1,38 +1,16 @@ -// Copyright The Cryostat Authors +// Copyright The Cryostat Authors. // -// The Universal Permissive License (UPL), Version 1.0 +// 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 // -// Subject to the condition set forth below, permission is hereby granted to any -// person obtaining a copy of this software, associated documentation and/or data -// (collectively the "Software"), free of charge and under any and all copyright -// rights in the Software, and any and all patent rights owned or freely -// licensable by each licensor hereunder covering either (i) the unmodified -// Software as contributed to or provided by such licensor, or (ii) the Larger -// Works (as defined below), to deal in both +// http://www.apache.org/licenses/LICENSE-2.0 // -// (a) the Software, and -// (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -// one is included with the Software (each a "Larger Work" to which the Software -// is contributed by such licensors), -// -// without restriction, including without limitation the rights to copy, create -// derivative works of, display, perform, and distribute the Software and make, -// use, sell, offer for sale, import, export, have made, and have sold the -// Software and the Larger Work(s), and to sublicense the foregoing rights on -// either these or other terms. -// -// This license is subject to the following condition: -// The above copyright notice and either this complete permission notice or at -// a minimum a reference to the UPL must be included in all copies or -// substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// 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. package controllers diff --git a/internal/controllers/constants/constants.go b/internal/controllers/constants/constants.go index 5ffa45d0..5a68859b 100644 --- a/internal/controllers/constants/constants.go +++ b/internal/controllers/constants/constants.go @@ -1,38 +1,16 @@ -// Copyright The Cryostat Authors +// Copyright The Cryostat Authors. // -// The Universal Permissive License (UPL), Version 1.0 +// 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 // -// Subject to the condition set forth below, permission is hereby granted to any -// person obtaining a copy of this software, associated documentation and/or data -// (collectively the "Software"), free of charge and under any and all copyright -// rights in the Software, and any and all patent rights owned or freely -// licensable by each licensor hereunder covering either (i) the unmodified -// Software as contributed to or provided by such licensor, or (ii) the Larger -// Works (as defined below), to deal in both +// http://www.apache.org/licenses/LICENSE-2.0 // -// (a) the Software, and -// (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -// one is included with the Software (each a "Larger Work" to which the Software -// is contributed by such licensors), -// -// without restriction, including without limitation the rights to copy, create -// derivative works of, display, perform, and distribute the Software and make, -// use, sell, offer for sale, import, export, have made, and have sold the -// Software and the Larger Work(s), and to sublicense the foregoing rights on -// either these or other terms. -// -// This license is subject to the following condition: -// The above copyright notice and either this complete permission notice or at -// a minimum a reference to the UPL must be included in all copies or -// substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// 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. package constants diff --git a/internal/controllers/cryostat_controller.go b/internal/controllers/cryostat_controller.go index 8f53decb..ee07fd49 100644 --- a/internal/controllers/cryostat_controller.go +++ b/internal/controllers/cryostat_controller.go @@ -1,38 +1,16 @@ -// Copyright The Cryostat Authors +// Copyright The Cryostat Authors. // -// The Universal Permissive License (UPL), Version 1.0 +// 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 // -// Subject to the condition set forth below, permission is hereby granted to any -// person obtaining a copy of this software, associated documentation and/or data -// (collectively the "Software"), free of charge and under any and all copyright -// rights in the Software, and any and all patent rights owned or freely -// licensable by each licensor hereunder covering either (i) the unmodified -// Software as contributed to or provided by such licensor, or (ii) the Larger -// Works (as defined below), to deal in both +// http://www.apache.org/licenses/LICENSE-2.0 // -// (a) the Software, and -// (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -// one is included with the Software (each a "Larger Work" to which the Software -// is contributed by such licensors), -// -// without restriction, including without limitation the rights to copy, create -// derivative works of, display, perform, and distribute the Software and make, -// use, sell, offer for sale, import, export, have made, and have sold the -// Software and the Larger Work(s), and to sublicense the foregoing rights on -// either these or other terms. -// -// This license is subject to the following condition: -// The above copyright notice and either this complete permission notice or at -// a minimum a reference to the UPL must be included in all copies or -// substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// 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. package controllers diff --git a/internal/controllers/cryostat_controller_test.go b/internal/controllers/cryostat_controller_test.go index 479a1215..e5a910dc 100644 --- a/internal/controllers/cryostat_controller_test.go +++ b/internal/controllers/cryostat_controller_test.go @@ -1,38 +1,16 @@ -// Copyright The Cryostat Authors +// Copyright The Cryostat Authors. // -// The Universal Permissive License (UPL), Version 1.0 +// 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 // -// Subject to the condition set forth below, permission is hereby granted to any -// person obtaining a copy of this software, associated documentation and/or data -// (collectively the "Software"), free of charge and under any and all copyright -// rights in the Software, and any and all patent rights owned or freely -// licensable by each licensor hereunder covering either (i) the unmodified -// Software as contributed to or provided by such licensor, or (ii) the Larger -// Works (as defined below), to deal in both +// http://www.apache.org/licenses/LICENSE-2.0 // -// (a) the Software, and -// (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -// one is included with the Software (each a "Larger Work" to which the Software -// is contributed by such licensors), -// -// without restriction, including without limitation the rights to copy, create -// derivative works of, display, perform, and distribute the Software and make, -// use, sell, offer for sale, import, export, have made, and have sold the -// Software and the Larger Work(s), and to sublicense the foregoing rights on -// either these or other terms. -// -// This license is subject to the following condition: -// The above copyright notice and either this complete permission notice or at -// a minimum a reference to the UPL must be included in all copies or -// substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// 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. package controllers_test diff --git a/internal/controllers/ingresses.go b/internal/controllers/ingresses.go index f2376e4b..a07a7c37 100644 --- a/internal/controllers/ingresses.go +++ b/internal/controllers/ingresses.go @@ -1,38 +1,16 @@ -// Copyright The Cryostat Authors +// Copyright The Cryostat Authors. // -// The Universal Permissive License (UPL), Version 1.0 +// 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 // -// Subject to the condition set forth below, permission is hereby granted to any -// person obtaining a copy of this software, associated documentation and/or data -// (collectively the "Software"), free of charge and under any and all copyright -// rights in the Software, and any and all patent rights owned or freely -// licensable by each licensor hereunder covering either (i) the unmodified -// Software as contributed to or provided by such licensor, or (ii) the Larger -// Works (as defined below), to deal in both +// http://www.apache.org/licenses/LICENSE-2.0 // -// (a) the Software, and -// (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -// one is included with the Software (each a "Larger Work" to which the Software -// is contributed by such licensors), -// -// without restriction, including without limitation the rights to copy, create -// derivative works of, display, perform, and distribute the Software and make, -// use, sell, offer for sale, import, export, have made, and have sold the -// Software and the Larger Work(s), and to sublicense the foregoing rights on -// either these or other terms. -// -// This license is subject to the following condition: -// The above copyright notice and either this complete permission notice or at -// a minimum a reference to the UPL must be included in all copies or -// substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// 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. package controllers diff --git a/internal/controllers/model/instance.go b/internal/controllers/model/instance.go index ec744057..32dce7a6 100644 --- a/internal/controllers/model/instance.go +++ b/internal/controllers/model/instance.go @@ -1,38 +1,16 @@ -// Copyright The Cryostat Authors +// Copyright The Cryostat Authors. // -// The Universal Permissive License (UPL), Version 1.0 +// 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 // -// Subject to the condition set forth below, permission is hereby granted to any -// person obtaining a copy of this software, associated documentation and/or data -// (collectively the "Software"), free of charge and under any and all copyright -// rights in the Software, and any and all patent rights owned or freely -// licensable by each licensor hereunder covering either (i) the unmodified -// Software as contributed to or provided by such licensor, or (ii) the Larger -// Works (as defined below), to deal in both +// http://www.apache.org/licenses/LICENSE-2.0 // -// (a) the Software, and -// (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -// one is included with the Software (each a "Larger Work" to which the Software -// is contributed by such licensors), -// -// without restriction, including without limitation the rights to copy, create -// derivative works of, display, perform, and distribute the Software and make, -// use, sell, offer for sale, import, export, have made, and have sold the -// Software and the Larger Work(s), and to sublicense the foregoing rights on -// either these or other terms. -// -// This license is subject to the following condition: -// The above copyright notice and either this complete permission notice or at -// a minimum a reference to the UPL must be included in all copies or -// substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// 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. package model diff --git a/internal/controllers/openshift.go b/internal/controllers/openshift.go index 2d963788..4a01d8e6 100644 --- a/internal/controllers/openshift.go +++ b/internal/controllers/openshift.go @@ -1,38 +1,16 @@ -// Copyright The Cryostat Authors +// Copyright The Cryostat Authors. // -// The Universal Permissive License (UPL), Version 1.0 +// 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 // -// Subject to the condition set forth below, permission is hereby granted to any -// person obtaining a copy of this software, associated documentation and/or data -// (collectively the "Software"), free of charge and under any and all copyright -// rights in the Software, and any and all patent rights owned or freely -// licensable by each licensor hereunder covering either (i) the unmodified -// Software as contributed to or provided by such licensor, or (ii) the Larger -// Works (as defined below), to deal in both +// http://www.apache.org/licenses/LICENSE-2.0 // -// (a) the Software, and -// (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -// one is included with the Software (each a "Larger Work" to which the Software -// is contributed by such licensors), -// -// without restriction, including without limitation the rights to copy, create -// derivative works of, display, perform, and distribute the Software and make, -// use, sell, offer for sale, import, export, have made, and have sold the -// Software and the Larger Work(s), and to sublicense the foregoing rights on -// either these or other terms. -// -// This license is subject to the following condition: -// The above copyright notice and either this complete permission notice or at -// a minimum a reference to the UPL must be included in all copies or -// substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// 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. package controllers diff --git a/internal/controllers/pvc.go b/internal/controllers/pvc.go index 0c4501cb..e9758964 100644 --- a/internal/controllers/pvc.go +++ b/internal/controllers/pvc.go @@ -1,38 +1,16 @@ -// Copyright The Cryostat Authors +// Copyright The Cryostat Authors. // -// The Universal Permissive License (UPL), Version 1.0 +// 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 // -// Subject to the condition set forth below, permission is hereby granted to any -// person obtaining a copy of this software, associated documentation and/or data -// (collectively the "Software"), free of charge and under any and all copyright -// rights in the Software, and any and all patent rights owned or freely -// licensable by each licensor hereunder covering either (i) the unmodified -// Software as contributed to or provided by such licensor, or (ii) the Larger -// Works (as defined below), to deal in both +// http://www.apache.org/licenses/LICENSE-2.0 // -// (a) the Software, and -// (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -// one is included with the Software (each a "Larger Work" to which the Software -// is contributed by such licensors), -// -// without restriction, including without limitation the rights to copy, create -// derivative works of, display, perform, and distribute the Software and make, -// use, sell, offer for sale, import, export, have made, and have sold the -// Software and the Larger Work(s), and to sublicense the foregoing rights on -// either these or other terms. -// -// This license is subject to the following condition: -// The above copyright notice and either this complete permission notice or at -// a minimum a reference to the UPL must be included in all copies or -// substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// 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. package controllers diff --git a/internal/controllers/rbac.go b/internal/controllers/rbac.go index 083e5c40..4ef4da1b 100644 --- a/internal/controllers/rbac.go +++ b/internal/controllers/rbac.go @@ -1,38 +1,16 @@ -// Copyright The Cryostat Authors +// Copyright The Cryostat Authors. // -// The Universal Permissive License (UPL), Version 1.0 +// 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 // -// Subject to the condition set forth below, permission is hereby granted to any -// person obtaining a copy of this software, associated documentation and/or data -// (collectively the "Software"), free of charge and under any and all copyright -// rights in the Software, and any and all patent rights owned or freely -// licensable by each licensor hereunder covering either (i) the unmodified -// Software as contributed to or provided by such licensor, or (ii) the Larger -// Works (as defined below), to deal in both +// http://www.apache.org/licenses/LICENSE-2.0 // -// (a) the Software, and -// (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -// one is included with the Software (each a "Larger Work" to which the Software -// is contributed by such licensors), -// -// without restriction, including without limitation the rights to copy, create -// derivative works of, display, perform, and distribute the Software and make, -// use, sell, offer for sale, import, export, have made, and have sold the -// Software and the Larger Work(s), and to sublicense the foregoing rights on -// either these or other terms. -// -// This license is subject to the following condition: -// The above copyright notice and either this complete permission notice or at -// a minimum a reference to the UPL must be included in all copies or -// substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// 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. package controllers diff --git a/internal/controllers/reconciler.go b/internal/controllers/reconciler.go index 7fdfcf29..837db709 100644 --- a/internal/controllers/reconciler.go +++ b/internal/controllers/reconciler.go @@ -1,38 +1,16 @@ -// Copyright The Cryostat Authors +// Copyright The Cryostat Authors. // -// The Universal Permissive License (UPL), Version 1.0 +// 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 // -// Subject to the condition set forth below, permission is hereby granted to any -// person obtaining a copy of this software, associated documentation and/or data -// (collectively the "Software"), free of charge and under any and all copyright -// rights in the Software, and any and all patent rights owned or freely -// licensable by each licensor hereunder covering either (i) the unmodified -// Software as contributed to or provided by such licensor, or (ii) the Larger -// Works (as defined below), to deal in both +// http://www.apache.org/licenses/LICENSE-2.0 // -// (a) the Software, and -// (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -// one is included with the Software (each a "Larger Work" to which the Software -// is contributed by such licensors), -// -// without restriction, including without limitation the rights to copy, create -// derivative works of, display, perform, and distribute the Software and make, -// use, sell, offer for sale, import, export, have made, and have sold the -// Software and the Larger Work(s), and to sublicense the foregoing rights on -// either these or other terms. -// -// This license is subject to the following condition: -// The above copyright notice and either this complete permission notice or at -// a minimum a reference to the UPL must be included in all copies or -// substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// 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. package controllers diff --git a/internal/controllers/reconciler_test.go b/internal/controllers/reconciler_test.go index 7ef3e337..6eb82f85 100644 --- a/internal/controllers/reconciler_test.go +++ b/internal/controllers/reconciler_test.go @@ -1,38 +1,16 @@ -// Copyright The Cryostat Authors +// Copyright The Cryostat Authors. // -// The Universal Permissive License (UPL), Version 1.0 +// 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 // -// Subject to the condition set forth below, permission is hereby granted to any -// person obtaining a copy of this software, associated documentation and/or data -// (collectively the "Software"), free of charge and under any and all copyright -// rights in the Software, and any and all patent rights owned or freely -// licensable by each licensor hereunder covering either (i) the unmodified -// Software as contributed to or provided by such licensor, or (ii) the Larger -// Works (as defined below), to deal in both +// http://www.apache.org/licenses/LICENSE-2.0 // -// (a) the Software, and -// (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -// one is included with the Software (each a "Larger Work" to which the Software -// is contributed by such licensors), -// -// without restriction, including without limitation the rights to copy, create -// derivative works of, display, perform, and distribute the Software and make, -// use, sell, offer for sale, import, export, have made, and have sold the -// Software and the Larger Work(s), and to sublicense the foregoing rights on -// either these or other terms. -// -// This license is subject to the following condition: -// The above copyright notice and either this complete permission notice or at -// a minimum a reference to the UPL must be included in all copies or -// substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// 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. package controllers_test diff --git a/internal/controllers/routes.go b/internal/controllers/routes.go index fdb666bd..cc6c2e3f 100644 --- a/internal/controllers/routes.go +++ b/internal/controllers/routes.go @@ -1,38 +1,16 @@ -// Copyright The Cryostat Authors +// Copyright The Cryostat Authors. // -// The Universal Permissive License (UPL), Version 1.0 +// 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 // -// Subject to the condition set forth below, permission is hereby granted to any -// person obtaining a copy of this software, associated documentation and/or data -// (collectively the "Software"), free of charge and under any and all copyright -// rights in the Software, and any and all patent rights owned or freely -// licensable by each licensor hereunder covering either (i) the unmodified -// Software as contributed to or provided by such licensor, or (ii) the Larger -// Works (as defined below), to deal in both +// http://www.apache.org/licenses/LICENSE-2.0 // -// (a) the Software, and -// (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -// one is included with the Software (each a "Larger Work" to which the Software -// is contributed by such licensors), -// -// without restriction, including without limitation the rights to copy, create -// derivative works of, display, perform, and distribute the Software and make, -// use, sell, offer for sale, import, export, have made, and have sold the -// Software and the Larger Work(s), and to sublicense the foregoing rights on -// either these or other terms. -// -// This license is subject to the following condition: -// The above copyright notice and either this complete permission notice or at -// a minimum a reference to the UPL must be included in all copies or -// substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// 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. package controllers diff --git a/internal/controllers/secrets.go b/internal/controllers/secrets.go index b1b5897b..66ff48c4 100644 --- a/internal/controllers/secrets.go +++ b/internal/controllers/secrets.go @@ -1,38 +1,16 @@ -// Copyright The Cryostat Authors +// Copyright The Cryostat Authors. // -// The Universal Permissive License (UPL), Version 1.0 +// 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 // -// Subject to the condition set forth below, permission is hereby granted to any -// person obtaining a copy of this software, associated documentation and/or data -// (collectively the "Software"), free of charge and under any and all copyright -// rights in the Software, and any and all patent rights owned or freely -// licensable by each licensor hereunder covering either (i) the unmodified -// Software as contributed to or provided by such licensor, or (ii) the Larger -// Works (as defined below), to deal in both +// http://www.apache.org/licenses/LICENSE-2.0 // -// (a) the Software, and -// (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -// one is included with the Software (each a "Larger Work" to which the Software -// is contributed by such licensors), -// -// without restriction, including without limitation the rights to copy, create -// derivative works of, display, perform, and distribute the Software and make, -// use, sell, offer for sale, import, export, have made, and have sold the -// Software and the Larger Work(s), and to sublicense the foregoing rights on -// either these or other terms. -// -// This license is subject to the following condition: -// The above copyright notice and either this complete permission notice or at -// a minimum a reference to the UPL must be included in all copies or -// substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// 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. package controllers diff --git a/internal/controllers/services.go b/internal/controllers/services.go index 65a7a650..2d134946 100644 --- a/internal/controllers/services.go +++ b/internal/controllers/services.go @@ -1,38 +1,16 @@ -// Copyright The Cryostat Authors +// Copyright The Cryostat Authors. // -// The Universal Permissive License (UPL), Version 1.0 +// 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 // -// Subject to the condition set forth below, permission is hereby granted to any -// person obtaining a copy of this software, associated documentation and/or data -// (collectively the "Software"), free of charge and under any and all copyright -// rights in the Software, and any and all patent rights owned or freely -// licensable by each licensor hereunder covering either (i) the unmodified -// Software as contributed to or provided by such licensor, or (ii) the Larger -// Works (as defined below), to deal in both +// http://www.apache.org/licenses/LICENSE-2.0 // -// (a) the Software, and -// (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -// one is included with the Software (each a "Larger Work" to which the Software -// is contributed by such licensors), -// -// without restriction, including without limitation the rights to copy, create -// derivative works of, display, perform, and distribute the Software and make, -// use, sell, offer for sale, import, export, have made, and have sold the -// Software and the Larger Work(s), and to sublicense the foregoing rights on -// either these or other terms. -// -// This license is subject to the following condition: -// The above copyright notice and either this complete permission notice or at -// a minimum a reference to the UPL must be included in all copies or -// substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// 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. package controllers diff --git a/internal/controllers/suite_test.go b/internal/controllers/suite_test.go index 8ec8620e..36391d97 100644 --- a/internal/controllers/suite_test.go +++ b/internal/controllers/suite_test.go @@ -1,38 +1,16 @@ -// Copyright The Cryostat Authors +// Copyright The Cryostat Authors. // -// The Universal Permissive License (UPL), Version 1.0 +// 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 // -// Subject to the condition set forth below, permission is hereby granted to any -// person obtaining a copy of this software, associated documentation and/or data -// (collectively the "Software"), free of charge and under any and all copyright -// rights in the Software, and any and all patent rights owned or freely -// licensable by each licensor hereunder covering either (i) the unmodified -// Software as contributed to or provided by such licensor, or (ii) the Larger -// Works (as defined below), to deal in both +// http://www.apache.org/licenses/LICENSE-2.0 // -// (a) the Software, and -// (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -// one is included with the Software (each a "Larger Work" to which the Software -// is contributed by such licensors), -// -// without restriction, including without limitation the rights to copy, create -// derivative works of, display, perform, and distribute the Software and make, -// use, sell, offer for sale, import, export, have made, and have sold the -// Software and the Larger Work(s), and to sublicense the foregoing rights on -// either these or other terms. -// -// This license is subject to the following condition: -// The above copyright notice and either this complete permission notice or at -// a minimum a reference to the UPL must be included in all copies or -// substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// 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. package controllers_test diff --git a/internal/images/custom-scorecard-tests/Dockerfile b/internal/images/custom-scorecard-tests/Dockerfile index f32ab7df..c0cb4ec3 100644 --- a/internal/images/custom-scorecard-tests/Dockerfile +++ b/internal/images/custom-scorecard-tests/Dockerfile @@ -1,38 +1,16 @@ -# Copyright The Cryostat Authors +# Copyright The Cryostat Authors. # -# The Universal Permissive License (UPL), Version 1.0 +# 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 # -# Subject to the condition set forth below, permission is hereby granted to any -# person obtaining a copy of this software, associated documentation and/or data -# (collectively the "Software"), free of charge and under any and all copyright -# rights in the Software, and any and all patent rights owned or freely -# licensable by each licensor hereunder covering either (i) the unmodified -# Software as contributed to or provided by such licensor, or (ii) the Larger -# Works (as defined below), to deal in both +# http://www.apache.org/licenses/LICENSE-2.0 # -# (a) the Software, and -# (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -# one is included with the Software (each a "Larger Work" to which the Software -# is contributed by such licensors), -# -# without restriction, including without limitation the rights to copy, create -# derivative works of, display, perform, and distribute the Software and make, -# use, sell, offer for sale, import, export, have made, and have sold the -# Software and the Larger Work(s), and to sublicense the foregoing rights on -# either these or other terms. -# -# This license is subject to the following condition: -# The above copyright notice and either this complete permission notice or at -# a minimum a reference to the UPL must be included in all copies or -# substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. +# 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. # Build the manager binary FROM docker.io/library/golang:1.20 as builder diff --git a/internal/images/custom-scorecard-tests/main.go b/internal/images/custom-scorecard-tests/main.go index 3c14ed2d..310ea1ef 100644 --- a/internal/images/custom-scorecard-tests/main.go +++ b/internal/images/custom-scorecard-tests/main.go @@ -1,38 +1,16 @@ -// Copyright The Cryostat Authors +// Copyright The Cryostat Authors. // -// The Universal Permissive License (UPL), Version 1.0 +// 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 // -// Subject to the condition set forth below, permission is hereby granted to any -// person obtaining a copy of this software, associated documentation and/or data -// (collectively the "Software"), free of charge and under any and all copyright -// rights in the Software, and any and all patent rights owned or freely -// licensable by each licensor hereunder covering either (i) the unmodified -// Software as contributed to or provided by such licensor, or (ii) the Larger -// Works (as defined below), to deal in both +// http://www.apache.org/licenses/LICENSE-2.0 // -// (a) the Software, and -// (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -// one is included with the Software (each a "Larger Work" to which the Software -// is contributed by such licensors), -// -// without restriction, including without limitation the rights to copy, create -// derivative works of, display, perform, and distribute the Software and make, -// use, sell, offer for sale, import, export, have made, and have sold the -// Software and the Larger Work(s), and to sublicense the foregoing rights on -// either these or other terms. -// -// This license is subject to the following condition: -// The above copyright notice and either this complete permission notice or at -// a minimum a reference to the UPL must be included in all copies or -// substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// 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. package main diff --git a/internal/images/custom-scorecard-tests/rbac/kustomization.yaml b/internal/images/custom-scorecard-tests/rbac/kustomization.yaml index 99207d5a..4ff7526a 100644 --- a/internal/images/custom-scorecard-tests/rbac/kustomization.yaml +++ b/internal/images/custom-scorecard-tests/rbac/kustomization.yaml @@ -1,38 +1,16 @@ -# Copyright The Cryostat Authors +# Copyright The Cryostat Authors. # -# The Universal Permissive License (UPL), Version 1.0 +# 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 # -# Subject to the condition set forth below, permission is hereby granted to any -# person obtaining a copy of this software, associated documentation and/or data -# (collectively the "Software"), free of charge and under any and all copyright -# rights in the Software, and any and all patent rights owned or freely -# licensable by each licensor hereunder covering either (i) the unmodified -# Software as contributed to or provided by such licensor, or (ii) the Larger -# Works (as defined below), to deal in both +# http://www.apache.org/licenses/LICENSE-2.0 # -# (a) the Software, and -# (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -# one is included with the Software (each a "Larger Work" to which the Software -# is contributed by such licensors), -# -# without restriction, including without limitation the rights to copy, create -# derivative works of, display, perform, and distribute the Software and make, -# use, sell, offer for sale, import, export, have made, and have sold the -# Software and the Larger Work(s), and to sublicense the foregoing rights on -# either these or other terms. -# -# This license is subject to the following condition: -# The above copyright notice and either this complete permission notice or at -# a minimum a reference to the UPL must be included in all copies or -# substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. +# 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. apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization diff --git a/internal/images/custom-scorecard-tests/rbac/scorecard_role.yaml b/internal/images/custom-scorecard-tests/rbac/scorecard_role.yaml index f3085309..de76f86d 100644 --- a/internal/images/custom-scorecard-tests/rbac/scorecard_role.yaml +++ b/internal/images/custom-scorecard-tests/rbac/scorecard_role.yaml @@ -1,38 +1,16 @@ -# Copyright The Cryostat Authors +# Copyright The Cryostat Authors. # -# The Universal Permissive License (UPL), Version 1.0 +# 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 # -# Subject to the condition set forth below, permission is hereby granted to any -# person obtaining a copy of this software, associated documentation and/or data -# (collectively the "Software"), free of charge and under any and all copyright -# rights in the Software, and any and all patent rights owned or freely -# licensable by each licensor hereunder covering either (i) the unmodified -# Software as contributed to or provided by such licensor, or (ii) the Larger -# Works (as defined below), to deal in both +# http://www.apache.org/licenses/LICENSE-2.0 # -# (a) the Software, and -# (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -# one is included with the Software (each a "Larger Work" to which the Software -# is contributed by such licensors), -# -# without restriction, including without limitation the rights to copy, create -# derivative works of, display, perform, and distribute the Software and make, -# use, sell, offer for sale, import, export, have made, and have sold the -# Software and the Larger Work(s), and to sublicense the foregoing rights on -# either these or other terms. -# -# This license is subject to the following condition: -# The above copyright notice and either this complete permission notice or at -# a minimum a reference to the UPL must be included in all copies or -# substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. +# 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. # Permissions for Cryostat custom Scorecard tests apiVersion: rbac.authorization.k8s.io/v1 diff --git a/internal/images/custom-scorecard-tests/rbac/scorecard_role_binding.yaml b/internal/images/custom-scorecard-tests/rbac/scorecard_role_binding.yaml index b8c9ea5f..a300792b 100644 --- a/internal/images/custom-scorecard-tests/rbac/scorecard_role_binding.yaml +++ b/internal/images/custom-scorecard-tests/rbac/scorecard_role_binding.yaml @@ -1,38 +1,16 @@ -# Copyright The Cryostat Authors +# Copyright The Cryostat Authors. # -# The Universal Permissive License (UPL), Version 1.0 +# 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 # -# Subject to the condition set forth below, permission is hereby granted to any -# person obtaining a copy of this software, associated documentation and/or data -# (collectively the "Software"), free of charge and under any and all copyright -# rights in the Software, and any and all patent rights owned or freely -# licensable by each licensor hereunder covering either (i) the unmodified -# Software as contributed to or provided by such licensor, or (ii) the Larger -# Works (as defined below), to deal in both +# http://www.apache.org/licenses/LICENSE-2.0 # -# (a) the Software, and -# (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -# one is included with the Software (each a "Larger Work" to which the Software -# is contributed by such licensors), -# -# without restriction, including without limitation the rights to copy, create -# derivative works of, display, perform, and distribute the Software and make, -# use, sell, offer for sale, import, export, have made, and have sold the -# Software and the Larger Work(s), and to sublicense the foregoing rights on -# either these or other terms. -# -# This license is subject to the following condition: -# The above copyright notice and either this complete permission notice or at -# a minimum a reference to the UPL must be included in all copies or -# substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. +# 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. kind: RoleBinding apiVersion: rbac.authorization.k8s.io/v1 diff --git a/internal/images/custom-scorecard-tests/rbac/scorecard_service_account.yaml b/internal/images/custom-scorecard-tests/rbac/scorecard_service_account.yaml index 622a5dbb..13fff836 100644 --- a/internal/images/custom-scorecard-tests/rbac/scorecard_service_account.yaml +++ b/internal/images/custom-scorecard-tests/rbac/scorecard_service_account.yaml @@ -1,38 +1,16 @@ -# Copyright The Cryostat Authors +# Copyright The Cryostat Authors. # -# The Universal Permissive License (UPL), Version 1.0 +# 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 # -# Subject to the condition set forth below, permission is hereby granted to any -# person obtaining a copy of this software, associated documentation and/or data -# (collectively the "Software"), free of charge and under any and all copyright -# rights in the Software, and any and all patent rights owned or freely -# licensable by each licensor hereunder covering either (i) the unmodified -# Software as contributed to or provided by such licensor, or (ii) the Larger -# Works (as defined below), to deal in both +# http://www.apache.org/licenses/LICENSE-2.0 # -# (a) the Software, and -# (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -# one is included with the Software (each a "Larger Work" to which the Software -# is contributed by such licensors), -# -# without restriction, including without limitation the rights to copy, create -# derivative works of, display, perform, and distribute the Software and make, -# use, sell, offer for sale, import, export, have made, and have sold the -# Software and the Larger Work(s), and to sublicense the foregoing rights on -# either these or other terms. -# -# This license is subject to the following condition: -# The above copyright notice and either this complete permission notice or at -# a minimum a reference to the UPL must be included in all copies or -# substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. +# 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. kind: ServiceAccount apiVersion: v1 diff --git a/internal/main.go b/internal/main.go index 77f851f4..1e014318 100644 --- a/internal/main.go +++ b/internal/main.go @@ -1,38 +1,16 @@ -// Copyright The Cryostat Authors +// Copyright The Cryostat Authors. // -// The Universal Permissive License (UPL), Version 1.0 +// 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 // -// Subject to the condition set forth below, permission is hereby granted to any -// person obtaining a copy of this software, associated documentation and/or data -// (collectively the "Software"), free of charge and under any and all copyright -// rights in the Software, and any and all patent rights owned or freely -// licensable by each licensor hereunder covering either (i) the unmodified -// Software as contributed to or provided by such licensor, or (ii) the Larger -// Works (as defined below), to deal in both +// http://www.apache.org/licenses/LICENSE-2.0 // -// (a) the Software, and -// (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -// one is included with the Software (each a "Larger Work" to which the Software -// is contributed by such licensors), -// -// without restriction, including without limitation the rights to copy, create -// derivative works of, display, perform, and distribute the Software and make, -// use, sell, offer for sale, import, export, have made, and have sold the -// Software and the Larger Work(s), and to sublicense the foregoing rights on -// either these or other terms. -// -// This license is subject to the following condition: -// The above copyright notice and either this complete permission notice or at -// a minimum a reference to the UPL must be included in all copies or -// substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// 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. package main diff --git a/internal/test/clients.go b/internal/test/clients.go index 207e3d3a..221a414f 100644 --- a/internal/test/clients.go +++ b/internal/test/clients.go @@ -1,38 +1,16 @@ -// Copyright The Cryostat Authors +// Copyright The Cryostat Authors. // -// The Universal Permissive License (UPL), Version 1.0 +// 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 // -// Subject to the condition set forth below, permission is hereby granted to any -// person obtaining a copy of this software, associated documentation and/or data -// (collectively the "Software"), free of charge and under any and all copyright -// rights in the Software, and any and all patent rights owned or freely -// licensable by each licensor hereunder covering either (i) the unmodified -// Software as contributed to or provided by such licensor, or (ii) the Larger -// Works (as defined below), to deal in both +// http://www.apache.org/licenses/LICENSE-2.0 // -// (a) the Software, and -// (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -// one is included with the Software (each a "Larger Work" to which the Software -// is contributed by such licensors), -// -// without restriction, including without limitation the rights to copy, create -// derivative works of, display, perform, and distribute the Software and make, -// use, sell, offer for sale, import, export, have made, and have sold the -// Software and the Larger Work(s), and to sublicense the foregoing rights on -// either these or other terms. -// -// This license is subject to the following condition: -// The above copyright notice and either this complete permission notice or at -// a minimum a reference to the UPL must be included in all copies or -// substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// 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. package test diff --git a/internal/test/reconciler.go b/internal/test/reconciler.go index 9d1ecf11..44428d57 100644 --- a/internal/test/reconciler.go +++ b/internal/test/reconciler.go @@ -1,38 +1,16 @@ -// Copyright The Cryostat Authors +// Copyright The Cryostat Authors. // -// The Universal Permissive License (UPL), Version 1.0 +// 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 // -// Subject to the condition set forth below, permission is hereby granted to any -// person obtaining a copy of this software, associated documentation and/or data -// (collectively the "Software"), free of charge and under any and all copyright -// rights in the Software, and any and all patent rights owned or freely -// licensable by each licensor hereunder covering either (i) the unmodified -// Software as contributed to or provided by such licensor, or (ii) the Larger -// Works (as defined below), to deal in both +// http://www.apache.org/licenses/LICENSE-2.0 // -// (a) the Software, and -// (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -// one is included with the Software (each a "Larger Work" to which the Software -// is contributed by such licensors), -// -// without restriction, including without limitation the rights to copy, create -// derivative works of, display, perform, and distribute the Software and make, -// use, sell, offer for sale, import, export, have made, and have sold the -// Software and the Larger Work(s), and to sublicense the foregoing rights on -// either these or other terms. -// -// This license is subject to the following condition: -// The above copyright notice and either this complete permission notice or at -// a minimum a reference to the UPL must be included in all copies or -// substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// 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. package test diff --git a/internal/test/resources.go b/internal/test/resources.go index 8dc74c64..4f5145cd 100644 --- a/internal/test/resources.go +++ b/internal/test/resources.go @@ -1,38 +1,16 @@ -// Copyright The Cryostat Authors +// Copyright The Cryostat Authors. // -// The Universal Permissive License (UPL), Version 1.0 +// 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 // -// Subject to the condition set forth below, permission is hereby granted to any -// person obtaining a copy of this software, associated documentation and/or data -// (collectively the "Software"), free of charge and under any and all copyright -// rights in the Software, and any and all patent rights owned or freely -// licensable by each licensor hereunder covering either (i) the unmodified -// Software as contributed to or provided by such licensor, or (ii) the Larger -// Works (as defined below), to deal in both +// http://www.apache.org/licenses/LICENSE-2.0 // -// (a) the Software, and -// (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -// one is included with the Software (each a "Larger Work" to which the Software -// is contributed by such licensors), -// -// without restriction, including without limitation the rights to copy, create -// derivative works of, display, perform, and distribute the Software and make, -// use, sell, offer for sale, import, export, have made, and have sold the -// Software and the Larger Work(s), and to sublicense the foregoing rights on -// either these or other terms. -// -// This license is subject to the following condition: -// The above copyright notice and either this complete permission notice or at -// a minimum a reference to the UPL must be included in all copies or -// substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// 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. package test diff --git a/internal/test/scorecard/clients.go b/internal/test/scorecard/clients.go index 45d273a8..2cf994c3 100644 --- a/internal/test/scorecard/clients.go +++ b/internal/test/scorecard/clients.go @@ -1,38 +1,16 @@ -// Copyright The Cryostat Authors +// Copyright The Cryostat Authors. // -// The Universal Permissive License (UPL), Version 1.0 +// 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 // -// Subject to the condition set forth below, permission is hereby granted to any -// person obtaining a copy of this software, associated documentation and/or data -// (collectively the "Software"), free of charge and under any and all copyright -// rights in the Software, and any and all patent rights owned or freely -// licensable by each licensor hereunder covering either (i) the unmodified -// Software as contributed to or provided by such licensor, or (ii) the Larger -// Works (as defined below), to deal in both +// http://www.apache.org/licenses/LICENSE-2.0 // -// (a) the Software, and -// (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -// one is included with the Software (each a "Larger Work" to which the Software -// is contributed by such licensors), -// -// without restriction, including without limitation the rights to copy, create -// derivative works of, display, perform, and distribute the Software and make, -// use, sell, offer for sale, import, export, have made, and have sold the -// Software and the Larger Work(s), and to sublicense the foregoing rights on -// either these or other terms. -// -// This license is subject to the following condition: -// The above copyright notice and either this complete permission notice or at -// a minimum a reference to the UPL must be included in all copies or -// substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// 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. package scorecard diff --git a/internal/test/scorecard/openshift.go b/internal/test/scorecard/openshift.go index e4107a16..dee12c4d 100644 --- a/internal/test/scorecard/openshift.go +++ b/internal/test/scorecard/openshift.go @@ -1,38 +1,16 @@ -// Copyright The Cryostat Authors +// Copyright The Cryostat Authors. // -// The Universal Permissive License (UPL), Version 1.0 +// 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 // -// Subject to the condition set forth below, permission is hereby granted to any -// person obtaining a copy of this software, associated documentation and/or data -// (collectively the "Software"), free of charge and under any and all copyright -// rights in the Software, and any and all patent rights owned or freely -// licensable by each licensor hereunder covering either (i) the unmodified -// Software as contributed to or provided by such licensor, or (ii) the Larger -// Works (as defined below), to deal in both +// http://www.apache.org/licenses/LICENSE-2.0 // -// (a) the Software, and -// (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -// one is included with the Software (each a "Larger Work" to which the Software -// is contributed by such licensors), -// -// without restriction, including without limitation the rights to copy, create -// derivative works of, display, perform, and distribute the Software and make, -// use, sell, offer for sale, import, export, have made, and have sold the -// Software and the Larger Work(s), and to sublicense the foregoing rights on -// either these or other terms. -// -// This license is subject to the following condition: -// The above copyright notice and either this complete permission notice or at -// a minimum a reference to the UPL must be included in all copies or -// substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// 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. package scorecard diff --git a/internal/test/scorecard/tests.go b/internal/test/scorecard/tests.go index 0d97ddd0..b2aab776 100644 --- a/internal/test/scorecard/tests.go +++ b/internal/test/scorecard/tests.go @@ -1,38 +1,16 @@ -// Copyright The Cryostat Authors +// Copyright The Cryostat Authors. // -// The Universal Permissive License (UPL), Version 1.0 +// 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 // -// Subject to the condition set forth below, permission is hereby granted to any -// person obtaining a copy of this software, associated documentation and/or data -// (collectively the "Software"), free of charge and under any and all copyright -// rights in the Software, and any and all patent rights owned or freely -// licensable by each licensor hereunder covering either (i) the unmodified -// Software as contributed to or provided by such licensor, or (ii) the Larger -// Works (as defined below), to deal in both +// http://www.apache.org/licenses/LICENSE-2.0 // -// (a) the Software, and -// (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -// one is included with the Software (each a "Larger Work" to which the Software -// is contributed by such licensors), -// -// without restriction, including without limitation the rights to copy, create -// derivative works of, display, perform, and distribute the Software and make, -// use, sell, offer for sale, import, export, have made, and have sold the -// Software and the Larger Work(s), and to sublicense the foregoing rights on -// either these or other terms. -// -// This license is subject to the following condition: -// The above copyright notice and either this complete permission notice or at -// a minimum a reference to the UPL must be included in all copies or -// substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// 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. package scorecard diff --git a/internal/tools/const_generator.go b/internal/tools/const_generator.go index 347170af..0958c3d9 100644 --- a/internal/tools/const_generator.go +++ b/internal/tools/const_generator.go @@ -1,38 +1,16 @@ -// Copyright The Cryostat Authors +// Copyright The Cryostat Authors. // -// The Universal Permissive License (UPL), Version 1.0 +// 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 // -// Subject to the condition set forth below, permission is hereby granted to any -// person obtaining a copy of this software, associated documentation and/or data -// (collectively the "Software"), free of charge and under any and all copyright -// rights in the Software, and any and all patent rights owned or freely -// licensable by each licensor hereunder covering either (i) the unmodified -// Software as contributed to or provided by such licensor, or (ii) the Larger -// Works (as defined below), to deal in both +// http://www.apache.org/licenses/LICENSE-2.0 // -// (a) the Software, and -// (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if -// one is included with the Software (each a "Larger Work" to which the Software -// is contributed by such licensors), -// -// without restriction, including without limitation the rights to copy, create -// derivative works of, display, perform, and distribute the Software and make, -// use, sell, offer for sale, import, export, have made, and have sold the -// Software and the Larger Work(s), and to sublicense the foregoing rights on -// either these or other terms. -// -// This license is subject to the following condition: -// The above copyright notice and either this complete permission notice or at -// a minimum a reference to the UPL must be included in all copies or -// substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// 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. //go:build ignore