From 74f98c0edec6fb2e1d6be31e4850706807503e54 Mon Sep 17 00:00:00 2001 From: Andrei Kvapil Date: Mon, 4 Nov 2024 17:30:17 +0100 Subject: [PATCH] Update Copyright Signed-off-by: Andrei Kvapil --- hack/boilerplate.go.txt | 16 ++++++++++++++++ pkg/apis/apps/fuzzer/fuzzer.go | 4 ++-- pkg/apis/apps/install/install.go | 4 ++-- pkg/apis/apps/install/roundtrip_test.go | 4 ++-- pkg/apis/apps/register.go | 16 ++++++++++++++++ pkg/apis/apps/v1alpha1/doc.go | 2 +- pkg/apis/apps/v1alpha1/register.go | 2 +- pkg/apis/apps/v1alpha1/types.go | 2 +- .../apps/v1alpha1/zz_generated.conversion.go | 2 +- pkg/apis/apps/v1alpha1/zz_generated.deepcopy.go | 2 +- pkg/apis/apps/v1alpha1/zz_generated.defaults.go | 2 +- pkg/apis/apps/validation/validation.go | 4 ++-- pkg/apiserver/apiserver.go | 16 ++++++++++++++++ pkg/apiserver/scheme_test.go | 4 ++-- pkg/cmd/server/start.go | 2 +- pkg/cmd/server/start_test.go | 14 +++++++------- pkg/config/config.go | 16 ++++++++++++++++ .../apps/v1alpha1/application.go | 2 +- .../apps/v1alpha1/applicationspec.go | 2 +- .../applyconfiguration/internal/internal.go | 2 +- pkg/generated/applyconfiguration/utils.go | 2 +- .../listers/apps/v1alpha1/application.go | 2 +- .../listers/apps/v1alpha1/expansion_generated.go | 2 +- pkg/generated/openapi/zz_generated.openapi.go | 2 +- pkg/registry/apps/application/rest.go | 16 ++++++++++++++++ pkg/registry/registry.go | 16 ++++++++++++++++ 26 files changed, 127 insertions(+), 31 deletions(-) create mode 100644 hack/boilerplate.go.txt diff --git a/hack/boilerplate.go.txt b/hack/boilerplate.go.txt new file mode 100644 index 000000000..b10e59a59 --- /dev/null +++ b/hack/boilerplate.go.txt @@ -0,0 +1,16 @@ +/* +Copyright 2024 The Cozystack 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. +*/ + diff --git a/pkg/apis/apps/fuzzer/fuzzer.go b/pkg/apis/apps/fuzzer/fuzzer.go index 480a580b2..be35c0e19 100644 --- a/pkg/apis/apps/fuzzer/fuzzer.go +++ b/pkg/apis/apps/fuzzer/fuzzer.go @@ -1,5 +1,5 @@ /* -Copyright 2017 The Kubernetes Authors. +Copyright 2024 The Cozystack Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ limitations under the License. package fuzzer import ( - fuzz "github.com/google/gofuzz" "github.com/aenix.io/cozystack/pkg/apis/apps" + fuzz "github.com/google/gofuzz" runtimeserializer "k8s.io/apimachinery/pkg/runtime/serializer" ) diff --git a/pkg/apis/apps/install/install.go b/pkg/apis/apps/install/install.go index 986ea435e..2b6ae886d 100644 --- a/pkg/apis/apps/install/install.go +++ b/pkg/apis/apps/install/install.go @@ -1,5 +1,5 @@ /* -Copyright 2017 The Kubernetes Authors. +Copyright 2024 The Cozystack Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -17,9 +17,9 @@ limitations under the License. package install import ( + appsv1alpha1 "github.com/aenix.io/cozystack/pkg/apis/apps/v1alpha1" "k8s.io/apimachinery/pkg/runtime" utilruntime "k8s.io/apimachinery/pkg/util/runtime" - appsv1alpha1 "github.com/aenix.io/cozystack/pkg/apis/apps/v1alpha1" ) // Install registers the API group and adds types to a scheme diff --git a/pkg/apis/apps/install/roundtrip_test.go b/pkg/apis/apps/install/roundtrip_test.go index 93e833773..48f6fad07 100644 --- a/pkg/apis/apps/install/roundtrip_test.go +++ b/pkg/apis/apps/install/roundtrip_test.go @@ -1,5 +1,5 @@ /* -Copyright 2017 The Kubernetes Authors. +Copyright 2024 The Cozystack Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -19,8 +19,8 @@ package install import ( "testing" - "k8s.io/apimachinery/pkg/api/apitesting/roundtrip" appsfuzzer "github.com/aenix.io/cozystack/pkg/apis/apps/fuzzer" + "k8s.io/apimachinery/pkg/api/apitesting/roundtrip" ) func TestRoundTripTypes(t *testing.T) { diff --git a/pkg/apis/apps/register.go b/pkg/apis/apps/register.go index b85ccf911..9ec038649 100644 --- a/pkg/apis/apps/register.go +++ b/pkg/apis/apps/register.go @@ -1,3 +1,19 @@ +/* +Copyright 2024 The Cozystack 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. +*/ + package apps // GroupName is the group name used in this package diff --git a/pkg/apis/apps/v1alpha1/doc.go b/pkg/apis/apps/v1alpha1/doc.go index ea5da9bdf..a696dc63a 100644 --- a/pkg/apis/apps/v1alpha1/doc.go +++ b/pkg/apis/apps/v1alpha1/doc.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright 2024 The Cozystack Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pkg/apis/apps/v1alpha1/register.go b/pkg/apis/apps/v1alpha1/register.go index 8b70bb729..dc48a6128 100644 --- a/pkg/apis/apps/v1alpha1/register.go +++ b/pkg/apis/apps/v1alpha1/register.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright 2024 The Cozystack Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pkg/apis/apps/v1alpha1/types.go b/pkg/apis/apps/v1alpha1/types.go index 90ba1fe79..5a21d270c 100644 --- a/pkg/apis/apps/v1alpha1/types.go +++ b/pkg/apis/apps/v1alpha1/types.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright 2024 The Cozystack Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pkg/apis/apps/v1alpha1/zz_generated.conversion.go b/pkg/apis/apps/v1alpha1/zz_generated.conversion.go index 86b64b828..a379c96d2 100644 --- a/pkg/apis/apps/v1alpha1/zz_generated.conversion.go +++ b/pkg/apis/apps/v1alpha1/zz_generated.conversion.go @@ -2,7 +2,7 @@ // +build !ignore_autogenerated /* -Copyright The Kubernetes Authors. +Copyright 2024 The Cozystack Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pkg/apis/apps/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/apps/v1alpha1/zz_generated.deepcopy.go index e7f2e39c5..1d6082efe 100644 --- a/pkg/apis/apps/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/apps/v1alpha1/zz_generated.deepcopy.go @@ -2,7 +2,7 @@ // +build !ignore_autogenerated /* -Copyright The Kubernetes Authors. +Copyright 2024 The Cozystack Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pkg/apis/apps/v1alpha1/zz_generated.defaults.go b/pkg/apis/apps/v1alpha1/zz_generated.defaults.go index 5070cb91b..dc03a5bbd 100644 --- a/pkg/apis/apps/v1alpha1/zz_generated.defaults.go +++ b/pkg/apis/apps/v1alpha1/zz_generated.defaults.go @@ -2,7 +2,7 @@ // +build !ignore_autogenerated /* -Copyright The Kubernetes Authors. +Copyright 2024 The Cozystack Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pkg/apis/apps/validation/validation.go b/pkg/apis/apps/validation/validation.go index 9ccc24b38..bac817c18 100644 --- a/pkg/apis/apps/validation/validation.go +++ b/pkg/apis/apps/validation/validation.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2024 The Cozystack Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -17,8 +17,8 @@ limitations under the License. package validation import ( - "k8s.io/apimachinery/pkg/util/validation/field" "github.com/aenix.io/cozystack/pkg/apis/apps" + "k8s.io/apimachinery/pkg/util/validation/field" ) // ValidateApplication validates a Application. diff --git a/pkg/apiserver/apiserver.go b/pkg/apiserver/apiserver.go index ff2343c48..f5fbe4b75 100644 --- a/pkg/apiserver/apiserver.go +++ b/pkg/apiserver/apiserver.go @@ -1,3 +1,19 @@ +/* +Copyright 2024 The Cozystack 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. +*/ + package apiserver import ( diff --git a/pkg/apiserver/scheme_test.go b/pkg/apiserver/scheme_test.go index d903219a3..e51f29ae0 100644 --- a/pkg/apiserver/scheme_test.go +++ b/pkg/apiserver/scheme_test.go @@ -1,5 +1,5 @@ /* -Copyright 2017 The Kubernetes Authors. +Copyright 2024 The Cozystack Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -19,8 +19,8 @@ package apiserver import ( "testing" - "k8s.io/apimachinery/pkg/api/apitesting/roundtrip" appsfuzzer "github.com/aenix.io/cozystack/pkg/apis/apps/fuzzer" + "k8s.io/apimachinery/pkg/api/apitesting/roundtrip" ) func TestRoundTripTypes(t *testing.T) { diff --git a/pkg/cmd/server/start.go b/pkg/cmd/server/start.go index 5923b3c7a..8cc910ee2 100644 --- a/pkg/cmd/server/start.go +++ b/pkg/cmd/server/start.go @@ -1,5 +1,5 @@ /* -Copyright 2016 The Kubernetes Authors. +Copyright 2024 The Cozystack Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pkg/cmd/server/start_test.go b/pkg/cmd/server/start_test.go index cfacdafe8..ddff60d92 100644 --- a/pkg/cmd/server/start_test.go +++ b/pkg/cmd/server/start_test.go @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2024 The Cozystack Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -30,31 +30,31 @@ func TestAppsEmulationVersionToKubeEmulationVersion(t *testing.T) { testCases := []struct { desc string - appsEmulationVer *version.Version + appsEmulationVer *version.Version expectedKubeEmulationVer *version.Version }{ { desc: "same version as than kube binary", - appsEmulationVer: version.MajorMinor(1, 2), + appsEmulationVer: version.MajorMinor(1, 2), expectedKubeEmulationVer: defaultKubeEffectiveVersion.BinaryVersion(), }, { desc: "1 version lower than kube binary", - appsEmulationVer: version.MajorMinor(1, 1), + appsEmulationVer: version.MajorMinor(1, 1), expectedKubeEmulationVer: defaultKubeEffectiveVersion.BinaryVersion().OffsetMinor(-1), }, { desc: "2 versions lower than kube binary", - appsEmulationVer: version.MajorMinor(1, 0), + appsEmulationVer: version.MajorMinor(1, 0), expectedKubeEmulationVer: defaultKubeEffectiveVersion.BinaryVersion().OffsetMinor(-2), }, { desc: "capped at kube binary", - appsEmulationVer: version.MajorMinor(1, 3), + appsEmulationVer: version.MajorMinor(1, 3), expectedKubeEmulationVer: defaultKubeEffectiveVersion.BinaryVersion(), }, { - desc: "no mapping", + desc: "no mapping", appsEmulationVer: version.MajorMinor(2, 10), }, } diff --git a/pkg/config/config.go b/pkg/config/config.go index f4b4007ca..1317b8c2f 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -1,3 +1,19 @@ +/* +Copyright 2024 The Cozystack 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. +*/ + package config import ( diff --git a/pkg/generated/applyconfiguration/apps/v1alpha1/application.go b/pkg/generated/applyconfiguration/apps/v1alpha1/application.go index 84594aad7..65de594ef 100644 --- a/pkg/generated/applyconfiguration/apps/v1alpha1/application.go +++ b/pkg/generated/applyconfiguration/apps/v1alpha1/application.go @@ -1,5 +1,5 @@ /* -Copyright The Kubernetes Authors. +Copyright 2024 The Cozystack Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pkg/generated/applyconfiguration/apps/v1alpha1/applicationspec.go b/pkg/generated/applyconfiguration/apps/v1alpha1/applicationspec.go index e94d2075a..3924ebd47 100644 --- a/pkg/generated/applyconfiguration/apps/v1alpha1/applicationspec.go +++ b/pkg/generated/applyconfiguration/apps/v1alpha1/applicationspec.go @@ -1,5 +1,5 @@ /* -Copyright The Kubernetes Authors. +Copyright 2024 The Cozystack Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pkg/generated/applyconfiguration/internal/internal.go b/pkg/generated/applyconfiguration/internal/internal.go index 1064e227e..760f1229a 100644 --- a/pkg/generated/applyconfiguration/internal/internal.go +++ b/pkg/generated/applyconfiguration/internal/internal.go @@ -1,5 +1,5 @@ /* -Copyright The Kubernetes Authors. +Copyright 2024 The Cozystack Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pkg/generated/applyconfiguration/utils.go b/pkg/generated/applyconfiguration/utils.go index ebb939ffb..df2a5db64 100644 --- a/pkg/generated/applyconfiguration/utils.go +++ b/pkg/generated/applyconfiguration/utils.go @@ -1,5 +1,5 @@ /* -Copyright The Kubernetes Authors. +Copyright 2024 The Cozystack Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pkg/generated/listers/apps/v1alpha1/application.go b/pkg/generated/listers/apps/v1alpha1/application.go index 077d7ff37..bf35b20bf 100644 --- a/pkg/generated/listers/apps/v1alpha1/application.go +++ b/pkg/generated/listers/apps/v1alpha1/application.go @@ -1,5 +1,5 @@ /* -Copyright The Kubernetes Authors. +Copyright 2024 The Cozystack Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pkg/generated/listers/apps/v1alpha1/expansion_generated.go b/pkg/generated/listers/apps/v1alpha1/expansion_generated.go index f31b9c747..79a06bab8 100644 --- a/pkg/generated/listers/apps/v1alpha1/expansion_generated.go +++ b/pkg/generated/listers/apps/v1alpha1/expansion_generated.go @@ -1,5 +1,5 @@ /* -Copyright The Kubernetes Authors. +Copyright 2024 The Cozystack Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pkg/generated/openapi/zz_generated.openapi.go b/pkg/generated/openapi/zz_generated.openapi.go index c255b4b25..1b53cf7e5 100644 --- a/pkg/generated/openapi/zz_generated.openapi.go +++ b/pkg/generated/openapi/zz_generated.openapi.go @@ -2,7 +2,7 @@ // +build !ignore_autogenerated /* -Copyright The Kubernetes Authors. +Copyright 2024 The Cozystack Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pkg/registry/apps/application/rest.go b/pkg/registry/apps/application/rest.go index 80025b613..1fbb4a874 100644 --- a/pkg/registry/apps/application/rest.go +++ b/pkg/registry/apps/application/rest.go @@ -1,3 +1,19 @@ +/* +Copyright 2024 The Cozystack 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. +*/ + package application import ( diff --git a/pkg/registry/registry.go b/pkg/registry/registry.go index 3104e7b77..6e1983564 100644 --- a/pkg/registry/registry.go +++ b/pkg/registry/registry.go @@ -1,3 +1,19 @@ +/* +Copyright 2024 The Cozystack 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. +*/ + package registry import (