-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve TeleportClient host resolution
Update tsh to prefer using ResolveSSHTarget to resolve the target if labels, search, or predicate expressions were supplied. In the event that the RPC is not implemented, tsh falls back to the previous behavior of calling ListUnifiedResources, with one slight addition. In the event that resolution is ambiguous tsh now consults the cluster networking config to determine the ROUTE_TO_MOST_RECENT strategy is in place. If so, the returned server with the expiry the farthest in the future will be used.
- Loading branch information
1 parent
e2c8b10
commit 41254a8
Showing
4 changed files
with
313 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.