Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert tsh recursive listing to connect to Proxy via gRPC #40268

Merged
merged 7 commits into from
Apr 12, 2024

Conversation

rosstimothy
Copy link
Contributor

@rosstimothy rosstimothy commented Apr 5, 2024

Migrates all tsh recursive listing operations off of the deprecated ProxyClient in favor of the ClusterClient.

Updates #38239

@rosstimothy rosstimothy added the no-changelog Indicates that a PR does not require a changelog entry label Apr 5, 2024
@rosstimothy rosstimothy changed the title Convert tsh ls -R and tsh db ls -R to connect to cluster via gRPC Convert tsh recursive listing to connect to Proxy via gRPC Apr 5, 2024
@rosstimothy rosstimothy force-pushed the tross/tsh_get_clusters branch from 47eaf5a to f121a1b Compare April 5, 2024 16:24
@rosstimothy rosstimothy changed the base branch from master to tross/proxy_client_tls_config April 6, 2024 20:30
@rosstimothy rosstimothy force-pushed the tross/tsh_get_clusters branch from 78f4a35 to d4f0698 Compare April 6, 2024 20:31
@rosstimothy rosstimothy force-pushed the tross/proxy_client_tls_config branch from d2c7859 to 4c6e970 Compare April 6, 2024 20:32
@rosstimothy rosstimothy force-pushed the tross/tsh_get_clusters branch from d4f0698 to bab8c51 Compare April 6, 2024 20:33
@rosstimothy rosstimothy force-pushed the tross/proxy_client_tls_config branch from 4c6e970 to 22031f9 Compare April 6, 2024 20:45
@rosstimothy rosstimothy force-pushed the tross/tsh_get_clusters branch from bab8c51 to ad29492 Compare April 6, 2024 20:46
@rosstimothy rosstimothy marked this pull request as ready for review April 6, 2024 20:48
@github-actions github-actions bot added size/sm tctl tctl - Teleport admin tool tsh tsh - Teleport's command line tool for logging into nodes running Teleport. labels Apr 6, 2024
Base automatically changed from tross/proxy_client_tls_config to master April 9, 2024 16:20
group.Go(func() error {
kc, err := kubeutils.ListKubeClustersWithFilters(groupCtx, cluster.auth, cluster.req)
if err != nil {
logrus.Errorf("Failed to get kube clusters: %v.", err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit confused since you're the slog guy, shouldn't we be using slog for new logs? Looks like this is the only logrus ref in this file

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

slog guy 😅

I went with logrus because none of our client binaries are using slog yet and TBH I didn't realize this was the first time it was being referenced in this file. I guess now is as good a time as any to start making the switch.

@zmb3
Copy link
Collaborator

zmb3 commented Apr 12, 2024

/excludeflake *

@rosstimothy rosstimothy force-pushed the tross/tsh_get_clusters branch from ad29492 to e2f6c94 Compare April 12, 2024 19:55
@rosstimothy rosstimothy added this pull request to the merge queue Apr 12, 2024
Merged via the queue into master with commit 5a64d1f Apr 12, 2024
40 checks passed
@rosstimothy rosstimothy deleted the tross/tsh_get_clusters branch April 12, 2024 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog Indicates that a PR does not require a changelog entry size/sm tctl tctl - Teleport admin tool tsh tsh - Teleport's command line tool for logging into nodes running Teleport.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants