From e927583351c7d149f4340842db5ba8703890b70b Mon Sep 17 00:00:00 2001 From: Ivan Milchev Date: Mon, 25 Sep 2023 17:47:01 +0300 Subject: [PATCH 1/2] move license check to lint workflow Signed-off-by: Ivan Milchev --- .github/workflows/cla.yaml | 12 ------------ .github/workflows/lint.yaml | 12 ++++++++++++ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/cla.yaml b/.github/workflows/cla.yaml index 036b86b7c..6d863ee70 100644 --- a/.github/workflows/cla.yaml +++ b/.github/workflows/cla.yaml @@ -24,15 +24,3 @@ jobs: remote-organization-name: mondoohq branch: 'main' allowlist: mondoo-tools,github-actions[bot],dependabot[bot] - - license-check: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Setup Copywrite - uses: hashicorp/setup-copywrite@v1.1.2 - - - name: Check Header Compliance - run: copywrite headers --plan diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index aa7b6c572..221b68f03 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -24,3 +24,15 @@ jobs: with: version: v1.54 args: --timeout=20m0s + + license-check: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Copywrite + uses: hashicorp/setup-copywrite@v1.1.2 + + - name: Check Header Compliance + run: copywrite headers --plan From a2293aa42e2be02283e966f346df67ef73a55283 Mon Sep 17 00:00:00 2001 From: Ivan Milchev Date: Mon, 25 Sep 2023 17:30:43 +0300 Subject: [PATCH 2/2] fix license headers Signed-off-by: Ivan Milchev --- .github/terraform/aws/README.md | 5 ++--- api/v1alpha2/groupversion_info.go | 9 ++------- api/v1alpha2/mondooauditconfig_types.go | 9 ++------- api/v1alpha2/mondoooperatorconfig_types.go | 9 ++------- api/v1alpha2/zz_generated.deepcopy.go | 9 ++------- cmd/mondoo-operator/webhook/cmd.go | 9 ++------- controllers/admission/cert-manager.go | 9 ++------- controllers/admission/conditions.go | 9 ++------- controllers/admission/deployment_handler.go | 9 ++------- controllers/admission/deployment_handler_test.go | 9 ++------- controllers/admission/resources.go | 9 ++------- controllers/container_image/conditions.go | 9 ++------- controllers/container_image/deployment_handler.go | 9 ++------- .../container_image/deployment_handler_test.go | 9 ++------- controllers/container_image/resources.go | 9 ++------- controllers/integration/integration_controller.go | 9 ++------- .../integration/integration_controller_test.go | 9 ++------- controllers/k8s_scan/conditions.go | 9 ++------- controllers/k8s_scan/deployment_handler.go | 9 ++------- controllers/k8s_scan/deployment_handler_test.go | 9 ++------- controllers/k8s_scan/resources.go | 9 ++------- controllers/mondooauditconfig_controller.go | 9 ++------- controllers/mondooauditconfig_controller_test.go | 9 ++------- controllers/mondoooperatorconfig_controller.go | 9 ++------- controllers/nodes/conditions.go | 9 ++------- controllers/nodes/deployment_handler.go | 9 ++------- controllers/nodes/deployment_handler_test.go | 9 ++------- controllers/nodes/resources.go | 9 ++------- controllers/nodes/resources_test.go | 9 ++------- controllers/resource_monitor/debouncer/debouncer.go | 9 ++------- .../resource_monitor/debouncer/debouncer_test.go | 9 ++------- controllers/resource_monitor/register.go | 9 ++------- .../resource_monitor/resource_monitor_controller.go | 9 ++------- .../resource_monitor_controller_test.go | 9 ++------- .../resource_monitor/scan_api_store/scan_api_store.go | 9 ++------- .../scan_api_store/scan_api_store_test.go | 9 ++------- controllers/resource_monitor/scan_api_store/utils.go | 9 ++------- controllers/scanapi/conditions.go | 9 ++------- controllers/scanapi/deployment_handler.go | 9 ++------- controllers/scanapi/deployment_handler_test.go | 9 ++------- controllers/scanapi/resources.go | 9 ++------- controllers/service_monitor.go | 9 ++------- controllers/status/operator_status.go | 9 ++------- controllers/status/operator_status_test.go | 9 ++------- controllers/status/status_reporter.go | 9 ++------- controllers/status/status_reporter_test.go | 9 ++------- hack/boilerplate.go.txt | 9 ++------- pkg/client/common/http.go | 3 +++ pkg/client/common/types.go | 3 +++ pkg/client/mondooclient/client.go | 9 ++------- pkg/client/mondooclient/fakeserver/fakeserver.go | 3 +++ pkg/client/mondooclient/types.go | 3 +++ pkg/client/scanapiclient/client.go | 3 +++ pkg/client/scanapiclient/types.go | 3 +++ pkg/utils/k8s/api.go | 9 ++------- pkg/utils/k8s/create.go | 9 ++------- pkg/utils/k8s/create_test.go | 9 ++------- pkg/utils/k8s/cron_job.go | 9 ++------- pkg/utils/k8s/delete.go | 9 ++------- pkg/utils/k8s/delete_test.go | 9 ++------- pkg/utils/k8s/env.go | 9 ++------- pkg/utils/k8s/env_test.go | 9 ++------- pkg/utils/k8s/equality.go | 9 ++------- pkg/utils/k8s/equality_test.go | 9 ++------- pkg/utils/k8s/get.go | 9 ++------- pkg/utils/k8s/integration_mrn.go | 9 ++------- pkg/utils/k8s/namespace.go | 9 ++------- pkg/utils/k8s/openshift.go | 9 ++------- pkg/utils/k8s/predicate.go | 9 ++------- pkg/utils/k8s/resources_requirements.go | 9 ++------- pkg/utils/k8s/server_version.go | 9 ++------- pkg/utils/k8s/taints.go | 9 ++------- pkg/utils/k8s/taints_test.go | 9 ++------- pkg/utils/k8s/update.go | 9 ++------- pkg/utils/k8s/update_test.go | 9 ++------- pkg/utils/mondoo/container_image_resolver.go | 9 ++------- pkg/utils/mondoo/fake/container_image_resolver.go | 11 +++-------- pkg/utils/mondoo/integration.go | 9 ++------- pkg/utils/mondoo/token_exchange.go | 9 ++------- pkg/utils/utils.go | 9 ++------- pkg/version/version.go | 9 ++------- tests/framework/utils/rand.go | 9 ++------- 82 files changed, 171 insertions(+), 529 deletions(-) diff --git a/.github/terraform/aws/README.md b/.github/terraform/aws/README.md index 942136988..04b26cb40 100644 --- a/.github/terraform/aws/README.md +++ b/.github/terraform/aws/README.md @@ -200,9 +200,8 @@ https://docs.aws.amazon.com/eks/latest/userguide/pod-security-policy.html#psp-de * Author:: Mondoo, Inc. -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. +Copyright (c) Mondoo, Inc. +SPDX-License-Identifier: BUSL-1.1 ## Disclaimer diff --git a/api/v1alpha2/groupversion_info.go b/api/v1alpha2/groupversion_info.go index cafb72a26..3a8a8ccd8 100644 --- a/api/v1alpha2/groupversion_info.go +++ b/api/v1alpha2/groupversion_info.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 // Package v1alpha2 contains API Schema definitions for the k8s v1alpha2 API group // +kubebuilder:object:generate=true diff --git a/api/v1alpha2/mondooauditconfig_types.go b/api/v1alpha2/mondooauditconfig_types.go index 77331157a..6241a1bfc 100644 --- a/api/v1alpha2/mondooauditconfig_types.go +++ b/api/v1alpha2/mondooauditconfig_types.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package v1alpha2 diff --git a/api/v1alpha2/mondoooperatorconfig_types.go b/api/v1alpha2/mondoooperatorconfig_types.go index c7a31d7c6..fc7054ff2 100644 --- a/api/v1alpha2/mondoooperatorconfig_types.go +++ b/api/v1alpha2/mondoooperatorconfig_types.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package v1alpha2 diff --git a/api/v1alpha2/zz_generated.deepcopy.go b/api/v1alpha2/zz_generated.deepcopy.go index 0b1d6e91c..05b1796bf 100644 --- a/api/v1alpha2/zz_generated.deepcopy.go +++ b/api/v1alpha2/zz_generated.deepcopy.go @@ -1,13 +1,8 @@ //go:build !ignore_autogenerated // +build !ignore_autogenerated -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 // Code generated by controller-gen. DO NOT EDIT. diff --git a/cmd/mondoo-operator/webhook/cmd.go b/cmd/mondoo-operator/webhook/cmd.go index d8fec8888..447efc786 100644 --- a/cmd/mondoo-operator/webhook/cmd.go +++ b/cmd/mondoo-operator/webhook/cmd.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package webhook diff --git a/controllers/admission/cert-manager.go b/controllers/admission/cert-manager.go index e56aea44a..8c934b362 100644 --- a/controllers/admission/cert-manager.go +++ b/controllers/admission/cert-manager.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package admission diff --git a/controllers/admission/conditions.go b/controllers/admission/conditions.go index 8e250509f..26005f864 100644 --- a/controllers/admission/conditions.go +++ b/controllers/admission/conditions.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package admission diff --git a/controllers/admission/deployment_handler.go b/controllers/admission/deployment_handler.go index ce572891f..e94363382 100644 --- a/controllers/admission/deployment_handler.go +++ b/controllers/admission/deployment_handler.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package admission diff --git a/controllers/admission/deployment_handler_test.go b/controllers/admission/deployment_handler_test.go index 5f35ab642..e254999db 100644 --- a/controllers/admission/deployment_handler_test.go +++ b/controllers/admission/deployment_handler_test.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package admission diff --git a/controllers/admission/resources.go b/controllers/admission/resources.go index c43c5ade2..33208580b 100644 --- a/controllers/admission/resources.go +++ b/controllers/admission/resources.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package admission diff --git a/controllers/container_image/conditions.go b/controllers/container_image/conditions.go index f9d2700da..e72aeabcc 100644 --- a/controllers/container_image/conditions.go +++ b/controllers/container_image/conditions.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package container_image diff --git a/controllers/container_image/deployment_handler.go b/controllers/container_image/deployment_handler.go index d4aa253e2..dc26d8145 100644 --- a/controllers/container_image/deployment_handler.go +++ b/controllers/container_image/deployment_handler.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package container_image diff --git a/controllers/container_image/deployment_handler_test.go b/controllers/container_image/deployment_handler_test.go index 7ba95c90c..d4edb65b0 100644 --- a/controllers/container_image/deployment_handler_test.go +++ b/controllers/container_image/deployment_handler_test.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package container_image diff --git a/controllers/container_image/resources.go b/controllers/container_image/resources.go index f1af37e1b..8dfefe33d 100644 --- a/controllers/container_image/resources.go +++ b/controllers/container_image/resources.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package container_image diff --git a/controllers/integration/integration_controller.go b/controllers/integration/integration_controller.go index b2dd75c01..a4c67b1ec 100644 --- a/controllers/integration/integration_controller.go +++ b/controllers/integration/integration_controller.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package integration diff --git a/controllers/integration/integration_controller_test.go b/controllers/integration/integration_controller_test.go index 7e8a4b47d..7f2718553 100644 --- a/controllers/integration/integration_controller_test.go +++ b/controllers/integration/integration_controller_test.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package integration diff --git a/controllers/k8s_scan/conditions.go b/controllers/k8s_scan/conditions.go index a56482174..3742d5196 100644 --- a/controllers/k8s_scan/conditions.go +++ b/controllers/k8s_scan/conditions.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package k8s_scan diff --git a/controllers/k8s_scan/deployment_handler.go b/controllers/k8s_scan/deployment_handler.go index 0a5a0256e..36e1a4b5a 100644 --- a/controllers/k8s_scan/deployment_handler.go +++ b/controllers/k8s_scan/deployment_handler.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package k8s_scan diff --git a/controllers/k8s_scan/deployment_handler_test.go b/controllers/k8s_scan/deployment_handler_test.go index 09c41297e..6d317723e 100644 --- a/controllers/k8s_scan/deployment_handler_test.go +++ b/controllers/k8s_scan/deployment_handler_test.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package k8s_scan diff --git a/controllers/k8s_scan/resources.go b/controllers/k8s_scan/resources.go index ec1deed56..905643eef 100644 --- a/controllers/k8s_scan/resources.go +++ b/controllers/k8s_scan/resources.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package k8s_scan diff --git a/controllers/mondooauditconfig_controller.go b/controllers/mondooauditconfig_controller.go index 912752cad..b72bfc9a6 100644 --- a/controllers/mondooauditconfig_controller.go +++ b/controllers/mondooauditconfig_controller.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package controllers diff --git a/controllers/mondooauditconfig_controller_test.go b/controllers/mondooauditconfig_controller_test.go index d42cbef68..a7a8c987d 100644 --- a/controllers/mondooauditconfig_controller_test.go +++ b/controllers/mondooauditconfig_controller_test.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package controllers diff --git a/controllers/mondoooperatorconfig_controller.go b/controllers/mondoooperatorconfig_controller.go index b15998500..1e1e60e65 100644 --- a/controllers/mondoooperatorconfig_controller.go +++ b/controllers/mondoooperatorconfig_controller.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package controllers diff --git a/controllers/nodes/conditions.go b/controllers/nodes/conditions.go index aced3fa4d..13c956c2d 100644 --- a/controllers/nodes/conditions.go +++ b/controllers/nodes/conditions.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package nodes diff --git a/controllers/nodes/deployment_handler.go b/controllers/nodes/deployment_handler.go index f9441871c..61cfa9fb4 100644 --- a/controllers/nodes/deployment_handler.go +++ b/controllers/nodes/deployment_handler.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package nodes diff --git a/controllers/nodes/deployment_handler_test.go b/controllers/nodes/deployment_handler_test.go index 4b993114b..09aa8dfb5 100644 --- a/controllers/nodes/deployment_handler_test.go +++ b/controllers/nodes/deployment_handler_test.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package nodes diff --git a/controllers/nodes/resources.go b/controllers/nodes/resources.go index 8ffeb79a5..f77217b5c 100644 --- a/controllers/nodes/resources.go +++ b/controllers/nodes/resources.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package nodes diff --git a/controllers/nodes/resources_test.go b/controllers/nodes/resources_test.go index 4326fcbda..058cba2ab 100644 --- a/controllers/nodes/resources_test.go +++ b/controllers/nodes/resources_test.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package nodes diff --git a/controllers/resource_monitor/debouncer/debouncer.go b/controllers/resource_monitor/debouncer/debouncer.go index e19ce2334..3d1de8a13 100644 --- a/controllers/resource_monitor/debouncer/debouncer.go +++ b/controllers/resource_monitor/debouncer/debouncer.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package debouncer diff --git a/controllers/resource_monitor/debouncer/debouncer_test.go b/controllers/resource_monitor/debouncer/debouncer_test.go index 5662d804b..4aea37154 100644 --- a/controllers/resource_monitor/debouncer/debouncer_test.go +++ b/controllers/resource_monitor/debouncer/debouncer_test.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package debouncer diff --git a/controllers/resource_monitor/register.go b/controllers/resource_monitor/register.go index b86721a6f..ed0ccebac 100644 --- a/controllers/resource_monitor/register.go +++ b/controllers/resource_monitor/register.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package resource_monitor diff --git a/controllers/resource_monitor/resource_monitor_controller.go b/controllers/resource_monitor/resource_monitor_controller.go index b003edd97..eb6c517ef 100644 --- a/controllers/resource_monitor/resource_monitor_controller.go +++ b/controllers/resource_monitor/resource_monitor_controller.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package resource_monitor diff --git a/controllers/resource_monitor/resource_monitor_controller_test.go b/controllers/resource_monitor/resource_monitor_controller_test.go index af57bcf48..2379cc94c 100644 --- a/controllers/resource_monitor/resource_monitor_controller_test.go +++ b/controllers/resource_monitor/resource_monitor_controller_test.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package resource_monitor diff --git a/controllers/resource_monitor/scan_api_store/scan_api_store.go b/controllers/resource_monitor/scan_api_store/scan_api_store.go index 8b5a98722..9d56e4433 100644 --- a/controllers/resource_monitor/scan_api_store/scan_api_store.go +++ b/controllers/resource_monitor/scan_api_store/scan_api_store.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package scan_api_store diff --git a/controllers/resource_monitor/scan_api_store/scan_api_store_test.go b/controllers/resource_monitor/scan_api_store/scan_api_store_test.go index 5d30c2163..d506b9b13 100644 --- a/controllers/resource_monitor/scan_api_store/scan_api_store_test.go +++ b/controllers/resource_monitor/scan_api_store/scan_api_store_test.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package scan_api_store diff --git a/controllers/resource_monitor/scan_api_store/utils.go b/controllers/resource_monitor/scan_api_store/utils.go index ee9c7101f..e71b9ed56 100644 --- a/controllers/resource_monitor/scan_api_store/utils.go +++ b/controllers/resource_monitor/scan_api_store/utils.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package scan_api_store diff --git a/controllers/scanapi/conditions.go b/controllers/scanapi/conditions.go index d60e5d259..dd93a1705 100644 --- a/controllers/scanapi/conditions.go +++ b/controllers/scanapi/conditions.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package scanapi diff --git a/controllers/scanapi/deployment_handler.go b/controllers/scanapi/deployment_handler.go index 671b47784..61632a55f 100644 --- a/controllers/scanapi/deployment_handler.go +++ b/controllers/scanapi/deployment_handler.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package scanapi diff --git a/controllers/scanapi/deployment_handler_test.go b/controllers/scanapi/deployment_handler_test.go index 583f68d13..9e1d2188b 100644 --- a/controllers/scanapi/deployment_handler_test.go +++ b/controllers/scanapi/deployment_handler_test.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package scanapi diff --git a/controllers/scanapi/resources.go b/controllers/scanapi/resources.go index 444ed78b0..b1065d293 100644 --- a/controllers/scanapi/resources.go +++ b/controllers/scanapi/resources.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package scanapi diff --git a/controllers/service_monitor.go b/controllers/service_monitor.go index 3db45e034..3a2a7003a 100644 --- a/controllers/service_monitor.go +++ b/controllers/service_monitor.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package controllers diff --git a/controllers/status/operator_status.go b/controllers/status/operator_status.go index c3c549369..02b605baf 100644 --- a/controllers/status/operator_status.go +++ b/controllers/status/operator_status.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package status diff --git a/controllers/status/operator_status_test.go b/controllers/status/operator_status_test.go index 58ef2a549..d1d82d726 100644 --- a/controllers/status/operator_status_test.go +++ b/controllers/status/operator_status_test.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package status diff --git a/controllers/status/status_reporter.go b/controllers/status/status_reporter.go index 186b6b127..b75b730af 100644 --- a/controllers/status/status_reporter.go +++ b/controllers/status/status_reporter.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package status diff --git a/controllers/status/status_reporter_test.go b/controllers/status/status_reporter_test.go index 36aa9867b..3ac9d88c8 100644 --- a/controllers/status/status_reporter_test.go +++ b/controllers/status/status_reporter_test.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package status diff --git a/hack/boilerplate.go.txt b/hack/boilerplate.go.txt index 6daf40863..1db963672 100644 --- a/hack/boilerplate.go.txt +++ b/hack/boilerplate.go.txt @@ -1,7 +1,2 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ \ No newline at end of file +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 \ No newline at end of file diff --git a/pkg/client/common/http.go b/pkg/client/common/http.go index 66b46c6f0..d02a21fcf 100644 --- a/pkg/client/common/http.go +++ b/pkg/client/common/http.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package common import ( diff --git a/pkg/client/common/types.go b/pkg/client/common/types.go index d1d67b4e2..04073073a 100644 --- a/pkg/client/common/types.go +++ b/pkg/client/common/types.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package common import "context" diff --git a/pkg/client/mondooclient/client.go b/pkg/client/mondooclient/client.go index 68a53cc5f..a303338a4 100644 --- a/pkg/client/mondooclient/client.go +++ b/pkg/client/mondooclient/client.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package mondooclient diff --git a/pkg/client/mondooclient/fakeserver/fakeserver.go b/pkg/client/mondooclient/fakeserver/fakeserver.go index 13452398c..d6d00948c 100644 --- a/pkg/client/mondooclient/fakeserver/fakeserver.go +++ b/pkg/client/mondooclient/fakeserver/fakeserver.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package fakeserver import ( diff --git a/pkg/client/mondooclient/types.go b/pkg/client/mondooclient/types.go index ba73c4f90..426d53f71 100644 --- a/pkg/client/mondooclient/types.go +++ b/pkg/client/mondooclient/types.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package mondooclient import ( diff --git a/pkg/client/scanapiclient/client.go b/pkg/client/scanapiclient/client.go index 12450cf0e..ed0c3b002 100644 --- a/pkg/client/scanapiclient/client.go +++ b/pkg/client/scanapiclient/client.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package scanapiclient import ( diff --git a/pkg/client/scanapiclient/types.go b/pkg/client/scanapiclient/types.go index 35d06d721..72a7a1493 100644 --- a/pkg/client/scanapiclient/types.go +++ b/pkg/client/scanapiclient/types.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package scanapiclient import ( diff --git a/pkg/utils/k8s/api.go b/pkg/utils/k8s/api.go index bbda509f6..c4f25c1e1 100644 --- a/pkg/utils/k8s/api.go +++ b/pkg/utils/k8s/api.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package k8s diff --git a/pkg/utils/k8s/create.go b/pkg/utils/k8s/create.go index d2c0518bd..632d2df06 100644 --- a/pkg/utils/k8s/create.go +++ b/pkg/utils/k8s/create.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package k8s diff --git a/pkg/utils/k8s/create_test.go b/pkg/utils/k8s/create_test.go index af3fa7921..d851682af 100644 --- a/pkg/utils/k8s/create_test.go +++ b/pkg/utils/k8s/create_test.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package k8s diff --git a/pkg/utils/k8s/cron_job.go b/pkg/utils/k8s/cron_job.go index f113cb297..d037504ac 100644 --- a/pkg/utils/k8s/cron_job.go +++ b/pkg/utils/k8s/cron_job.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package k8s diff --git a/pkg/utils/k8s/delete.go b/pkg/utils/k8s/delete.go index 24eb7f0b6..a202c4f81 100644 --- a/pkg/utils/k8s/delete.go +++ b/pkg/utils/k8s/delete.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package k8s diff --git a/pkg/utils/k8s/delete_test.go b/pkg/utils/k8s/delete_test.go index 8d9dc7a03..0bd8de284 100644 --- a/pkg/utils/k8s/delete_test.go +++ b/pkg/utils/k8s/delete_test.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package k8s diff --git a/pkg/utils/k8s/env.go b/pkg/utils/k8s/env.go index a9b7d74fb..c28565794 100644 --- a/pkg/utils/k8s/env.go +++ b/pkg/utils/k8s/env.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package k8s diff --git a/pkg/utils/k8s/env_test.go b/pkg/utils/k8s/env_test.go index ffefdc4a0..27ea87747 100644 --- a/pkg/utils/k8s/env_test.go +++ b/pkg/utils/k8s/env_test.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package k8s diff --git a/pkg/utils/k8s/equality.go b/pkg/utils/k8s/equality.go index cf55b17f2..e0d2620a8 100644 --- a/pkg/utils/k8s/equality.go +++ b/pkg/utils/k8s/equality.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package k8s diff --git a/pkg/utils/k8s/equality_test.go b/pkg/utils/k8s/equality_test.go index 94fad0e2b..eb574ef6f 100644 --- a/pkg/utils/k8s/equality_test.go +++ b/pkg/utils/k8s/equality_test.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package k8s diff --git a/pkg/utils/k8s/get.go b/pkg/utils/k8s/get.go index 9443a44d2..dccbd0046 100644 --- a/pkg/utils/k8s/get.go +++ b/pkg/utils/k8s/get.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package k8s diff --git a/pkg/utils/k8s/integration_mrn.go b/pkg/utils/k8s/integration_mrn.go index 34359bdf7..35617ab23 100644 --- a/pkg/utils/k8s/integration_mrn.go +++ b/pkg/utils/k8s/integration_mrn.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package k8s diff --git a/pkg/utils/k8s/namespace.go b/pkg/utils/k8s/namespace.go index e58786931..6a6194511 100644 --- a/pkg/utils/k8s/namespace.go +++ b/pkg/utils/k8s/namespace.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package k8s diff --git a/pkg/utils/k8s/openshift.go b/pkg/utils/k8s/openshift.go index ed7573a0e..3e886b84e 100644 --- a/pkg/utils/k8s/openshift.go +++ b/pkg/utils/k8s/openshift.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package k8s diff --git a/pkg/utils/k8s/predicate.go b/pkg/utils/k8s/predicate.go index d3691ed44..80deadd95 100644 --- a/pkg/utils/k8s/predicate.go +++ b/pkg/utils/k8s/predicate.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package k8s diff --git a/pkg/utils/k8s/resources_requirements.go b/pkg/utils/k8s/resources_requirements.go index 72b5e4e3c..51f5d6ad4 100644 --- a/pkg/utils/k8s/resources_requirements.go +++ b/pkg/utils/k8s/resources_requirements.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package k8s diff --git a/pkg/utils/k8s/server_version.go b/pkg/utils/k8s/server_version.go index 1089604c5..ce501bb38 100644 --- a/pkg/utils/k8s/server_version.go +++ b/pkg/utils/k8s/server_version.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package k8s diff --git a/pkg/utils/k8s/taints.go b/pkg/utils/k8s/taints.go index 3324b0293..2cf8b6dd5 100644 --- a/pkg/utils/k8s/taints.go +++ b/pkg/utils/k8s/taints.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package k8s diff --git a/pkg/utils/k8s/taints_test.go b/pkg/utils/k8s/taints_test.go index 9cd451715..5bb8a03af 100644 --- a/pkg/utils/k8s/taints_test.go +++ b/pkg/utils/k8s/taints_test.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package k8s diff --git a/pkg/utils/k8s/update.go b/pkg/utils/k8s/update.go index 804653ebe..63017774a 100644 --- a/pkg/utils/k8s/update.go +++ b/pkg/utils/k8s/update.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package k8s diff --git a/pkg/utils/k8s/update_test.go b/pkg/utils/k8s/update_test.go index d54c2968c..b677aff4d 100644 --- a/pkg/utils/k8s/update_test.go +++ b/pkg/utils/k8s/update_test.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package k8s diff --git a/pkg/utils/mondoo/container_image_resolver.go b/pkg/utils/mondoo/container_image_resolver.go index 9b854c34a..45c29852a 100644 --- a/pkg/utils/mondoo/container_image_resolver.go +++ b/pkg/utils/mondoo/container_image_resolver.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package mondoo diff --git a/pkg/utils/mondoo/fake/container_image_resolver.go b/pkg/utils/mondoo/fake/container_image_resolver.go index eb09c6e29..0c0ab2d34 100644 --- a/pkg/utils/mondoo/fake/container_image_resolver.go +++ b/pkg/utils/mondoo/fake/container_image_resolver.go @@ -1,12 +1,7 @@ -package fake - -/* -Copyright 2022 Mondoo, Inc. +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +package fake import ( "fmt" diff --git a/pkg/utils/mondoo/integration.go b/pkg/utils/mondoo/integration.go index 8c27d6aa3..3ab463388 100644 --- a/pkg/utils/mondoo/integration.go +++ b/pkg/utils/mondoo/integration.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package mondoo diff --git a/pkg/utils/mondoo/token_exchange.go b/pkg/utils/mondoo/token_exchange.go index 91f64ba94..a93d52352 100644 --- a/pkg/utils/mondoo/token_exchange.go +++ b/pkg/utils/mondoo/token_exchange.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package mondoo diff --git a/pkg/utils/utils.go b/pkg/utils/utils.go index ae655ea52..ddd0f892a 100644 --- a/pkg/utils/utils.go +++ b/pkg/utils/utils.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package utils diff --git a/pkg/version/version.go b/pkg/version/version.go index bee64cfcc..f511e7ea5 100644 --- a/pkg/version/version.go +++ b/pkg/version/version.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package version diff --git a/tests/framework/utils/rand.go b/tests/framework/utils/rand.go index f2c2e5bf9..78e62de5d 100644 --- a/tests/framework/utils/rand.go +++ b/tests/framework/utils/rand.go @@ -1,10 +1,5 @@ -/* -Copyright 2022 Mondoo, Inc. - -This Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. If a copy of the MPL was not distributed with this -file, You can obtain one at https://mozilla.org/MPL/2.0/. -*/ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 package utils