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
This commit is contained in:
José Carlos Chávez 2024-02-08 13:33:30 +01:00 committed by Kubernetes Publisher
parent 8092c71d36
commit 76174b8af8
12 changed files with 18 additions and 18 deletions

View File

@ -148,4 +148,4 @@ reconciliation code that performs a "read/modify-in-place/update" (or patch) wor
// apply // apply
applied, err := deploymentClient.Apply(ctx, extractedDeployment, metav1.ApplyOptions{FieldManager: fieldMgr}) applied, err := deploymentClient.Apply(ctx, extractedDeployment, metav1.ApplyOptions{FieldManager: fieldMgr})
*/ */
package applyconfigurations package applyconfigurations // import "k8s.io/client-go/applyconfigurations"

View File

@ -17,4 +17,4 @@ limitations under the License.
// Package fakeclient contains examples on how to use fakeclient in tests. // 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 // Note: This file is here to avoid warnings on go build since there are no
// non-test files in this package. // non-test files in this package.
package fakeclient package fakeclient // import "k8s.io/client-go/examples/fake-client"

8
go.mod
View File

@ -24,8 +24,8 @@ require (
golang.org/x/term v0.15.0 golang.org/x/term v0.15.0
golang.org/x/time v0.3.0 golang.org/x/time v0.3.0
google.golang.org/protobuf v1.31.0 google.golang.org/protobuf v1.31.0
k8s.io/api v0.0.0-20240118211853-d5724e467262 k8s.io/api v0.0.0-20240124211858-f3648a53522e
k8s.io/apimachinery v0.0.0-20240118211638-f14778da5523 k8s.io/apimachinery v0.0.0-20240208123330-046ab0dee2aa
k8s.io/klog/v2 v2.120.1 k8s.io/klog/v2 v2.120.1
k8s.io/kube-openapi v0.0.0-20231113174909-778a5567bc1e k8s.io/kube-openapi v0.0.0-20231113174909-778a5567bc1e
k8s.io/utils v0.0.0-20230726121419-3b25d923346b k8s.io/utils v0.0.0-20230726121419-3b25d923346b
@ -61,6 +61,6 @@ require (
) )
replace ( replace (
k8s.io/api => k8s.io/api v0.0.0-20240118211853-d5724e467262 k8s.io/api => k8s.io/api v0.0.0-20240124211858-f3648a53522e
k8s.io/apimachinery => k8s.io/apimachinery v0.0.0-20240118211638-f14778da5523 k8s.io/apimachinery => k8s.io/apimachinery v0.0.0-20240208123330-046ab0dee2aa
) )

8
go.sum
View File

@ -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.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 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 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-20240124211858-f3648a53522e h1:Lv52wennNKzlcDrBtANztawHC8xaTllHm51WUKIP0Ew=
k8s.io/api v0.0.0-20240118211853-d5724e467262/go.mod h1:BZUGwl6J5EvsODp+6ZUA+9p7V4iWxVLcr70rnzIshpA= k8s.io/api v0.0.0-20240124211858-f3648a53522e/go.mod h1:BZUGwl6J5EvsODp+6ZUA+9p7V4iWxVLcr70rnzIshpA=
k8s.io/apimachinery v0.0.0-20240118211638-f14778da5523 h1:1iJCbQAZv58v4zxd0ECIIMnyYlFsPWa2hmjqGEsv/5g= k8s.io/apimachinery v0.0.0-20240208123330-046ab0dee2aa h1:zOD6FZO+pxwGd9cLFzPJ4U94TujpovDw5/3t0HTNa40=
k8s.io/apimachinery v0.0.0-20240118211638-f14778da5523/go.mod h1:Oh3ZrffM1/I8O/43oAA+aoOYgSregIXHxcWJB9ZRfQ8= 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 h1:QXU6cPEOIslTGvZaXvFWiP9VKyeet3sawzTOvdXb4Vw=
k8s.io/klog/v2 v2.120.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE= k8s.io/klog/v2 v2.120.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE=
k8s.io/kube-openapi v0.0.0-20231113174909-778a5567bc1e h1:snPmy96t93RredGRjKfMFt+gvxuVAncqSAyBveJtr4Q= k8s.io/kube-openapi v0.0.0-20231113174909-778a5567bc1e h1:snPmy96t93RredGRjKfMFt+gvxuVAncqSAyBveJtr4Q=

View File

@ -15,4 +15,4 @@ limitations under the License.
*/ */
// Package informers provides generated informers for Kubernetes APIs. // Package informers provides generated informers for Kubernetes APIs.
package informers package informers // import "k8s.io/client-go/informers"

View File

@ -16,4 +16,4 @@ limitations under the License.
// Package kubernetes holds packages which implement a clientset for Kubernetes // Package kubernetes holds packages which implement a clientset for Kubernetes
// APIs. // APIs.
package kubernetes package kubernetes // import "k8s.io/client-go/kubernetes"

View File

@ -15,4 +15,4 @@ limitations under the License.
*/ */
// Package listers provides generated listers for Kubernetes APIs. // Package listers provides generated listers for Kubernetes APIs.
package listers package listers // import "k8s.io/client-go/listers"

View File

@ -19,4 +19,4 @@ limitations under the License.
// It doesn't have any of its own types -- it's just necessary to // It doesn't have any of its own types -- it's just necessary to
// get the expected behavior out of runtime.Scheme.ConvertToVersion // get the expected behavior out of runtime.Scheme.ConvertToVersion
// and associated methods. // and associated methods.
package appsint package appsint // import "k8s.io/client-go/scale/scheme/appsint"

View File

@ -19,4 +19,4 @@ limitations under the License.
// Package scheme contains a runtime.Scheme to be used for serializing // Package scheme contains a runtime.Scheme to be used for serializing
// and deserializing different versions of Scale, and for converting // and deserializing different versions of Scale, and for converting
// in between them. // in between them.
package scheme package scheme // import "k8s.io/client-go/scale/scheme"

View File

@ -19,4 +19,4 @@ limitations under the License.
// It doesn't have any of its own types -- it's just necessary to // It doesn't have any of its own types -- it's just necessary to
// get the expected behavior out of runtime.Scheme.ConvertToVersion // get the expected behavior out of runtime.Scheme.ConvertToVersion
// and associated methods. // and associated methods.
package extensionsint package extensionsint // import "k8s.io/client-go/scale/scheme/extensionsint"

View File

@ -16,4 +16,4 @@ limitations under the License.
// +k8s:deepcopy-gen=package // +k8s:deepcopy-gen=package
package api package api // import "k8s.io/client-go/tools/clientcmd/api"

View File

@ -18,4 +18,4 @@ limitations under the License.
// +k8s:deepcopy-gen=package // +k8s:deepcopy-gen=package
// +k8s:defaulter-gen=Kind // +k8s:defaulter-gen=Kind
package v1 package v1 // import "k8s.io/client-go/tools/clientcmd/api/v1"