Skip to content

Commit

Permalink
fix typo in client-go
Browse files Browse the repository at this point in the history
  • Loading branch information
halfcrazy committed Feb 4, 2018
1 parent c52192f commit 86801de
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion staging/src/k8s.io/client-go/dynamic/fake/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
<kbd>Return</kbd> key to proceeed to the next step. You can use these prompts as
<kbd>Return</kbd> 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.

Expand Down
2 changes: 1 addition & 1 deletion staging/src/k8s.io/client-go/scale/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion staging/src/k8s.io/client-go/scale/roundtrip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion staging/src/k8s.io/client-go/scale/scheme/appsint/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion staging/src/k8s.io/client-go/tools/auth/clientauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion staging/src/k8s.io/client-go/tools/clientcmd/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion staging/src/k8s.io/client-go/util/cert/cert.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 86801de

Please sign in to comment.