diff --git a/staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/initializer/initializer.go b/staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/initializer/initializer.go index 398200b92ca..7367cff4691 100644 --- a/staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/initializer/initializer.go +++ b/staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/initializer/initializer.go @@ -23,7 +23,7 @@ import ( webhookconfig "k8s.io/apiserver/pkg/admission/plugin/webhook/config" ) -// WantsServiceResolver defines a fuction that accepts a ServiceResolver for +// WantsServiceResolver defines a function that accepts a ServiceResolver for // admission plugins that need to make calls to services. type WantsServiceResolver interface { SetServiceResolver(webhookconfig.ServiceResolver) diff --git a/staging/src/k8s.io/apiserver/pkg/apis/audit/v1beta1/types.go b/staging/src/k8s.io/apiserver/pkg/apis/audit/v1beta1/types.go index 259599c050e..269828c1501 100644 --- a/staging/src/k8s.io/apiserver/pkg/apis/audit/v1beta1/types.go +++ b/staging/src/k8s.io/apiserver/pkg/apis/audit/v1beta1/types.go @@ -62,7 +62,7 @@ const ( // The stage for events generated once the response body has been completed, and no more bytes // will be sent. StageResponseComplete = "ResponseComplete" - // The stage for events generated when a panic occured. + // The stage for events generated when a panic occurred. StagePanic = "Panic" ) diff --git a/staging/src/k8s.io/apiserver/pkg/authorization/authorizer/interfaces.go b/staging/src/k8s.io/apiserver/pkg/authorization/authorizer/interfaces.go index 594109096b0..95ade009e3d 100644 --- a/staging/src/k8s.io/apiserver/pkg/authorization/authorizer/interfaces.go +++ b/staging/src/k8s.io/apiserver/pkg/authorization/authorizer/interfaces.go @@ -152,7 +152,7 @@ const ( DecisionDeny Decision = iota // DecisionAllow means that an authorizer decided to allow the action. DecisionAllow - // DecisionNoOpionion means that an authorizer has no opinion on wether + // DecisionNoOpionion means that an authorizer has no opinion on whether // to allow or deny an action. DecisionNoOpinion ) diff --git a/staging/src/k8s.io/apiserver/pkg/endpoints/filters/audit.go b/staging/src/k8s.io/apiserver/pkg/endpoints/filters/audit.go index 01fc957c1ce..6b72bfb32fc 100644 --- a/staging/src/k8s.io/apiserver/pkg/endpoints/filters/audit.go +++ b/staging/src/k8s.io/apiserver/pkg/endpoints/filters/audit.go @@ -239,7 +239,7 @@ func (f *fancyResponseWriterDelegator) Hijack() (net.Conn, *bufio.ReadWriter, er // fake a response status before protocol switch happens f.processCode(http.StatusSwitchingProtocols) - // This will be ignored if WriteHeader() function has aready been called. + // This will be ignored if WriteHeader() function has already been called. // It's not guaranteed Audit-ID http header is sent for all requests. // For example, when user run "kubectl exec", apiserver uses a proxy handler // to deal with the request, users can only get http headers returned by kubelet node. diff --git a/staging/src/k8s.io/apiserver/pkg/endpoints/handlers/negotiation/doc.go b/staging/src/k8s.io/apiserver/pkg/endpoints/handlers/negotiation/doc.go index 759db7a0844..80f4feb7272 100644 --- a/staging/src/k8s.io/apiserver/pkg/endpoints/handlers/negotiation/doc.go +++ b/staging/src/k8s.io/apiserver/pkg/endpoints/handlers/negotiation/doc.go @@ -14,5 +14,5 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Package negotation contains media type negotiation logic. +// Package negotiation contains media type negotiation logic. package negotiation // import "k8s.io/apiserver/pkg/endpoints/handlers/negotiation" diff --git a/staging/src/k8s.io/apiserver/pkg/endpoints/handlers/negotiation/negotiate.go b/staging/src/k8s.io/apiserver/pkg/endpoints/handlers/negotiation/negotiate.go index 3edfa675bf8..226c0efe931 100644 --- a/staging/src/k8s.io/apiserver/pkg/endpoints/handlers/negotiation/negotiate.go +++ b/staging/src/k8s.io/apiserver/pkg/endpoints/handlers/negotiation/negotiate.go @@ -112,7 +112,7 @@ func isPrettyPrint(req *http.Request) bool { } } userAgent := req.UserAgent() - // This covers basic all browers and cli http tools + // This covers basic all browsers and cli http tools if strings.HasPrefix(userAgent, "curl") || strings.HasPrefix(userAgent, "Wget") || strings.HasPrefix(userAgent, "Mozilla/5.0") { return true } diff --git a/staging/src/k8s.io/apiserver/pkg/endpoints/metrics/metrics.go b/staging/src/k8s.io/apiserver/pkg/endpoints/metrics/metrics.go index c930fa278c3..fd1bf76b6ca 100644 --- a/staging/src/k8s.io/apiserver/pkg/endpoints/metrics/metrics.go +++ b/staging/src/k8s.io/apiserver/pkg/endpoints/metrics/metrics.go @@ -78,11 +78,11 @@ var ( }, []string{"verb", "resource", "subresource", "scope"}, ) - // DroppedRequests is a number of requests dropped with 'Try again later' reponse" + // DroppedRequests is a number of requests dropped with 'Try again later' response" DroppedRequests = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "apiserver_dropped_requests", - Help: "Number of requests dropped with 'Try again later' reponse", + Help: "Number of requests dropped with 'Try again later' response", }, []string{"requestKind"}, ) diff --git a/staging/src/k8s.io/apiserver/pkg/registry/generic/rest/response_checker_test.go b/staging/src/k8s.io/apiserver/pkg/registry/generic/rest/response_checker_test.go index 0f5c1cddf18..50df0cc93e5 100644 --- a/staging/src/k8s.io/apiserver/pkg/registry/generic/rest/response_checker_test.go +++ b/staging/src/k8s.io/apiserver/pkg/registry/generic/rest/response_checker_test.go @@ -90,6 +90,6 @@ func TestGenericHttpResponseCheckerLimitReader(t *testing.T) { t.Error("unexpected non-error") } if len(err.Error()) != maxReadLength { - t.Errorf("expected lenth of error message: %d, saw: %d", maxReadLength, len(err.Error())) + t.Errorf("expected length of error message: %d, saw: %d", maxReadLength, len(err.Error())) } } diff --git a/staging/src/k8s.io/apiserver/pkg/server/options/etcd.go b/staging/src/k8s.io/apiserver/pkg/server/options/etcd.go index 4d5d1bc22ad..e401193a7ee 100644 --- a/staging/src/k8s.io/apiserver/pkg/server/options/etcd.go +++ b/staging/src/k8s.io/apiserver/pkg/server/options/etcd.go @@ -36,7 +36,7 @@ import ( ) type EtcdOptions struct { - // The value of Paging on StorageConfig will be overriden by the + // The value of Paging on StorageConfig will be overridden by the // calculated feature gate value. StorageConfig storagebackend.Config EncryptionProviderConfigFilepath string diff --git a/staging/src/k8s.io/apiserver/pkg/server/routes/data/swagger/datafile.go b/staging/src/k8s.io/apiserver/pkg/server/routes/data/swagger/datafile.go index a8ae83ddb9a..4accb69ce95 100644 --- a/staging/src/k8s.io/apiserver/pkg/server/routes/data/swagger/datafile.go +++ b/staging/src/k8s.io/apiserver/pkg/server/routes/data/swagger/datafile.go @@ -6498,7 +6498,7 @@ function marked(src, opt, callback) { } catch (e) { e.message += '\nPlease report this to https://github.com/chjj/marked.'; if ((opt || marked.defaults).silent) { - return '

An error occured:

'
+      return '

An error occurred:

'
         + escape(e.message + '', true)
         + '
'; } @@ -7152,7 +7152,7 @@ var Shred = function(options) { this.logCurl = options.logCurl || false; }; -// Most of the real work is done in the request and reponse classes. +// Most of the real work is done in the request and response classes. Shred.Request = require("./shred/request"); Shred.Response = require("./shred/response"); @@ -8351,7 +8351,7 @@ Changelog: a regress. I appologize for that. 2010.05.09 - 0.5: - - bug fix: 0 is now preceeded with a + sign + - bug fix: 0 is now preceded with a + sign - bug fix: the sign was not at the right position on padded results (Kamal Abdali) - switched from GPL to BSD license diff --git a/staging/src/k8s.io/apiserver/pkg/server/storage/storage_factory.go b/staging/src/k8s.io/apiserver/pkg/server/storage/storage_factory.go index 421429f59de..89f617f7de7 100644 --- a/staging/src/k8s.io/apiserver/pkg/server/storage/storage_factory.go +++ b/staging/src/k8s.io/apiserver/pkg/server/storage/storage_factory.go @@ -189,7 +189,7 @@ func (s *DefaultStorageFactory) SetEtcdPrefix(groupResource schema.GroupResource } // SetDisableAPIListChunking allows a specific resource to disable paging at the storage layer, to prevent -// exposure of key names in continuations. This may be overriden by feature gates. +// exposure of key names in continuations. This may be overridden by feature gates. func (s *DefaultStorageFactory) SetDisableAPIListChunking(groupResource schema.GroupResource) { overrides := s.Overrides[groupResource] overrides.disablePaging = true diff --git a/staging/src/k8s.io/apiserver/pkg/storage/etcd/etcd_helper_test.go b/staging/src/k8s.io/apiserver/pkg/storage/etcd/etcd_helper_test.go index dd33c846605..5ba57e48746 100644 --- a/staging/src/k8s.io/apiserver/pkg/storage/etcd/etcd_helper_test.go +++ b/staging/src/k8s.io/apiserver/pkg/storage/etcd/etcd_helper_test.go @@ -348,7 +348,7 @@ func TestGetNotFoundErr(t *testing.T) { var got example.Pod err := helper.Get(context.TODO(), boguskey, "", &got, false) if !storage.IsNotFound(err) { - t.Errorf("Unexpected reponse on key=%v, err=%v", boguskey, err) + t.Errorf("Unexpected response on key=%v, err=%v", boguskey, err) } } diff --git a/staging/src/k8s.io/apiserver/pkg/storage/etcd/etcd_watcher.go b/staging/src/k8s.io/apiserver/pkg/storage/etcd/etcd_watcher.go index d86cd50ebab..7c300b43052 100644 --- a/staging/src/k8s.io/apiserver/pkg/storage/etcd/etcd_watcher.go +++ b/staging/src/k8s.io/apiserver/pkg/storage/etcd/etcd_watcher.go @@ -76,7 +76,7 @@ type etcdWatcher struct { valueTransformer ValueTransformer list bool // If we're doing a recursive watch, should be true. - quorum bool // If we enable quorum, shoule be true + quorum bool // If we enable quorum, should be true include includeFunc pred storage.SelectionPredicate diff --git a/staging/src/k8s.io/apiserver/pkg/storage/etcd3/store_test.go b/staging/src/k8s.io/apiserver/pkg/storage/etcd3/store_test.go index dcade283184..d5937a9dc8c 100644 --- a/staging/src/k8s.io/apiserver/pkg/storage/etcd3/store_test.go +++ b/staging/src/k8s.io/apiserver/pkg/storage/etcd3/store_test.go @@ -1186,7 +1186,7 @@ func testSetup(t *testing.T) (context.Context, *store, *integration.ClusterV3) { return ctx, store, cluster } -// testPropogateStore helps propogates store with objects, automates key generation, and returns +// testPropogateStore helps propagates store with objects, automates key generation, and returns // keys and stored objects. func testPropogateStore(ctx context.Context, t *testing.T, store *store, obj *example.Pod) (string, *example.Pod) { // Setup store with a key and grab the output for returning. diff --git a/staging/src/k8s.io/apiserver/pkg/storage/watch_cache.go b/staging/src/k8s.io/apiserver/pkg/storage/watch_cache.go index 602312b6058..274617385d4 100644 --- a/staging/src/k8s.io/apiserver/pkg/storage/watch_cache.go +++ b/staging/src/k8s.io/apiserver/pkg/storage/watch_cache.go @@ -362,7 +362,7 @@ func (w *watchCache) GetByKey(key string) (interface{}, bool, error) { return w.store.GetByKey(key) } -// Replace takes slice of runtime.Object as a paramater. +// Replace takes slice of runtime.Object as a parameter. func (w *watchCache) Replace(objs []interface{}, resourceVersion string) error { version, err := parseResourceVersion(resourceVersion) if err != nil { diff --git a/staging/src/k8s.io/apiserver/pkg/util/webhook/webhook_test.go b/staging/src/k8s.io/apiserver/pkg/util/webhook/webhook_test.go index 3bda51bb894..8485e4f8950 100644 --- a/staging/src/k8s.io/apiserver/pkg/util/webhook/webhook_test.go +++ b/staging/src/k8s.io/apiserver/pkg/util/webhook/webhook_test.go @@ -230,7 +230,7 @@ func TestKubeConfigFile(t *testing.T) { errRegex: "tls: found a certificate rather than a key in the PEM for the private key", }, { - test: "valid configuration (certificate data embeded in config)", + test: "valid configuration (certificate data embedded in config)", cluster: &defaultCluster, user: &defaultUser, errRegex: "", diff --git a/staging/src/k8s.io/apiserver/plugin/pkg/audit/webhook/webhook.go b/staging/src/k8s.io/apiserver/plugin/pkg/audit/webhook/webhook.go index 7f390ac57fb..247f9444024 100644 --- a/staging/src/k8s.io/apiserver/plugin/pkg/audit/webhook/webhook.go +++ b/staging/src/k8s.io/apiserver/plugin/pkg/audit/webhook/webhook.go @@ -357,7 +357,7 @@ func (b *batchBackend) sendBatchEvents(events []auditinternal.Event) { b.reqMutex.RLock() go func() { // Execute the webhook POST in a goroutine to keep it from blocking. - // This lets the webhook continue to drain the queue immediatly. + // This lets the webhook continue to drain the queue immediately. defer b.reqMutex.RUnlock() defer runtime.HandleCrash() diff --git a/staging/src/k8s.io/apiserver/plugin/pkg/audit/webhook/webhook_test.go b/staging/src/k8s.io/apiserver/plugin/pkg/audit/webhook/webhook_test.go index 62c09fb3557..fa616ff2ca7 100644 --- a/staging/src/k8s.io/apiserver/plugin/pkg/audit/webhook/webhook_test.go +++ b/staging/src/k8s.io/apiserver/plugin/pkg/audit/webhook/webhook_test.go @@ -42,7 +42,7 @@ import ( "k8s.io/client-go/tools/clientcmd/api/v1" ) -// newWebhookHandler returns a handler which recieves webhook events and decodes the +// newWebhookHandler returns a handler which receives webhook events and decodes the // request body. The caller passes a callback which is called on each webhook POST. // The object passed to cb is of the same type as list. func newWebhookHandler(t *testing.T, list runtime.Object, cb func(events runtime.Object)) http.Handler { diff --git a/staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/webhook.go b/staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/webhook.go index e9efac307c6..d00e65be523 100644 --- a/staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/webhook.go +++ b/staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/webhook.go @@ -100,7 +100,7 @@ func newWithBackoff(subjectAccessReview authorizationclient.SubjectAccessReviewI // Authorize makes a REST request to the remote service describing the attempted action as a JSON // serialized api.authorization.v1beta1.SubjectAccessReview object. An example request body is -// provided bellow. +// provided below. // // { // "apiVersion": "authorization.k8s.io/v1beta1",