diff --git a/cmd/virtual-kubelet/internal/commands/providers/provider.go b/cmd/virtual-kubelet/internal/commands/providers/provider.go index 7d880d5c5..f9d1df3f5 100644 --- a/cmd/virtual-kubelet/internal/commands/providers/provider.go +++ b/cmd/virtual-kubelet/internal/commands/providers/provider.go @@ -41,7 +41,7 @@ func NewCommand(s *provider.Store) *cobra.Command { fmt.Fprintln(cmd.OutOrStderr(), "no such provider", args[0]) // TODO(@cpuuy83): would be nice to not short-circuit the exit here - // But at the momemt this seems to be the only way to exit non-zero and + // But at the moment this seems to be the only way to exit non-zero and // handle our own error output os.Exit(1) } diff --git a/cmd/virtual-kubelet/internal/commands/root/tracing_register.go b/cmd/virtual-kubelet/internal/commands/root/tracing_register.go index 70242a715..b726cc993 100644 --- a/cmd/virtual-kubelet/internal/commands/root/tracing_register.go +++ b/cmd/virtual-kubelet/internal/commands/root/tracing_register.go @@ -39,7 +39,7 @@ func RegisterTracingExporter(name string, f TracingExporterInitFunc) { } // GetTracingExporter gets the specified tracing exporter passing in the options to the exporter init function. -// For an exporter to be availbale here it must be registered with `RegisterTracingExporter`. +// For an exporter to be available here it must be registered with `RegisterTracingExporter`. func GetTracingExporter(name string, opts TracingExporterOptions) (trace.Exporter, error) { f, ok := tracingExporters[name] if !ok { diff --git a/doc.go b/doc.go index ab91877f2..3da18f9ce 100644 --- a/doc.go +++ b/doc.go @@ -14,7 +14,7 @@ code wrapping what is provided in the node package is what consumers of this project would implement. In the interest of not duplicating examples, please see that package on how to get started using virtual kubelet. -Virtual Kubelet supports propgagation of logging and traces through a context. +Virtual Kubelet supports propagation of logging and traces through a context. See the "log" and "trace" packages for how to use this. Errors produced by and consumed from the node package are expected to conform to diff --git a/log/log.go b/log/log.go index fe3e4178b..e662db49f 100644 --- a/log/log.go +++ b/log/log.go @@ -29,7 +29,7 @@ var ( G = GetLogger // L is the default logger. It should be initialized before using `G` or `GetLogger` - // If L is unitialized and no logger is available in a provided context, a + // If L is uninitialized and no logger is available in a provided context, a // panic will occur. L Logger = nopLogger{} ) diff --git a/node/doc.go b/node/doc.go index 3a82f617a..34ffcac18 100644 --- a/node/doc.go +++ b/node/doc.go @@ -14,8 +14,8 @@ /* Package node implements the components for operating a node in Kubernetes. -This includes controllers for managin the node object, running scheduled pods, -and exporting HTTP endpoints expected by the Kubernets API server. +This includes controllers for managing the node object, running scheduled pods, +and exporting HTTP endpoints expected by the Kubernetes API server. There are two primary controllers, the node runner and the pod runner. diff --git a/node/podcontroller.go b/node/podcontroller.go index cf868df3e..dda3b57a6 100644 --- a/node/podcontroller.go +++ b/node/podcontroller.go @@ -66,7 +66,7 @@ type PodLifecycleHandler interface { // PodNotifier notifies callers of pod changes. // Providers should implement this interface to enable callers to be notified -// of pod status updates asyncronously. +// of pod status updates asynchronously. type PodNotifier interface { // NotifyPods instructs the notifier to call the passed in function when // the pod status changes. @@ -112,7 +112,7 @@ type PodControllerConfig struct { // Informers used for filling details for things like downward API in pod spec. // - // We are using informers here instead of listers because we'll need the + // We are using informers here instead of listeners because we'll need the // informer for certain features (like notifications for updated ConfigMaps) ConfigMapInformer corev1informers.ConfigMapInformer SecretInformer corev1informers.SecretInformer @@ -233,7 +233,7 @@ func (pc *PodController) Run(ctx context.Context, podSyncWorkers int) error { // Ready returns a channel which gets closed once the PodController is ready to handle scheduled pods. // This channel will never close if there is an error on startup. -// The status of this channel after sthudown is indeterminate. +// The status of this channel after shutdown is indeterminate. func (pc *PodController) Ready() <-chan struct{} { return pc.ready } diff --git a/trace/trace.go b/trace/trace.go index e094377e7..e57d6b4fc 100644 --- a/trace/trace.go +++ b/trace/trace.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// Package trace abstracts virtual-kubelet's tracing capabilties into a set of +// Package trace abstracts virtual-kubelet's tracing capabilities into a set of // interfaces. // While this does allow consumers to use whatever tracing library they want, // the primary goal is to share logging data between the configured logger and @@ -27,7 +27,7 @@ import ( // Tracer is the interface used for creating a tracing span type Tracer interface { - // StartSpan starts a new span. The span details are emebedded into the returned + // StartSpan starts a new span. The span details are embedded into the returned // context StartSpan(context.Context, string) (context.Context, Span) }