Commit Graph

1755 Commits (cc8327ed9a7bac9b90670598a9a18f0ea92712d9)

Author SHA1 Message Date
Frank Schroeder 5979723446 commands: cleanup catalog list services tests
7 years ago
Frank Schroeder a03738c117 commands: cleanup catalog list nodes tests
7 years ago
Frank Schroeder 2530b9dd83 commands: simplify import names
7 years ago
Frank Schroeder 2bd8b070fb commands: move operator subcommands to subdirs
7 years ago
Frank Schroeder ce1ec000ca commands: move kv subcommands to subdirs
7 years ago
Frank Schroeder e16ef316d4 commands: move catalog subcommands to subdirs
7 years ago
Frank Schroeder 51799e5d23 commands: move snapshot subcommands to subdirs
7 years ago
Frank Schroeder 6bc5716336 commands: simplify commands.go
7 years ago
Frank Schroeder 2850f0f6d0 commands: drop base command and utils
7 years ago
Frank Schroeder 31d5fb7f47 commands: move agent command to separate pkg
7 years ago
Frank Schroeder 10e0be65a9 commands: move watch command to separate pkg
7 years ago
Frank Schroeder 8a0195ee99 add token and addr to http flags
7 years ago
Frank Schroeder e2b686b982 commands: move snapshot save command to separate pkg
7 years ago
Frank Schroeder fb1f09d447 commands: move snapshot restore command to separate pkg
7 years ago
Frank Schroeder 3acbc278f0 commands: move version command to separate pkg
7 years ago
Frank Schroeder 3a02ce9ebc commands: move snapshot inspect command to separate pkg
7 years ago
Frank Schroeder c8992cbe28 commands: move snapshot command to separate pkg
7 years ago
Frank Schroeder 4d6a0b94dd commands: move rtt command to separate pkg
7 years ago
Frank Schroeder 566359234a commands: move reload command to separate pkg
7 years ago
Frank Schroeder 4947ba7f3d commands: move operator autopilot set command to separate pkg
7 years ago
Frank Schroeder f719d78441 commands: move operator autopilot get command to separate pkg
7 years ago
Frank Schroeder bd1b189990 commands: move operator autopilot command to separate pkg
7 years ago
Frank Schroeder c50e43a4ea commands: move operator list remove-peer command to separate pkg
7 years ago
Frank Schroeder 2a824f0575 commands: move operator raft list-peers command to separate pkg
7 years ago
Frank Schroeder f10f07b448 commands: move operator raft command to separate pkg
7 years ago
Frank Schroeder cc103391b2 commands: move operator command to separate pkg
7 years ago
Preetha Appan 1eec0e757c Move monitor command to its own package
7 years ago
Preetha Appan f389fe7757 Fix import order
7 years ago
Preetha Appan 5b6f0504ae Move members command to its own package
7 years ago
Preetha Appan ba546b0c1d Move maint command to its own package
7 years ago
Preetha Appan ff4d070bdf Move lock command to its own package
7 years ago
Preetha Appan 85bc32f8a0 Fix leave and validate commands to build help string in constructor
7 years ago
Preetha Appan 71887d1709 Fix KV CLI subcommands to build help string in constructor
7 years ago
Preetha Appan b1d5f99a58 Fix Keyring and keygen commands to build help string in constructor
7 years ago
Preetha Appan 85a834d008 Fix join command to build help string in constructor
7 years ago
Preetha Appan a049dccd20 Fix up info and forceleave to build help string in constructor
7 years ago
Preetha Appan 55a1724b9e s/initFlags/init/g
7 years ago
Preetha Appan 7689e1e5cd Fix exec and event commands to build help string in constructor
7 years ago
Preetha Appan a2519fb76f Fix up catalog list services to build help string in constructor
7 years ago
Preetha Appan 2ed2c63a26 Fix up list datacenters to build help string in constructor
7 years ago
Preetha Appan 9d52f6ea92 Fix tests by calling initFlags for each test case to reset state.
7 years ago
Preetha Appan 4e31514df8 Better name for usage string and moving constant definition down
7 years ago
Preetha Appan a3863c73d6 Construct the help string in constructor using helper function.
7 years ago
Frank Schroeder 0ec520582d commands: move catalog list services to separate pkg
7 years ago
Frank Schroeder 117305eb4f commands: move catalog list nodes command to separate pkg
7 years ago
Frank Schroeder bd73c4cecf commands: move catalog list datacenters command to separate pkg
7 years ago
Frank Schroeder 675e727224 commands: move catalog command to separate pkg
7 years ago
Frank Schroeder 9a9e5ef82d commands: move leave command to separate pkg
7 years ago
Frank Schroeder 076361a37d commands: move force-leave command to separate pkg
7 years ago
Frank Schroeder 631502009d commands: move keyring command to separate pkg
7 years ago
Frank Schroeder 9e19207918 commands: move kv put command to separate pkg
7 years ago
Frank Schroeder 3377f46085 commands: move kv get command to separate pkg
7 years ago
Frank Schroeder e1785a0e8f commands: move kv import command to separate pkg
7 years ago
Frank Schroeder cce364445e commands: move export entry struct to separate pkg
7 years ago
Frank Schroeder 585b5b8d4e commands: move kv export command to separate pkg
7 years ago
Frank Schroeder 5e3371eee1 commands: move kv delete command to separate pkg
7 years ago
Frank Schroeder 200199a875 commands: move kv command to separate pkg
7 years ago
Frank Schroeder aca803ca8d commands: move keygen command to separate pkg
7 years ago
Frank Schroeder b1c5ee39a5 commands: move info command to separate pkg
7 years ago
Frank Schroeder 8a5836368e commands: move rExec helper to bottom
7 years ago
Frank Schroeder 0ada23f92f commands: move exec command to separate pkg
7 years ago
Frank Schroeder 85bfd8f339 commands: move event command to separate pkg
7 years ago
Frank Schroeder d870c6289b commands: move join command to separate pkg
7 years ago
Frank Schroeder e0551b80a6 commands: move validate command to separate pkg
7 years ago
Frank Schroeder cef6a80ae6 commands: move flag handling into flags pkg
7 years ago
Frank Schroeder a49711b8bf config: refactor commands to print help for flags (#3536)
7 years ago
Ryan Slade 85e4aea9d1 Replace time.Now().Sub(x) with time.Since(x)
7 years ago
James Phillips 575d70aaa7
Cleans up some drift between the OSS and Enterprise trees.
7 years ago
Frank Schroeder 7bee8e644d
command: show full help text on usage
7 years ago
Frank Schroeder bb13277ca1 command: do not merge flags in-place
7 years ago
Frank Schroeder e769cd22f6 command: simplify duplicate code
7 years ago
Frank Schroeder a364555121 command: drop hidden flags from base command
7 years ago
Frank Schroeder bc78fa576a command: drop unused hidden flags for 'validate'
7 years ago
Frank Schroeder 497d2702bf
command: drop legacy 'operator raft' tests
7 years ago
Frank Schroeder 4d604c5138 command: simplify 'operator raft'
7 years ago
Frank Schroeder 3a7fb35fb0 command: don't show confusing error on usage output
7 years ago
Frank Schroeder ce0d03c46a command: drop deprecated 'configtest' command
7 years ago
Kyle Havlovitz adf29675f3 Merge pull request #3535 from hashicorp/metric-docs
7 years ago
Kyle Havlovitz 198ed6076d Clean up subprocess handling and make shell use optional (#3509)
7 years ago
Kyle Havlovitz c728564994
Update metric names and add a legacy config flag
7 years ago
Kyle Havlovitz 787787f904
Split BaseCommand http config into a separate function
7 years ago
Kyle Havlovitz 8b31eef467
Add base command option for hiding generated help for normal args
7 years ago
James Phillips be92c6862d
Returns errors properly from the consul operator raft list-peers command.
7 years ago
Frank Schröder e84c2b2edd Metrics service prefix (#3498)
7 years ago
Preetha Appan 3c4a108769 Move Raft protocol version for list peers end point to server side, fix unit tests. This fixes #3449
7 years ago
preetapan 73951d8319 Merge pull request #3494 from hashicorp/enforce_json_extension
7 years ago
James Phillips 45646ac3f4 Bumps default Raft protocol to version 3. (#3477)
7 years ago
Preetha Appan a286ad7533 Enforce json or hcl extension to Consul config files, updated unit tests
7 years ago
Frank Schröder 12216583a1 New config parser, HCL support, multiple bind addrs (#3480)
7 years ago
James Phillips 00605c0214
Shows the segment name in the keyring API and command output.
7 years ago
James Phillips d12b172a5d
Remaps servers to "<all>" only when listing multiple segments.
7 years ago
James Phillips 1a117ba0a8
Makes the all segments query explict, and the default for `consul members`.
7 years ago
James Phillips 74d635e9c6
Simplifies members command to not fetch segments.
7 years ago
Kyle Havlovitz f8261330f0
Remove duplicate error message
7 years ago
Kyle Havlovitz 62102a537e
Organize segments for a cleaner split between enterprise and OSS
7 years ago
Kyle Havlovitz 7e565d7338
Fix some inconsistencies with segment logic and comments
7 years ago
Kyle Havlovitz 21513b0393
Update coord display in ui to account for segments
7 years ago
Kyle Havlovitz d129767657
Add agent.segment interpolation to prepared queries
7 years ago
Kyle Havlovitz 2ada0439d4
Add rpc_listener option to segment config
7 years ago
James Phillips b1a15e0c3d
Adds open source side of network segments (feature is Enterprise-only).
7 years ago
Frank Schroeder 831d84c940 build: make tests independent of build tags
7 years ago
wuxin d6729243eb fix command/kv_import.go help text (#3387)
7 years ago
Frank Schröder 4b642fed2f agent: honor deprecated flags for retry-join-{ec2,azure,gce} (#3384)
7 years ago
Frank Schroeder 1acff3533e
agent: move agent/consul/structs to agent/structs
7 years ago
Kyle Havlovitz d5634fe2a8
Add support for labels/filters from go-metrics
7 years ago
Frank Schroeder 2fac427cd4 agent: use github.com/hashicorp/go-discover
7 years ago
Preetha Appan 840749db7e Fix comments, and remove redundant TestConfig init from a couple of unit tests
7 years ago
Preetha Appan aa98aeb4b1 Moved handling advertise address to readConfig and out of the agent's constructor, plus unit test fixes
7 years ago
Preetha Appan 25acd1534a Move go-socketaddr template parsing into config package to make it happen before creating a new agent. Also removed redundant parsetemplate calls from agent.go.
7 years ago
James Phillips 08a8d9f2a7 command/lock: Add -child-exitcode, return 2 on child error (#3329)
7 years ago
Kyle Havlovitz 9268849d11
Add UpgradeVersionTag to autopilot get/set commands
7 years ago
James Phillips 1791d99a10 Adds new config to make script checks opt-in, updates documentation. (#3284)
7 years ago
James Phillips 86918be323
Sort tags so output is deterministic.
7 years ago
Seth Vargo afd83a9705 Add catalog CLI functions (#3204)
7 years ago
Frank Schroeder 406dc2ead8 command: make TestExecCommandRun_CrossDC more resilient
8 years ago
James Phillips f1bded7c5e
Removes unneeded shutdown channel in config reading tests.
8 years ago
James Phillips 6977e40077 Fixes watch tracking during reloads and fixes address issue. (#3189)
8 years ago
James Phillips 380c8b957d Changes host-based node IDs from opt-out to opt-in. (#3187)
8 years ago
Jared Wasinger 3cdde3c7ca Warn when attempting to bootstrap an even number of nodes (#3158)
8 years ago
Frank Schroeder ea5b0f2c7c agent: fix 'consul leave' shutdown race (#2880)
8 years ago
James Phillips 6b2ad20131
Moves flag slice helper into configutil.
8 years ago
James Phillips 902f1ce16f Moves config util helpers into their own package. (#3165)
8 years ago
Kyle Havlovitz 5d99ee80ca Add an option to disable keyring file (#3145)
8 years ago
Frank Schroeder 1c75cf1af5 pkg refactor
8 years ago
Frank Schroeder 9ceef2b32e test: move discover tests
8 years ago
Frank Schroeder d2ee591fbf use 'c' as command receiver for simple commands
8 years ago
Frank Schroeder 902f4caff2 agent: move watch plans into agent
8 years ago
preetapan 2de032125b Fixed regression with dns server start condition (#3137)
8 years ago
Seth Vargo 89f16984f9
Simplify
8 years ago
Seth Vargo ee1b5d5024
Update comment
8 years ago
Seth Vargo 532f8d1435
Parse values given to ?passing in the API
8 years ago
James Phillips 86713c1b8a
Opens up timing bound on flaky test.
8 years ago
James Phillips 66ec9c7a7d
Fixes HTTP header compare by including standard headers.
8 years ago
Frank Schroeder b5f8d6f9fd agent: fix time.Duration parsing
8 years ago
Frank Schroeder 39d33c2fdc
agent: log events and exit code to the log file
8 years ago
Frank Schroeder 4a223111d2
log: use prefix [ERR] instead of [ERROR]
8 years ago
James Phillips fa8a26ad54
Updates static assets to latest.
8 years ago
James Phillips a09eed585e Merge pull request #3121 from hashicorp/increase-graceful-timeout
8 years ago
Frank Schroeder fe69de3bba
agent: increase graceful shutdown timeout
8 years ago
Frank Schroeder 46c055d57b
agent: log differnt shutdown stages
8 years ago
Frank Schröder 825f72f5ef agent: support custom header and method for http checks (#3106)
8 years ago
Frank Schroeder 94b39557e8 test: refactor TestDecodeConfig test
8 years ago
Frank Schroeder 325f82972a test: Fix TestAgent_Reload
8 years ago
James Phillips 240413f5d6 Merge pull request #3105 from hashicorp/test-stability
8 years ago
Frank Schroeder 51e0e158f1 agent: fix graceful http server shutdown
8 years ago
Frank Schroeder ae711c3b04 agent: cleanup run method
8 years ago
Frank Schroeder b203ffab29 agent: move registerWatches out of the run method
8 years ago
Frank Schroeder 11245e53a7 agent: move telemetry out of the run method
8 years ago
Frank Schroeder 84f5e8c3ab agent: move update check out of the run method
8 years ago
Frank Schroeder 96d8035adc agent: simplify signal handling
8 years ago