From b82a0dc0f21fdeb67de75466c65ed613d2b32402 Mon Sep 17 00:00:00 2001 From: Steven Martin Date: Mon, 3 Mar 2025 05:51:35 -0500 Subject: [PATCH] Spell fixes for logs and descriptions (#52675) --- integrations/event-handler/cli.go | 2 +- .../kube-agent-updater/cmd/teleport-kube-agent-updater/main.go | 2 +- lib/backend/etcdbk/etcd.go | 2 +- lib/bpf/bpf.go | 2 +- lib/events/athena/athena.go | 2 +- lib/events/session_writer.go | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/integrations/event-handler/cli.go b/integrations/event-handler/cli.go index d5f89a4ad92..3b708387211 100644 --- a/integrations/event-handler/cli.go +++ b/integrations/event-handler/cli.go @@ -147,7 +147,7 @@ type IngestConfig struct { Timeout time.Duration `help:"Polling timeout" default:"5s" env:"FDFWD_TIMEOUT"` // DryRun is the flag which simulates execution without sending events to fluentd - DryRun bool `help:"Events are read from Teleport, but are not sent to fluentd. Separate stroage is used. Debug flag."` + DryRun bool `help:"Events are read from Teleport, but are not sent to fluentd. Separate storage is used. Debug flag."` // ExitOnLastEvent exit when last event is processed ExitOnLastEvent bool `help:"Exit when last event is processed"` diff --git a/integrations/kube-agent-updater/cmd/teleport-kube-agent-updater/main.go b/integrations/kube-agent-updater/cmd/teleport-kube-agent-updater/main.go index 04ed61a7c0f..aafba67be04 100644 --- a/integrations/kube-agent-updater/cmd/teleport-kube-agent-updater/main.go +++ b/integrations/kube-agent-updater/cmd/teleport-kube-agent-updater/main.go @@ -253,7 +253,7 @@ func main() { ctrl.Log.Info("INSECURE: Image validation disabled") imageValidators = append(imageValidators, img.NewInsecureValidator("insecure always verified", kc)) case semver.Prerelease("v"+kubeversionupdater.Version) != "": - ctrl.Log.Info("This is a pre-release updater version, the key usied to sign dev and pre-release builds of Teleport will be trusted.") + ctrl.Log.Info("This is a pre-release updater version, the key used to sign dev and pre-release builds of Teleport will be trusted.") validator, err := img.NewCosignSingleKeyValidator(teleportStageOCIPubKey, "staging cosign signature validator", kc) if err != nil { ctrl.Log.Error(err, "failed to build pre-release image validator, exiting") diff --git a/lib/backend/etcdbk/etcd.go b/lib/backend/etcdbk/etcd.go index 14ea28737ff..d9c9f0aeb69 100644 --- a/lib/backend/etcdbk/etcd.go +++ b/lib/backend/etcdbk/etcd.go @@ -743,7 +743,7 @@ func (b *EtcdBackend) GetRange(ctx context.Context, startKey, endKey backend.Key } result.Items = append(result.Items, item) if limit != backend.NoLimit && len(result.Items) > limit { - return nil, trace.BadParameter("item iterator produced more items than requested (this is a bug). limit=%d, recevied=%d", limit, len(result.Items)) + return nil, trace.BadParameter("item iterator produced more items than requested (this is a bug). limit=%d, received=%d", limit, len(result.Items)) } } return &result, nil diff --git a/lib/bpf/bpf.go b/lib/bpf/bpf.go index 42c95bf4b8b..958be8d7071 100644 --- a/lib/bpf/bpf.go +++ b/lib/bpf/bpf.go @@ -372,7 +372,7 @@ func (s *Service) emitCommandEvent(eventBytes []byte) { return make([]string, 0), nil }) if err != nil { - logger.WarnContext(s.closeContext, "Unable to retrieve args from FnCahe - this is a bug!", "error", err) + logger.WarnContext(s.closeContext, "Unable to retrieve args from FnCache - this is a bug!", "error", err) args = []string{} } diff --git a/lib/events/athena/athena.go b/lib/events/athena/athena.go index 6d07b340ad4..48705f0bf58 100644 --- a/lib/events/athena/athena.go +++ b/lib/events/athena/athena.go @@ -256,7 +256,7 @@ func (cfg *Config) CheckAndSetDefaults(ctx context.Context) error { } if cfg.LimiterRefillAmount < 0 { - return trace.BadParameter("LimiterRefillAmount cannot be nagative") + return trace.BadParameter("LimiterRefillAmount cannot be negative") } if cfg.LimiterBurst < 0 { return trace.BadParameter("LimiterBurst cannot be negative") diff --git a/lib/events/session_writer.go b/lib/events/session_writer.go index 0f52296b233..15dc4fd72ad 100644 --- a/lib/events/session_writer.go +++ b/lib/events/session_writer.go @@ -345,7 +345,7 @@ func (a *SessionWriter) RecordEvent(ctx context.Context, pe apievents.PreparedSe return nil case <-t.C: if setBackoff := a.maybeSetBackoff(a.cfg.Clock.Now().UTC().Add(a.cfg.BackoffDuration)); setBackoff { - a.log.ErrorContext(ctx, "Audit write timed out. Will be losing events while applying backogg.", "timeout", a.cfg.BackoffTimeout, "backoff_duration", a.cfg.BackoffDuration) + a.log.ErrorContext(ctx, "Audit write timed out. Will be losing events while applying backoff.", "timeout", a.cfg.BackoffTimeout, "backoff_duration", a.cfg.BackoffDuration) } a.lostEvents.Add(1) return nil