mirror of
https://github.com/gravitational/teleport.git
synced 2026-10-12 02:15:01 +00:00
Fix log messages and tsh command description (#61037)
* Fix log spelling * Fix spelling in kube-kind command description
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user