Preetha Appan
0cb1c92977
Fix exec and event commands to build help string in constructor
2017-10-18 00:08:45 +02:00
Preetha Appan
3bd4b738c0
Fix up catalog list services to build help string in constructor
2017-10-18 00:08:45 +02:00
Preetha Appan
8761232b2a
Fix up list datacenters to build help string in constructor
2017-10-18 00:08:45 +02:00
Preetha Appan
5473dbc5a4
Fix tests by calling initFlags for each test case to reset state.
2017-10-18 00:08:45 +02:00
Preetha Appan
75ecc6a86e
Better name for usage string and moving constant definition down
2017-10-18 00:08:45 +02:00
Preetha Appan
7898780106
Construct the help string in constructor using helper function.
2017-10-18 00:08:45 +02:00
Frank Schroeder
9825b6709a
commands: move catalog list services to separate pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
33a4e997b4
commands: move catalog list nodes command to separate pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
cfd110395b
commands: move catalog list datacenters command to separate pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
bcf53b98d1
commands: move catalog command to separate pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
5d75449419
commands: move leave command to separate pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
ffb747a744
commands: move force-leave command to separate pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
41f13de7f5
commands: move keyring command to separate pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
b1dac89b95
commands: move kv put command to separate pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
e50c8d8f73
commands: move kv get command to separate pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
19f2dab416
commands: move kv import command to separate pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
3f0c61666d
commands: move export entry struct to separate pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
215cda4775
commands: move kv export command to separate pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
926aa72246
commands: move kv delete command to separate pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
50f039191d
commands: move kv command to separate pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
bd825687dd
commands: move keygen command to separate pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
74cf5c1c2c
commands: move info command to separate pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
c1c883957f
commands: move rExec helper to bottom
2017-10-18 00:08:45 +02:00
Frank Schroeder
8c7f013ae1
commands: move exec command to separate pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
ad50e2a410
commands: move event command to separate pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
dc3c722b2c
commands: move join command to separate pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
8880ae714b
commands: move validate command to separate pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
e65bd2a268
commands: move flag handling into flags pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
f8eb4006fa
revert monkey patch for mitchellh/cli
2017-10-18 00:08:45 +02:00
Frank Schroeder
7568a19433
config: refactor commands to print help for flags ( #3536 )
...
This patch refactors the commands that use the mitchellh/cli library to
populate the command line flag set in both the Run() and the Help()
method. Earlier versions of the mitchellh/cli library relied on the
Run() method to populuate the flagset for generating the usage screen.
This has changed in later versions and was previously solved with a
small monkey patch to the library to restore the old behavior.
However, this makes upgrading the library difficult since the patch has
to be restored every time.
This patch addresses this by moving the command line flags into an
initFlags() method where appropriate and also moving all variables for
the flags from the Run() method into the command itself.
Fixes #3536
2017-10-18 00:08:45 +02:00
Frank Schröder
64e4afede3
Merge pull request #3582 from ryanslade/time-since
...
Replace time.Now().Sub(x) with time.Since(x)
2017-10-18 00:06:12 +02:00
Frank Schroeder
ae76c975ae
vendor: update github.com/mitchellh/mapstructure to replace monkey patch
2017-10-17 20:43:11 +02:00
Frank Schroeder
1a573e8fba
vendor: update github.com/hashicorp/hcl to replace monkey patch
2017-10-17 20:43:11 +02:00
Ryan Slade
6f05ea91a3
Replace time.Now().Sub(x) with time.Since(x)
2017-10-17 20:38:24 +02:00
James Phillips
5fe5a0b4f3
Puts the tree in 1.0.1 dev mode.
2017-10-16 10:28:06 -07:00
James Phillips
abace13f46
Bumps website version to 1.0.0.
2017-10-16 09:40:44 -07:00
James Phillips
a7f3d23613
Release v1.0.0
2017-10-16 09:22:40 -07:00
James Phillips
8a50327a96
Puts the tree in 1.0 final release mode.
2017-10-16 09:16:52 -07:00
James Phillips
39f2359804
Fixes an XSS issue with unescaped node names. ( #3578 )
...
* Fixes an XSS issue with node names in the tomography graph.
* Updates built-in static web assets.
* Updates the change log.
2017-10-16 09:12:36 -07:00
James Phillips
6f31af82d6
Adds a note about the Raft protocol not being the same as the Consul protocol.
2017-10-13 16:54:48 -07:00
James Phillips
eb916860ca
Adds a 1.0 section to the upgrade guide and cleans up the change log.
2017-10-13 16:46:36 -07:00
James Phillips
cb41ae2428
Update sentinel.html.markdown.erb
2017-10-13 12:15:08 -07:00
csawyerYumaed
f97ec6dc3b
Update dns forwarding documentation ( #3574 )
...
Add details about setting up macOS to point to consul for services without the headache of dnsmasq, bind, etc.
2017-10-12 14:25:57 -07:00
James Phillips
fdd08c78a9
Adds a brief wait and poll period to update check status after a timeout. ( #3573 )
...
* Adds a brief wait and poll period to update the check status
if we get stucking waiting for the processes to terminate.
Fixes #3570
* Jumps out of timeout case and includes script output.
2017-10-12 13:49:46 -07:00
James Phillips
e9670761f9
Cleans up some drift between the OSS and Enterprise trees.
2017-10-11 15:53:07 -07:00
Kyle Havlovitz
d2b9ab2b4f
Clarify the docs around script check timeout behavior
2017-10-11 14:55:55 -07:00
James Phillips
7ec211dcfd
Updates the change log.
2017-10-11 11:59:35 -07:00
Kyle Havlovitz
eea2bd2753
Kill check processes after the timeout is reached ( #3567 )
...
* Kill check processes after the timeout is reached
Kill the subprocess spawned by a script check once the timeout is reached. Previously Consul just marked the check critical and left the subprocess around.
Fixes #3565 .
* Set err to non-nil when timeout occurs
* Fix check timeout test
* Kill entire process subtree on check timeout
* Add a docs note about windows subprocess termination
2017-10-11 11:57:39 -07:00
James Phillips
144a938bcc
Updates the change log.
2017-10-11 07:45:42 -07:00
James Bardin
3ff612d625
retry locks on network errors ( #3553 )
...
* retry locks on network errors
When communicating with a local agent and watching a lock, a dropped
connection between the agent and server will show up as a server error
and immediately be retried. However if the client is connected to a
remote server, a dropped connection immediately aborts the lock.
* Updates comment about it being unsafe for writes.
2017-10-11 07:42:10 -07:00