Fix log messages and tsh command description (#61037)

* Fix log spelling

* Fix spelling in kube-kind command description
This commit is contained in:
Steven Martin
2025-11-05 15:31:30 +00:00
committed by GitHub
parent 45d48b0813
commit 7119b1ac38
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -308,7 +308,7 @@ func toOpType(rec streamtypes.Record) (types.OpType, error) {
case streamtypes.OperationTypeRemove:
return types.OpDelete, nil
default:
return -1, trace.BadParameter("unsupported DynamodDB operation: %v", rec.EventName)
return -1, trace.BadParameter("unsupported DynamoDB operation: %v", rec.EventName)
}
}
+1 -1
View File
@@ -744,7 +744,7 @@ func (s *leafCluster) updateLocks(retry retryutils.Retry) {
if err := s.watchLocks(); err != nil {
switch {
case trace.IsNotImplemented(err):
s.logger.DebugContext(s.ctx, "Leaft cluster does not support locks yet", "cluster", s.domainName)
s.logger.DebugContext(s.ctx, "Leaf cluster does not support locks yet", "cluster", s.domainName)
case trace.IsConnectionProblem(err):
s.logger.DebugContext(s.ctx, "Leaf cluster is offline", "cluster", s.domainName)
default:
+1 -1
View File
@@ -115,7 +115,7 @@ func (k Key) Open(ciphertext []byte) ([]byte, error) {
// (for example, for legacy secret package or attacker controlled data),
// reject invalid sized nonces.
if len(data.Nonce) != aesgcm.NonceSize() {
return nil, trace.BadParameter("invalid nonce sice, only %v supported", aesgcm.NonceSize())
return nil, trace.BadParameter("invalid nonce size, only %v supported", aesgcm.NonceSize())
}
plaintext, err := aesgcm.Open(nil, data.Nonce, data.Ciphertext, nil)
+1 -1
View File
@@ -1359,7 +1359,7 @@ func Run(ctx context.Context, args []string, opts ...CliOption) error {
reqSearch := req.Command("search", "Search for resources to request access to.")
reqSearch.Flag("kind", fmt.Sprintf("Resource kind to search for (%s).", strings.Join(types.RequestableResourceKinds, ", "))).Required().StringVar(&cf.ResourceKind)
reqSearch.Flag("kube-kind", fmt.Sprintf("Kubernetes resource kind name (plural) to search for. Required with --kind=%q Ex: pods, deployements, namespaces, etc.", types.KindKubernetesResource)).StringVar(&cf.kubeResourceKind)
reqSearch.Flag("kube-kind", fmt.Sprintf("Kubernetes resource kind name (plural) to search for. Required with --kind=%q Ex: pods, deployments, namespaces, etc.", types.KindKubernetesResource)).StringVar(&cf.kubeResourceKind)
reqSearch.Flag("kube-api-group", "Kubernetes API group to search for resources.").StringVar(&cf.kubeAPIGroup)
reqSearch.PreAction(func(*kingpin.ParseContext) error {
// TODO(@creack): DELETE IN v20.0.0. Allow legacy kinds with a warning for now.