From 76174b8af8cfd938018b04198595d65b48a69334 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Carlos=20Ch=C3=A1vez?= Date: Thu, 8 Feb 2024 13:33:30 +0100 Subject: [PATCH] chore: adds consistent vanity import to files and provides tooling for verifying and updating them. (#120642) * chore: drops update vanity imports from script. * chore: changes copyright year to 2024. * chore: makes lint happy. Kubernetes-commit: 6d6398ef9266abce3518a4c9a3d4e4d8feeffdc1 --- applyconfigurations/doc.go | 2 +- examples/fake-client/doc.go | 2 +- go.mod | 8 ++++---- go.sum | 8 ++++---- informers/doc.go | 2 +- kubernetes/doc.go | 2 +- listers/doc.go | 2 +- scale/scheme/appsint/doc.go | 2 +- scale/scheme/doc.go | 2 +- scale/scheme/extensionsint/doc.go | 2 +- tools/clientcmd/api/doc.go | 2 +- tools/clientcmd/api/v1/doc.go | 2 +- 12 files changed, 18 insertions(+), 18 deletions(-) diff --git a/applyconfigurations/doc.go b/applyconfigurations/doc.go index 8efc9523..ac426c60 100644 --- a/applyconfigurations/doc.go +++ b/applyconfigurations/doc.go @@ -148,4 +148,4 @@ reconciliation code that performs a "read/modify-in-place/update" (or patch) wor // apply applied, err := deploymentClient.Apply(ctx, extractedDeployment, metav1.ApplyOptions{FieldManager: fieldMgr}) */ -package applyconfigurations +package applyconfigurations // import "k8s.io/client-go/applyconfigurations" diff --git a/examples/fake-client/doc.go b/examples/fake-client/doc.go index 1c02e5ea..9379376e 100644 --- a/examples/fake-client/doc.go +++ b/examples/fake-client/doc.go @@ -17,4 +17,4 @@ limitations under the License. // Package fakeclient contains examples on how to use fakeclient in tests. // Note: This file is here to avoid warnings on go build since there are no // non-test files in this package. -package fakeclient +package fakeclient // import "k8s.io/client-go/examples/fake-client" diff --git a/go.mod b/go.mod index 5fac448b..8039c211 100644 --- a/go.mod +++ b/go.mod @@ -24,8 +24,8 @@ require ( golang.org/x/term v0.15.0 golang.org/x/time v0.3.0 google.golang.org/protobuf v1.31.0 - k8s.io/api v0.0.0-20240118211853-d5724e467262 - k8s.io/apimachinery v0.0.0-20240118211638-f14778da5523 + k8s.io/api v0.0.0-20240124211858-f3648a53522e + k8s.io/apimachinery v0.0.0-20240208123330-046ab0dee2aa k8s.io/klog/v2 v2.120.1 k8s.io/kube-openapi v0.0.0-20231113174909-778a5567bc1e k8s.io/utils v0.0.0-20230726121419-3b25d923346b @@ -61,6 +61,6 @@ require ( ) replace ( - k8s.io/api => k8s.io/api v0.0.0-20240118211853-d5724e467262 - k8s.io/apimachinery => k8s.io/apimachinery v0.0.0-20240118211638-f14778da5523 + k8s.io/api => k8s.io/api v0.0.0-20240124211858-f3648a53522e + k8s.io/apimachinery => k8s.io/apimachinery v0.0.0-20240208123330-046ab0dee2aa ) diff --git a/go.sum b/go.sum index dfd0392a..45758e89 100644 --- a/go.sum +++ b/go.sum @@ -157,10 +157,10 @@ gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -k8s.io/api v0.0.0-20240118211853-d5724e467262 h1:iP5kk4e+c89xvFLRWdUb7BAYzBV9A//0vBHc9Ob/NUM= -k8s.io/api v0.0.0-20240118211853-d5724e467262/go.mod h1:BZUGwl6J5EvsODp+6ZUA+9p7V4iWxVLcr70rnzIshpA= -k8s.io/apimachinery v0.0.0-20240118211638-f14778da5523 h1:1iJCbQAZv58v4zxd0ECIIMnyYlFsPWa2hmjqGEsv/5g= -k8s.io/apimachinery v0.0.0-20240118211638-f14778da5523/go.mod h1:Oh3ZrffM1/I8O/43oAA+aoOYgSregIXHxcWJB9ZRfQ8= +k8s.io/api v0.0.0-20240124211858-f3648a53522e h1:Lv52wennNKzlcDrBtANztawHC8xaTllHm51WUKIP0Ew= +k8s.io/api v0.0.0-20240124211858-f3648a53522e/go.mod h1:BZUGwl6J5EvsODp+6ZUA+9p7V4iWxVLcr70rnzIshpA= +k8s.io/apimachinery v0.0.0-20240208123330-046ab0dee2aa h1:zOD6FZO+pxwGd9cLFzPJ4U94TujpovDw5/3t0HTNa40= +k8s.io/apimachinery v0.0.0-20240208123330-046ab0dee2aa/go.mod h1:Oh3ZrffM1/I8O/43oAA+aoOYgSregIXHxcWJB9ZRfQ8= k8s.io/klog/v2 v2.120.1 h1:QXU6cPEOIslTGvZaXvFWiP9VKyeet3sawzTOvdXb4Vw= k8s.io/klog/v2 v2.120.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE= k8s.io/kube-openapi v0.0.0-20231113174909-778a5567bc1e h1:snPmy96t93RredGRjKfMFt+gvxuVAncqSAyBveJtr4Q= diff --git a/informers/doc.go b/informers/doc.go index 231bffb6..f37c3e4d 100644 --- a/informers/doc.go +++ b/informers/doc.go @@ -15,4 +15,4 @@ limitations under the License. */ // Package informers provides generated informers for Kubernetes APIs. -package informers +package informers // import "k8s.io/client-go/informers" diff --git a/kubernetes/doc.go b/kubernetes/doc.go index 9cef4242..e052f81b 100644 --- a/kubernetes/doc.go +++ b/kubernetes/doc.go @@ -16,4 +16,4 @@ limitations under the License. // Package kubernetes holds packages which implement a clientset for Kubernetes // APIs. -package kubernetes +package kubernetes // import "k8s.io/client-go/kubernetes" diff --git a/listers/doc.go b/listers/doc.go index da6a8040..96c330c9 100644 --- a/listers/doc.go +++ b/listers/doc.go @@ -15,4 +15,4 @@ limitations under the License. */ // Package listers provides generated listers for Kubernetes APIs. -package listers +package listers // import "k8s.io/client-go/listers" diff --git a/scale/scheme/appsint/doc.go b/scale/scheme/appsint/doc.go index 16f29e2a..735efb95 100644 --- a/scale/scheme/appsint/doc.go +++ b/scale/scheme/appsint/doc.go @@ -19,4 +19,4 @@ limitations under the License. // It doesn't have any of its own types -- it's just necessary to // get the expected behavior out of runtime.Scheme.ConvertToVersion // and associated methods. -package appsint +package appsint // import "k8s.io/client-go/scale/scheme/appsint" diff --git a/scale/scheme/doc.go b/scale/scheme/doc.go index 0203d6d5..248b448a 100644 --- a/scale/scheme/doc.go +++ b/scale/scheme/doc.go @@ -19,4 +19,4 @@ limitations under the License. // Package scheme contains a runtime.Scheme to be used for serializing // and deserializing different versions of Scale, and for converting // in between them. -package scheme +package scheme // import "k8s.io/client-go/scale/scheme" diff --git a/scale/scheme/extensionsint/doc.go b/scale/scheme/extensionsint/doc.go index 9aaac608..dedff2d7 100644 --- a/scale/scheme/extensionsint/doc.go +++ b/scale/scheme/extensionsint/doc.go @@ -19,4 +19,4 @@ limitations under the License. // It doesn't have any of its own types -- it's just necessary to // get the expected behavior out of runtime.Scheme.ConvertToVersion // and associated methods. -package extensionsint +package extensionsint // import "k8s.io/client-go/scale/scheme/extensionsint" diff --git a/tools/clientcmd/api/doc.go b/tools/clientcmd/api/doc.go index 5871575a..fd913a30 100644 --- a/tools/clientcmd/api/doc.go +++ b/tools/clientcmd/api/doc.go @@ -16,4 +16,4 @@ limitations under the License. // +k8s:deepcopy-gen=package -package api +package api // import "k8s.io/client-go/tools/clientcmd/api" diff --git a/tools/clientcmd/api/v1/doc.go b/tools/clientcmd/api/v1/doc.go index 3ccdebc1..9e483e9d 100644 --- a/tools/clientcmd/api/v1/doc.go +++ b/tools/clientcmd/api/v1/doc.go @@ -18,4 +18,4 @@ limitations under the License. // +k8s:deepcopy-gen=package // +k8s:defaulter-gen=Kind -package v1 +package v1 // import "k8s.io/client-go/tools/clientcmd/api/v1"