consul/command
Michael Hofer 9ade056d98 cli: Add consul intention list command (based on PR #6825) (#9468)
This PR is based on the previous work by @snuggie12 in PR #6825. It adds the command consul intention list to list all available intentions. The list functionality for intentions seems a bit overdue as it's just very handy. The web UI cannot list intentions outside of the default namespace, and using the API is sometimes not the friendliest option. ;)

I cherry picked snuggie12's commits who did most of the heavy lifting (thanks again @snuggie12 for your great work!). The changes in the original commit mostly still worked on the current HEAD. On top of that I added support for namespaces and fixed the docs as they are managed differently today. Also the requested changes related to the "Connect" references in the original PRs have been addressed.

Fixes #5652

Co-authored-by: Matt Hoey <mhoey05@jcu.edu>
2021-01-12 20:15:29 +00:00
..
acl add tailing backtick 2020-10-07 07:14:56 +08:00
agent agent: add apiServers type for managing HTTP servers 2020-09-03 13:40:12 -04:00
catalog Convert the remaining calls to NewTestAgentWithFields 2020-03-31 17:14:55 -04:00
config connect: support defining intentions using layer 7 criteria (#8839) 2020-10-06 17:09:13 -05:00
connect command: when generating envoy bootstrap configs use the datacenter returned from the agent services endpoint (#9229) 2020-11-19 21:28:09 +00:00
debug testing: Remove all the defer os.Removeall 2020-08-14 19:58:53 -04:00
event Remove name from NewTestAgent 2020-03-31 16:13:44 -04:00
exec Remove name from NewTestAgent 2020-03-31 16:13:44 -04:00
flags ci: update to Go 1.15.4 and alpine:3.12 (#9036) 2020-11-13 18:03:37 +00:00
forceleave Convert the remaining calls to NewTestAgentWithFields 2020-03-31 17:14:55 -04:00
helpers
info Remove name from NewTestAgent 2020-03-31 16:13:44 -04:00
intention cli: Add consul intention list command (based on PR #6825) (#9468) 2021-01-12 20:15:29 +00:00
join Remove name from NewTestAgent 2020-03-31 16:13:44 -04:00
keygen
keyring add -list-primary to `consul keyring` command (#8692) 2020-09-24 20:04:20 +02:00
kv testing: use t.Cleanup in testutil.TempFile 2020-08-14 20:06:01 -04:00
leave Remove name from NewTestAgent 2020-03-31 16:13:44 -04:00
lock Remove name from NewTestAgent 2020-03-31 16:13:44 -04:00
login testing: Remove all the defer os.Removeall 2020-08-14 19:58:53 -04:00
logout testing: Remove all the defer os.Removeall 2020-08-14 19:58:53 -04:00
maint remove nodeName call when using -service 2020-09-23 10:45:16 +02:00
members Convert the remaining calls to NewTestAgentWithFields 2020-03-31 17:14:55 -04:00
monitor Rename NewTestAgentWithFields to StartTestAgent 2020-03-31 17:14:55 -04:00
operator Add a CLI command for retrieving the autopilot configuration. (#9142) 2020-11-11 18:19:32 +00:00
reload Implement Client Agent Auto Config 2020-06-17 16:49:46 -04:00
rtt Remove name from NewTestAgent 2020-03-31 16:13:44 -04:00
services testing: use t.Cleanup in testutil.TempFile 2020-08-14 20:06:01 -04:00
snapshot Enhance the output of consul snapshot inspect (#8787) 2020-10-09 14:57:29 -05:00
tls testing: Remove all the defer os.Removeall 2020-08-14 19:58:53 -04:00
validate testing: use t.Cleanup in testutil.TempFile 2020-08-14 20:06:01 -04:00
version add v to version pretty formatter (#8341) 2020-07-20 17:43:10 -04:00
watch testing: Remove all the defer os.Removeall 2020-08-14 19:58:53 -04:00
commands_oss.go cli: Add consul intention list command (based on PR #6825) (#9468) 2021-01-12 20:15:29 +00:00
registry.go