2
0
mirror of https://github.com/status-im/consul.git synced 2025-02-16 23:57:07 +00:00

7 Commits

Author SHA1 Message Date
Nitya Dhanushkodi
8dab825c36
troubleshoot: fixes and updated messages () 2023-02-17 07:43:05 -08:00
Nitya Dhanushkodi
80fb18aa35
troubleshoot: make output have tables and colors ()
Adds tables and colors using libraries used in consul-k8s. It doesn't add the full `terminal` UI package that consul-k8s uses since there is an existing UI in Consul that I didn't want to affect too much. So instead this adds to the existing UI.
2023-02-10 11:12:13 -08:00
malizz
f5391ef142
update troubleshoot CLI, update flags and upstreams output ()
* update troubleshoot CLI, update flags and upstreams output

* update troubleshoot upstreams output
2023-02-08 16:05:22 -08:00
malizz
0a544809c9
get upstream IPs ()
* get upstream IPs

* separate test data

* fix lint issue

* fix lint issue
2023-02-07 14:57:31 -08:00
Nitya Dhanushkodi
b8b37c2357
refactor: remove troubleshoot module dependency on consul top level module ()
Ensure nothing in the troubleshoot go module depends on consul's top level module. This is so we can import troubleshoot into consul-k8s and not import all of consul.

* turns troubleshoot into a go module [authored by @curtbushko]
* gets the envoy protos into the troubleshoot module [authored by @curtbushko]
* adds a new go module `envoyextensions` which has xdscommon and extensioncommon folders that both the xds package and the troubleshoot package can import
* adds testing and linting for the new go modules
* moves the unit tests in `troubleshoot/validateupstream` that depend on proxycfg/xds into the xds package, with a comment describing why those tests cannot be in the troubleshoot package
* fixes all the imports everywhere as a result of these changes 

Co-authored-by: Curt Bushko <cbushko@gmail.com>
2023-02-06 09:14:35 -08:00
malizz
b15a6e02b4
update troubleshoot CLI () 2023-02-01 15:11:05 -08:00
malizz
6e814c5f86
add troubleshoot cli ()
* add troubleshoot cli

* fix lint issue

* fix merge conflict

* fix lint issue
2023-02-01 11:37:30 -08:00