fix typo in client-go

Kubernetes-commit: 86801dee64215e76080fe8df83ffd1fb7df9e093
This commit is contained in:
halfcrazy 2018-02-01 02:33:45 +08:00 committed by Kubernetes Publisher
parent 63d0eb0002
commit b6a34c5a00
10 changed files with 10 additions and 10 deletions

View File

@ -46,7 +46,7 @@ func (c *FakeClient) GetRateLimiter() flowcontrol.RateLimiter {
// Resource returns an API interface to the specified resource for this client's // 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 // 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 { func (c *FakeClient) Resource(resource *metav1.APIResource, namespace string) dynamic.ResourceInterface {
return &FakeResourceClient{ return &FakeResourceClient{
Resource: c.GroupVersion.WithResource(resource.Name), Resource: c.GroupVersion.WithResource(resource.Name),

View File

@ -48,7 +48,7 @@ Running this command will execute the following operations on your cluster:
dependent ReplicaSet resource. Verify with `kubectl get deployments`. dependent ReplicaSet resource. Verify with `kubectl get deployments`.
Each step is separated by an interactive prompt. You must hit the 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 a break to take time to run `kubectl` and inspect the result of the operations
executed. executed.

View File

@ -168,7 +168,7 @@ func (c *namespacedScaleClient) Update(resource schema.GroupResource, scale *aut
// Currently, a /scale endpoint can receive and return different scale types. // Currently, a /scale endpoint can receive and return different scale types.
// Until we have support for the alternative API representations proposal, // 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 // figure out what scale we actually need here
desiredGVK, err := c.client.scaleKindResolver.ScaleForResource(gvr) desiredGVK, err := c.client.scaleKindResolver.ScaleForResource(gvr)

View File

@ -23,7 +23,7 @@ import (
) )
// NB: this can't be in the scheme package, because importing' // 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 // conversions
func TestRoundTrip(t *testing.T) { func TestRoundTrip(t *testing.T) {

View File

@ -17,6 +17,6 @@ limitations under the License.
// Package appsint contains the necessary scaffolding of the // Package appsint contains the necessary scaffolding of the
// internal version of extensions as required by conversion logic. // internal version of extensions as required by conversion logic.
// 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 behavoir out of runtime.Scheme.ConvertToVersion // get the expected behavior out of runtime.Scheme.ConvertToVersion
// and associated methods. // and associated methods.
package appsint package appsint

View File

@ -17,6 +17,6 @@ limitations under the License.
// Package extensionsint contains the necessary scaffolding of the // Package extensionsint contains the necessary scaffolding of the
// internal version of extensions as required by conversion logic. // internal version of extensions as required by conversion logic.
// 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 behavoir out of runtime.Scheme.ConvertToVersion // get the expected behavior out of runtime.Scheme.ConvertToVersion
// and associated methods. // and associated methods.
package extensionsint package extensionsint

View File

@ -23,7 +23,7 @@ location within a Container's file tree for Containers that
need access to the Kubernetes API. need access to the Kubernetes API.
Having a defined format allows: 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 - applications which link clients to be portable across
clusters with different authentication styles (e.g. clusters with different authentication styles (e.g.
some may use SSL Client certs, others may not, etc) some may use SSL Client certs, others may not, etc)

View File

@ -420,7 +420,7 @@ func WriteToFile(config clientcmdapi.Config, filename string) error {
func lockFile(filename string) error { func lockFile(filename string) error {
// TODO: find a way to do this with actual file locks. Will // 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. // Make sure the dir exists before we try to create a lock file.
dir := filepath.Dir(filename) dir := filepath.Dir(filename)

View File

@ -38,7 +38,7 @@ const (
duration365d = time.Hour * 24 * 365 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 { type Config struct {
CommonName string CommonName string
Organization []string Organization []string

View File

@ -293,7 +293,7 @@ func (m *manager) rotateCerts() (bool, error) {
return false, m.updateServerError(err) 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 // 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 // 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. // for bounding the amount of time we wait when a certificate expires.