teleport/lib/backend
Vitor Enes 0403a4eebb
Improve error message if dialing etcd nodes times out (#18789)
If all etcd nodes are unreachable, Teleport exits with the following
message:
```
ERROR: initialization failed
context deadline exceeded
```

With this commit we get instead:
```
ERROR: timed out dialing etcd endpoints: [https://127.0.0.1:2381 https://127.0.0.1:12381]
initialization failed
context deadline exceeded
```

Note that if only some of the etcd nodes are unreachable, the etcd
client already provides a useful error message:
```
ERROR: initialization failed
failed to dial endpoint https://127.0.0.1:12381 with maintenance client: context deadline exceeded
```
2022-11-28 18:40:24 +00:00
..
dynamo Run GCI as make fix-imports (#17956) 2022-11-04 15:46:46 +00:00
etcdbk Improve error message if dialing etcd nodes times out (#18789) 2022-11-28 18:40:24 +00:00
firestore Enable GCI linter (#17894) 2022-10-28 20:20:28 +00:00
kubernetes Enable GCI linter (#17894) 2022-10-28 20:20:28 +00:00
lite Enable GCI linter (#17894) 2022-10-28 20:20:28 +00:00
memory Enable GCI linter (#17894) 2022-10-28 20:20:28 +00:00
test Enable GCI linter (#17894) 2022-10-28 20:20:28 +00:00
backend.go
backend_test.go
buffer.go Enable GCI linter (#17894) 2022-10-28 20:20:28 +00:00
buffer_test.go Enable GCI linter (#17894) 2022-10-28 20:20:28 +00:00
defaults.go
doc.go
helpers.go
report.go Use x/exp/slices instead of home grown utilities (#18524) 2022-11-17 15:25:46 +00:00
report_test.go Enable GCI linter (#17894) 2022-10-28 20:20:28 +00:00
sanitize.go Enable GCI linter (#17894) 2022-10-28 20:20:28 +00:00
sanitize_test.go
wrap.go