From b22e11a2a469e2aea01ae5729b22bd9ff48092ca Mon Sep 17 00:00:00 2001 From: Dario Tranchitella Date: Fri, 8 Jul 2022 16:11:47 +0200 Subject: [PATCH] style: ensuring headers are correct --- .golangci.yml | 4 ++++ api/interfaces.go | 3 +++ controllers/storage.go | 3 +++ e2e/tenant_control_plane_ready_test.go | 3 +++ internal/resources/konnectivity/constants.go | 3 +++ internal/resources/konnectivity/utils.go | 3 +++ internal/resources/kubeadm_utils.go | 3 +++ internal/sql/constants.go | 3 +++ internal/sql/mysql.go | 3 +++ internal/sql/sql.go | 3 +++ internal/types/etcd_storage.go | 3 +++ main.go | 17 ++--------------- 12 files changed, 36 insertions(+), 15 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 698490b..4ae47a9 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -4,6 +4,10 @@ linters-settings: - standard - default - prefix(github.com/clastix/kamaji) + goheader: + template: |- + Copyright 2022 Clastix Labs + SPDX-License-Identifier: Apache-2.0 linters: disable: diff --git a/api/interfaces.go b/api/interfaces.go index 0ca2135..25753f3 100644 --- a/api/interfaces.go +++ b/api/interfaces.go @@ -1,3 +1,6 @@ +// Copyright 2022 Clastix Labs +// SPDX-License-Identifier: Apache-2.0 + package api type KubeadmConfigResourceVersionDependant interface { diff --git a/controllers/storage.go b/controllers/storage.go index 9e56fff..22c4753 100644 --- a/controllers/storage.go +++ b/controllers/storage.go @@ -1,3 +1,6 @@ +// Copyright 2022 Clastix Labs +// SPDX-License-Identifier: Apache-2.0 + package controllers import ( diff --git a/e2e/tenant_control_plane_ready_test.go b/e2e/tenant_control_plane_ready_test.go index 016a3b0..4a15e59 100644 --- a/e2e/tenant_control_plane_ready_test.go +++ b/e2e/tenant_control_plane_ready_test.go @@ -1,3 +1,6 @@ +// Copyright 2022 Clastix Labs +// SPDX-License-Identifier: Apache-2.0 + package e2e import ( diff --git a/internal/resources/konnectivity/constants.go b/internal/resources/konnectivity/constants.go index 6da2dc7..456926e 100644 --- a/internal/resources/konnectivity/constants.go +++ b/internal/resources/konnectivity/constants.go @@ -1,3 +1,6 @@ +// Copyright 2022 Clastix Labs +// SPDX-License-Identifier: Apache-2.0 + package konnectivity const ( diff --git a/internal/resources/konnectivity/utils.go b/internal/resources/konnectivity/utils.go index ed9316c..99a6758 100644 --- a/internal/resources/konnectivity/utils.go +++ b/internal/resources/konnectivity/utils.go @@ -1,3 +1,6 @@ +// Copyright 2022 Clastix Labs +// SPDX-License-Identifier: Apache-2.0 + package konnectivity import ( diff --git a/internal/resources/kubeadm_utils.go b/internal/resources/kubeadm_utils.go index 6fcd11c..8871431 100644 --- a/internal/resources/kubeadm_utils.go +++ b/internal/resources/kubeadm_utils.go @@ -1,3 +1,6 @@ +// Copyright 2022 Clastix Labs +// SPDX-License-Identifier: Apache-2.0 + package resources import ( diff --git a/internal/sql/constants.go b/internal/sql/constants.go index efc9987..2e05ba0 100644 --- a/internal/sql/constants.go +++ b/internal/sql/constants.go @@ -1,3 +1,6 @@ +// Copyright 2022 Clastix Labs +// SPDX-License-Identifier: Apache-2.0 + package sql const ( diff --git a/internal/sql/mysql.go b/internal/sql/mysql.go index c904a65..71ba301 100644 --- a/internal/sql/mysql.go +++ b/internal/sql/mysql.go @@ -1,3 +1,6 @@ +// Copyright 2022 Clastix Labs +// SPDX-License-Identifier: Apache-2.0 + package sql import ( diff --git a/internal/sql/sql.go b/internal/sql/sql.go index a3bce24..28505fb 100644 --- a/internal/sql/sql.go +++ b/internal/sql/sql.go @@ -1,3 +1,6 @@ +// Copyright 2022 Clastix Labs +// SPDX-License-Identifier: Apache-2.0 + package sql import ( diff --git a/internal/types/etcd_storage.go b/internal/types/etcd_storage.go index aa12737..158b856 100644 --- a/internal/types/etcd_storage.go +++ b/internal/types/etcd_storage.go @@ -1,3 +1,6 @@ +// Copyright 2022 Clastix Labs +// SPDX-License-Identifier: Apache-2.0 + package types import ( diff --git a/main.go b/main.go index 2ef07f0..0d77b26 100644 --- a/main.go +++ b/main.go @@ -1,18 +1,5 @@ -/* -Copyright 2021. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ +// Copyright 2022 Clastix Labs +// SPDX-License-Identifier: Apache-2.0 package main