mirror of
https://github.com/gravitational/teleport.git
synced 2026-09-24 16:17:11 +08:00
Spell fixes for logs and descriptions (#52675)
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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
@@ -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{}
|
||||
}
|
||||
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user