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

tsh request search displays discovered resource name #30196

Merged
merged 1 commit into from
Aug 9, 2023

Conversation

GavinFrazar
Copy link
Contributor

@GavinFrazar GavinFrazar commented Aug 8, 2023

This PR makes tsh request search display an auto-discovered resource by its original discovered name instead of the full name as it was renamed by discovery service (in non-verbose mode). In verbose mode it shows the full name.

I also factored out discovered name func from tsh and tctl into tool/common

stacked on #30149

Part of the implementation for RFD 129.

Related issue:

Changelog: tsh request search in non-verbose mode will display auto-discovered resources with original resource names instead of the more detailed names generated by the v14+ Teleport Discovery service.

@GavinFrazar GavinFrazar added ux kubernetes-access tsh tsh - Teleport's command line tool for logging into nodes running Teleport. access-requests database-access Database access related issues and PRs backport/branch/v13 discovery changelog labels Aug 8, 2023
@GavinFrazar GavinFrazar self-assigned this Aug 8, 2023
@GavinFrazar GavinFrazar requested a review from smallinsky August 9, 2023 06:14
@GavinFrazar GavinFrazar marked this pull request as ready for review August 9, 2023 06:14
@GavinFrazar GavinFrazar requested a review from tigrato August 9, 2023 06:14
@github-actions github-actions bot requested a review from ravicious August 9, 2023 06:15
@github-actions github-actions bot added size/sm tctl tctl - Teleport admin tool labels Aug 9, 2023
@github-actions github-actions bot requested a review from rudream August 9, 2023 06:15
Base automatically changed from gavinfrazar/tsh-kube-ls-ux to master August 9, 2023 15:58
* factor out discovered name func from tsh and tctl into tool/common
@GavinFrazar GavinFrazar force-pushed the gavinfrazar/tsh-request-search-display-ux branch from 7d9e12d to faa20f1 Compare August 9, 2023 18:05
@GavinFrazar GavinFrazar enabled auto-merge August 9, 2023 18:05
@GavinFrazar GavinFrazar added this pull request to the merge queue Aug 9, 2023
Merged via the queue into master with commit bd4517c Aug 9, 2023
@GavinFrazar GavinFrazar deleted the gavinfrazar/tsh-request-search-display-ux branch August 9, 2023 18:40
@public-teleport-github-review-bot

@GavinFrazar See the table below for backport results.

Branch Result
branch/v13 Failed

GavinFrazar added a commit that referenced this pull request Sep 16, 2023
backports #30196 to branch/v13.

* factor out discovered name func from tsh and tctl into tool/common
GavinFrazar added a commit that referenced this pull request Sep 18, 2023
backports #30196 to branch/v13.

* factor out discovered name func from tsh and tctl into tool/common
GavinFrazar added a commit that referenced this pull request Sep 18, 2023
backports #30196 to branch/v13.

* factor out discovered name func from tsh and tctl into tool/common
GavinFrazar added a commit that referenced this pull request Sep 18, 2023
* [v13] show discovered name in non-verbose request search

backports #30196 to branch/v13.

* factor out discovered name func from tsh and tctl into tool/common

* [v13] tctl resource selection ux (#32086)

backports #30081 to branch/v13.

* prefix matching for tctl get discovery resources:
  * kube_cluster
  * kube_server
  * db
  * db_server
  * skip 500ms wait for 0 databases in tests
github-merge-queue bot pushed a commit that referenced this pull request Sep 19, 2023
* [v13] show discovered name in tsh kube ls

backports #30149 to branch/v13.

* update tsh kube ls tests
* fix SiteName godoc typo

* [v13] `tsh request search` displays discovered resource name (#32085)

* [v13] show discovered name in non-verbose request search

backports #30196 to branch/v13.

* factor out discovered name func from tsh and tctl into tool/common

* [v13] tctl resource selection ux (#32086)

backports #30081 to branch/v13.

* prefix matching for tctl get discovery resources:
  * kube_cluster
  * kube_server
  * db
  * db_server
  * skip 500ms wait for 0 databases in tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
access-requests backport/branch/v13 database-access Database access related issues and PRs discovery kubernetes-access size/sm tctl tctl - Teleport admin tool tsh tsh - Teleport's command line tool for logging into nodes running Teleport. ux
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants