-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Make tctl <resource> ls
command outputs consistent
#9519
Conversation
b8b2a1c
to
6a95208
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In order to get Teleport version and host, GetWindowsDesktopServices must be used however I'm not sure how to associate a windows desktop with a windows desktop service. Any ideas @russjones ?
@lxea there currently isn't an association between a Windows Desktop and the Windows Desktop Service (or services) that can connect to it. We'll be adding this soon (feel free to follow #9277 for progress). If there's anything in particular you need in the implementation to make this work easier let me know, but the plan is basically do make it work exactly like database access. |
@lxea Can we use a similar approach to what we did with |
3cca378
to
0091b8f
Compare
0091b8f
to
a9a08a6
Compare
5a39773
to
1fd9a09
Compare
1fd9a09
to
84c7bce
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
84c7bce
to
d2d93ad
Compare
d2d93ad
to
59f704b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have a couple suggestions.
59f704b
to
53a5a4d
Compare
53a5a4d
to
d89756d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving but please address suggestions I left before merging.
88fc84d
to
bf9a99b
Compare
New format: ``` Host UUID Public Address Labels Version ---- ------------------------------------ -------------- ------------------------- ------------- corn 7b3ca8d8-710c-4305-aa29-e73628ac572c 127.0.0.1:3022 env=example,hostname=corn 8.0.0-alpha.1 ``` With `--yaml` ```yaml kind: node metadata: expires: "2021-12-16T15:26:44.887862347Z" id: 1639667804888460055 labels: env: example name: 7b3ca8d8-710c-4305-aa29-e73628ac572c spec: addr: 127.0.0.1:3022 cmd_labels: hostname: command: - hostname period: 1m0s result: corn hostname: corn public_addr: corn.lan:8443 rotation: current_id: "" last_rotated: "0001-01-01T00:00:00Z" schedule: standby: "0001-01-01T00:00:00Z" update_clients: "0001-01-01T00:00:00Z" update_servers: "0001-01-01T00:00:00Z" started: "0001-01-01T00:00:00Z" version: 8.0.0-alpha.1 version: v2 ```
``` Host Name Public Address URI Labels Version ---- ----------- -------------------- ------------------- ------------------------------- ------------- corn example-app example-app.corn.lan http://0.0.0.0:8000 teleport.dev/origin=config-file 8.0.0-alpha.1 ```
``` Host Name Protocol URI Labels Version ---- -------- -------- ------------ ------------------------------- ------------- corn postgres postgres 0.0.0.0:5432 teleport.dev/origin=config-file 8.0.0-alpha.1 ```
``` Cluster Labels Version ----------- ------ ------------- minikube 8.0.0-alpha.1 honkcluster 8.0.3 ``` ```yaml kind: kube_service metadata: expires: "2021-12-16T16:07:14.898611765Z" id: 1639670234899200604 name: 7b3ca8d8-710c-4305-aa29-e73628ac572c spec: addr: 127.0.0.1:3027 hostname: "" kube_clusters: - name: minikube rotation: current_id: "" last_rotated: "0001-01-01T00:00:00Z" schedule: standby: "0001-01-01T00:00:00Z" update_clients: "0001-01-01T00:00:00Z" update_servers: "0001-01-01T00:00:00Z" started: "0001-01-01T00:00:00Z" version: 8.0.0-alpha.1 version: v2 --- kind: kube_service metadata: expires: "2021-12-16T16:10:13.068855399Z" id: 1639670413069866294 name: 9153a5a9-e85e-4972-8c50-6fa8923282b2 spec: addr: remote.kube.proxy.teleport.cluster.local hostname: "" kube_clusters: - name: honkcluster rotation: current_id: "" last_rotated: "0001-01-01T00:00:00Z" schedule: standby: "0001-01-01T00:00:00Z" update_clients: "0001-01-01T00:00:00Z" update_servers: "0001-01-01T00:00:00Z" started: "0001-01-01T00:00:00Z" version: 8.0.3 version: v2 ```yaml
``` Host Public Address AD Domain Labels Version ---- -------------------- ----------- -------------------- --------- corn 192.168.122.144:3389 example.com teleport..3 (9 9.0.0-dev corn 192.168.122.51:3389 example.com teleport.rd Evle.com 9.0.0-dev ``` ```yaml kind: windows_desktop metadata: expires: "2022-02-18T16:12:52.422659238Z" id: 1645200172423989197 labels: teleport.dev/computer_name: WIN-LA2V0OD7SK0 teleport.dev/dns_host_name: WIN-LA2V0OD7SK0.example.com teleport.dev/is_domain_controller: "true" teleport.dev/origin: dynamic teleport.dev/os: Windows Server 2012 R2 Standard Evaluation teleport.dev/os_version: 6.3 (9600) teleport.dev/windows_domain: example.com name: WIN-LA2V0OD7SK0-example-com spec: addr: 192.168.122.51:3389 domain: example.com host_id: 2c807641-92ae-4c70-88fe-b93e7b0aa179 version: v3 ```
bf9a99b
to
1023e3f
Compare
While |
A great number of other commands support |
@Tener Good to know! I must've missed the |
This makes tctl commands consistent between different outputs as described in #9379. This adds a kube ls command.