From 86801dee64215e76080fe8df83ffd1fb7df9e093 Mon Sep 17 00:00:00 2001 From: halfcrazy Date: Thu, 1 Feb 2018 02:33:45 +0800 Subject: [PATCH] fix typo in client-go --- staging/src/k8s.io/client-go/dynamic/fake/client.go | 2 +- .../examples/create-update-delete-deployment/README.md | 2 +- staging/src/k8s.io/client-go/scale/client.go | 2 +- staging/src/k8s.io/client-go/scale/roundtrip_test.go | 2 +- staging/src/k8s.io/client-go/scale/scheme/appsint/doc.go | 2 +- staging/src/k8s.io/client-go/scale/scheme/extensionsint/doc.go | 2 +- staging/src/k8s.io/client-go/tools/auth/clientauth.go | 2 +- staging/src/k8s.io/client-go/tools/clientcmd/loader.go | 2 +- staging/src/k8s.io/client-go/util/cert/cert.go | 2 +- .../k8s.io/client-go/util/certificate/certificate_manager.go | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/staging/src/k8s.io/client-go/dynamic/fake/client.go b/staging/src/k8s.io/client-go/dynamic/fake/client.go index 6c11d4227db9d..8399076c20b41 100644 --- a/staging/src/k8s.io/client-go/dynamic/fake/client.go +++ b/staging/src/k8s.io/client-go/dynamic/fake/client.go @@ -46,7 +46,7 @@ func (c *FakeClient) GetRateLimiter() flowcontrol.RateLimiter { // Resource returns an API interface to the specified resource for this client's // group and version. If resource is not a namespaced resource, then namespace -// is ignored. The ResourceClient inherits the paramater codec of this client +// is ignored. The ResourceClient inherits the parameter codec of this client func (c *FakeClient) Resource(resource *metav1.APIResource, namespace string) dynamic.ResourceInterface { return &FakeResourceClient{ Resource: c.GroupVersion.WithResource(resource.Name), diff --git a/staging/src/k8s.io/client-go/examples/create-update-delete-deployment/README.md b/staging/src/k8s.io/client-go/examples/create-update-delete-deployment/README.md index e9c11a9355be1..47d8dd1ee5448 100644 --- a/staging/src/k8s.io/client-go/examples/create-update-delete-deployment/README.md +++ b/staging/src/k8s.io/client-go/examples/create-update-delete-deployment/README.md @@ -48,7 +48,7 @@ Running this command will execute the following operations on your cluster: dependent ReplicaSet resource. Verify with `kubectl get deployments`. Each step is separated by an interactive prompt. You must hit the -Return key to proceeed to the next step. You can use these prompts as +Return key to proceed to the next step. You can use these prompts as a break to take time to run `kubectl` and inspect the result of the operations executed. diff --git a/staging/src/k8s.io/client-go/scale/client.go b/staging/src/k8s.io/client-go/scale/client.go index a8c903d9eab28..782aca394c643 100644 --- a/staging/src/k8s.io/client-go/scale/client.go +++ b/staging/src/k8s.io/client-go/scale/client.go @@ -168,7 +168,7 @@ func (c *namespacedScaleClient) Update(resource schema.GroupResource, scale *aut // Currently, a /scale endpoint can receive and return different scale types. // Until we have support for the alternative API representations proposal, - // we need to deal with sending and accepting differnet API versions. + // we need to deal with sending and accepting different API versions. // figure out what scale we actually need here desiredGVK, err := c.client.scaleKindResolver.ScaleForResource(gvr) diff --git a/staging/src/k8s.io/client-go/scale/roundtrip_test.go b/staging/src/k8s.io/client-go/scale/roundtrip_test.go index 2ea2887570069..2d3b28bf6c68c 100644 --- a/staging/src/k8s.io/client-go/scale/roundtrip_test.go +++ b/staging/src/k8s.io/client-go/scale/roundtrip_test.go @@ -23,7 +23,7 @@ import ( ) // NB: this can't be in the scheme package, because importing' -// scheme/autoscalingv1 from scheme causes a depedency loop from +// scheme/autoscalingv1 from scheme causes a dependency loop from // conversions func TestRoundTrip(t *testing.T) { diff --git a/staging/src/k8s.io/client-go/scale/scheme/appsint/doc.go b/staging/src/k8s.io/client-go/scale/scheme/appsint/doc.go index 5b1d6841c4c39..16f29e2afee30 100644 --- a/staging/src/k8s.io/client-go/scale/scheme/appsint/doc.go +++ b/staging/src/k8s.io/client-go/scale/scheme/appsint/doc.go @@ -17,6 +17,6 @@ limitations under the License. // Package appsint contains the necessary scaffolding of the // internal version of extensions as required by conversion logic. // It doesn't have any of its own types -- it's just necessary to -// get the expected behavoir out of runtime.Scheme.ConvertToVersion +// get the expected behavior out of runtime.Scheme.ConvertToVersion // and associated methods. package appsint diff --git a/staging/src/k8s.io/client-go/scale/scheme/extensionsint/doc.go b/staging/src/k8s.io/client-go/scale/scheme/extensionsint/doc.go index cc92bf18824db..9aaac6086171a 100644 --- a/staging/src/k8s.io/client-go/scale/scheme/extensionsint/doc.go +++ b/staging/src/k8s.io/client-go/scale/scheme/extensionsint/doc.go @@ -17,6 +17,6 @@ limitations under the License. // Package extensionsint contains the necessary scaffolding of the // internal version of extensions as required by conversion logic. // It doesn't have any of its own types -- it's just necessary to -// get the expected behavoir out of runtime.Scheme.ConvertToVersion +// get the expected behavior out of runtime.Scheme.ConvertToVersion // and associated methods. package extensionsint diff --git a/staging/src/k8s.io/client-go/tools/auth/clientauth.go b/staging/src/k8s.io/client-go/tools/auth/clientauth.go index 2213b987816a2..20339ab9d81bd 100644 --- a/staging/src/k8s.io/client-go/tools/auth/clientauth.go +++ b/staging/src/k8s.io/client-go/tools/auth/clientauth.go @@ -23,7 +23,7 @@ location within a Container's file tree for Containers that need access to the Kubernetes API. Having a defined format allows: - - clients to be implmented in multiple languages + - clients to be implemented in multiple languages - applications which link clients to be portable across clusters with different authentication styles (e.g. some may use SSL Client certs, others may not, etc) diff --git a/staging/src/k8s.io/client-go/tools/clientcmd/loader.go b/staging/src/k8s.io/client-go/tools/clientcmd/loader.go index 7fd9384af07d0..2b6293db46bee 100644 --- a/staging/src/k8s.io/client-go/tools/clientcmd/loader.go +++ b/staging/src/k8s.io/client-go/tools/clientcmd/loader.go @@ -420,7 +420,7 @@ func WriteToFile(config clientcmdapi.Config, filename string) error { func lockFile(filename string) error { // TODO: find a way to do this with actual file locks. Will - // probably need seperate solution for windows and linux. + // probably need separate solution for windows and Linux. // Make sure the dir exists before we try to create a lock file. dir := filepath.Dir(filename) diff --git a/staging/src/k8s.io/client-go/util/cert/cert.go b/staging/src/k8s.io/client-go/util/cert/cert.go index 6854d4152fe91..2c95754c18c30 100644 --- a/staging/src/k8s.io/client-go/util/cert/cert.go +++ b/staging/src/k8s.io/client-go/util/cert/cert.go @@ -38,7 +38,7 @@ const ( duration365d = time.Hour * 24 * 365 ) -// Config containes the basic fields required for creating a certificate +// Config contains the basic fields required for creating a certificate type Config struct { CommonName string Organization []string diff --git a/staging/src/k8s.io/client-go/util/certificate/certificate_manager.go b/staging/src/k8s.io/client-go/util/certificate/certificate_manager.go index 68d90aa7ea1f9..a2d1feaf8c353 100644 --- a/staging/src/k8s.io/client-go/util/certificate/certificate_manager.go +++ b/staging/src/k8s.io/client-go/util/certificate/certificate_manager.go @@ -293,7 +293,7 @@ func (m *manager) rotateCerts() (bool, error) { return false, m.updateServerError(err) } - // Wait for the certificate to be signed. Instead of one long watch, we retry with slighly longer + // Wait for the certificate to be signed. Instead of one long watch, we retry with slightly longer // intervals each time in order to tolerate failures from the server AND to preserve the liveliness // of the cert manager loop. This creates slightly more traffic against the API server in return // for bounding the amount of time we wait when a certificate expires.