Spell fixes for logs and descriptions (#52675)

This commit is contained in:
Steven Martin
2025-03-03 10:51:35 +00:00
committed by GitHub
parent 1fde581ae0
commit b82a0dc0f2
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -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"`
@@ -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")
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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{}
}
+1 -1
View File
@@ -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")
+1 -1
View File
@@ -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