Preetha Appan
a2519fb76f
Fix up catalog list services to build help string in constructor
2017-10-18 00:08:45 +02:00
Preetha Appan
2ed2c63a26
Fix up list datacenters to build help string in constructor
2017-10-18 00:08:45 +02:00
Preetha Appan
9d52f6ea92
Fix tests by calling initFlags for each test case to reset state.
2017-10-18 00:08:45 +02:00
Preetha Appan
4e31514df8
Better name for usage string and moving constant definition down
2017-10-18 00:08:45 +02:00
Preetha Appan
a3863c73d6
Construct the help string in constructor using helper function.
2017-10-18 00:08:45 +02:00
Frank Schroeder
0ec520582d
commands: move catalog list services to separate pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
117305eb4f
commands: move catalog list nodes command to separate pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
bd73c4cecf
commands: move catalog list datacenters command to separate pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
675e727224
commands: move catalog command to separate pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
9a9e5ef82d
commands: move leave command to separate pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
076361a37d
commands: move force-leave command to separate pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
631502009d
commands: move keyring command to separate pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
9e19207918
commands: move kv put command to separate pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
3377f46085
commands: move kv get command to separate pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
e1785a0e8f
commands: move kv import command to separate pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
cce364445e
commands: move export entry struct to separate pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
585b5b8d4e
commands: move kv export command to separate pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
5e3371eee1
commands: move kv delete command to separate pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
200199a875
commands: move kv command to separate pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
aca803ca8d
commands: move keygen command to separate pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
b1c5ee39a5
commands: move info command to separate pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
8a5836368e
commands: move rExec helper to bottom
2017-10-18 00:08:45 +02:00
Frank Schroeder
0ada23f92f
commands: move exec command to separate pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
85bfd8f339
commands: move event command to separate pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
d870c6289b
commands: move join command to separate pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
e0551b80a6
commands: move validate command to separate pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
cef6a80ae6
commands: move flag handling into flags pkg
2017-10-18 00:08:45 +02:00
Frank Schroeder
366ec9a565
revert monkey patch for mitchellh/cli
2017-10-18 00:08:45 +02:00
Frank Schroeder
a49711b8bf
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
720fdbd10a
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
d461decb72
vendor: update github.com/mitchellh/mapstructure to replace monkey patch
2017-10-17 20:43:11 +02:00
Frank Schroeder
e5380410a1
vendor: update github.com/hashicorp/hcl to replace monkey patch
2017-10-17 20:43:11 +02:00
Ryan Slade
85e4aea9d1
Replace time.Now().Sub(x) with time.Since(x)
2017-10-17 20:38:24 +02:00
James Phillips
d5a889c160
Puts the tree in 1.0.1 dev mode.
2017-10-16 10:28:06 -07:00
James Phillips
e25be707f5
Bumps website version to 1.0.0.
2017-10-16 09:40:44 -07:00
James Phillips
51ea240df8
Release v1.0.0
2017-10-16 09:22:40 -07:00
James Phillips
73481c6474
Puts the tree in 1.0 final release mode.
2017-10-16 09:16:52 -07:00
James Phillips
f25c66dfd9
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
d5b945ccee
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
204e6bac18
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
036efc663d
Update sentinel.html.markdown.erb
2017-10-13 12:15:08 -07:00
csawyerYumaed
0f79922795
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
c943b1b151
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
575d70aaa7
Cleans up some drift between the OSS and Enterprise trees.
2017-10-11 15:53:07 -07:00
Kyle Havlovitz
4ab59af09e
Clarify the docs around script check timeout behavior
2017-10-11 14:55:55 -07:00
James Phillips
323b74d727
Updates the change log.
2017-10-11 11:59:35 -07:00
Kyle Havlovitz
106b8b0b33
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
aaf6b17a4d
Updates the change log.
2017-10-11 07:45:42 -07:00
James Bardin
fea32fb7d7
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
Artiom Diomin
2e229617ce
Fix example code formatting in godoc
2017-10-11 14:52:22 +02:00