From 9beeb592165123958bcb62e388ac480bf98f5a0e Mon Sep 17 00:00:00 2001 From: Di Xu Date: Fri, 9 Feb 2018 14:53:53 +0800 Subject: [PATCH] fix all the typos across the project Kubernetes-commit: 48388fec7eaad4ac8d84fbe20673ffacf41964a1 --- pkg/authorization/union/union.go | 2 +- pkg/endpoints/metrics/metrics.go | 2 +- pkg/storage/value/encrypt/envelope/grpc_service.go | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/authorization/union/union.go b/pkg/authorization/union/union.go index 3246e4c07..15753789c 100644 --- a/pkg/authorization/union/union.go +++ b/pkg/authorization/union/union.go @@ -20,7 +20,7 @@ limitations under the License. // subauthorizer returns a NoOpinion, then the union authorizer moves onto the // next authorizer or, if the subauthorizer was the last authorizer, returns // NoOpinion as the aggregate decision. I.e. union authorizer creates an -// aggregate decision and supports short-circut allows and denies from +// aggregate decision and supports short-circuit allows and denies from // subauthorizers. package union diff --git a/pkg/endpoints/metrics/metrics.go b/pkg/endpoints/metrics/metrics.go index 7cbb67153..d3f155c11 100644 --- a/pkg/endpoints/metrics/metrics.go +++ b/pkg/endpoints/metrics/metrics.go @@ -86,7 +86,7 @@ var ( }, []string{"requestKind"}, ) - // Becasue of volatality of the base metric this is pre-aggregated one. Instead of reporing current usage all the time + // Because of volatality of the base metric this is pre-aggregated one. Instead of reporing current usage all the time // it reports maximal usage during the last second. currentInflightRequests = prometheus.NewGaugeVec( prometheus.GaugeOpts{ diff --git a/pkg/storage/value/encrypt/envelope/grpc_service.go b/pkg/storage/value/encrypt/envelope/grpc_service.go index 67b0f6297..4d5bda72d 100644 --- a/pkg/storage/value/encrypt/envelope/grpc_service.go +++ b/pkg/storage/value/encrypt/envelope/grpc_service.go @@ -33,10 +33,10 @@ import ( ) const ( - // Now only supportied unix domain socket. + // Now only supported unix domain socket. unixProtocol = "unix" - // Current version for the protocal interface definition. + // Current version for the protocol interface definition. kmsapiVersion = "v1beta1" // The timeout that communicate with KMS server.