Commit Graph

5732 Commits

Author SHA1 Message Date
Frank Schroeder 2a5fa52db0
Update CHANGELOG.md 2017-05-24 11:11:21 +02:00
Frank Schroeder dd7198e7de
doc: update comments and run goimports 2017-05-24 10:20:28 +02:00
Michael Leow ec81c18006
agent: add RetryJoin support for Azure
Pull #2978 from leowmjw/develop

Resolves #2978
2017-05-24 10:15:38 +02:00
Michael Leow 37e159df63
vendor: add github.com/Azure/azure-sdk-for-go 2017-05-24 10:15:38 +02:00
Michael Leow 447413bf99
vendor: add github.com/Azure/go-autorest/autorest/to 2017-05-24 10:15:38 +02:00
Michael Leow bdaf9d6ba9
vendor: add github.com/Azure/go-autorest/autorest/validation 2017-05-24 10:15:37 +02:00
Michael Leow b6d6582acc
vendor: add github.com/Azure/go-autorest/autorest/azure 2017-05-24 10:15:37 +02:00
Michael Leow f2ff7510f3
vendor: add github.com/Azure/go-autorest/autorest/date 2017-05-24 10:15:37 +02:00
Michael Leow ea6dea1dff
vendor: add github.com/Azure/go-autorest/autorest 2017-05-24 10:15:37 +02:00
Michael Leow 6a3524deb4
vendor: add github.com/dgijalva/jwt-go 2017-05-24 10:15:37 +02:00
James Phillips 4ee2d7ec3e Update CHANGELOG.md 2017-05-23 16:54:49 -07:00
James Phillips 6d91c40e10 Merge pull request #3068 from sean-/f-vendor-sockaddr-update
Update hashicorp/go-sockaddr to the latest version.
2017-05-23 16:52:49 -07:00
Sean Chittenden 6037c3c016
Update hashicorp/go-sockaddr to the latest version.
* Adds plural IP helpers (e.g. `GetPrivateIPs`, `GetPublicIPs`)
  hashicorp/go-sockaddr#11
* Adds subnet math hashicorp/go-sockaddr#8
* Fixes helper functions for dual-homed hosts hashicorp/go-sockaddr#10)
2017-05-23 16:47:17 -07:00
Frank Schroeder 39aeb5e520 vendor: remove github.com/hashicorp/scada-client 2017-05-22 11:07:46 +02:00
James Phillips 10b185a52c Merge pull request #3062 from kopaka/patch-1
Spelling Error
2017-05-20 13:07:30 -04:00
Scott Pynn ad60a369f8 Spelling Error
`Sample Respons` should be `Sample Response`.
2017-05-19 15:15:27 -04:00
James Phillips b2e44ed51b Update CHANGELOG.md 2017-05-18 10:29:51 -04:00
James Phillips 62ee3435e8 Merge pull request #2812 from naaaargle/master
UI Improvement: Add sticky scroll to side panel
2017-05-18 10:28:28 -04:00
James Phillips 14b2bcb29a Update CHANGELOG.md 2017-05-18 10:27:06 -04:00
James Phillips 759e93122f Merge pull request #2901 from deckarep/consul-ensure-exit-non-zero-on-timeout
Ensure to exit with a non-zero status code when a timeout and all jobs are not completed.
2017-05-18 10:25:50 -04:00
Frank Schroeder 2391e8e98a
website: rename *.markdown to *.md 2017-05-17 20:25:45 +02:00
Frank Schroeder e31906bae4
Update CHANGELOG.md 2017-05-17 20:23:09 +02:00
Frank Schroeder 00857245c4
website: fix typo 2017-05-17 20:22:00 +02:00
Frank Schroeder 9f4286b1ce
agent: support custom check id and name
This patch adds support for a custom check id and name when
registering a service.

This is achieved by adding a CheckID and a Name field to the
CheckType structure which is used to register checks with a
service and when returning health check definitions.

CheckDefinition is a superset of CheckType which duplicates
some of the fields of CheckType. This patch decouples these
two structures by removing the embedding of CheckType in
CheckDefinition.

Fixes #3047
2017-05-17 20:17:08 +02:00
Frank Schroeder 69125e3a58 agent: move isAddrANY to separate package 2017-05-15 22:44:43 +02:00
Frank Schroeder d6eb1d434f agent: Replace client/server with delegate interface
This patch adds a new internal interface clientServer
which defines the common methods of consul.Client and
consul.Server. This allows to replace the following
code

    if a.server != nil {
        a.server.do()
    } else {
        a.client.do()
    }

with

    a.delegate.do()

In case a specific type is required a type check can
be performed:

    if srv, ok := a.delegate.(*consul.Server); ok {
        srv.doSrv()
    }
2017-05-15 18:35:38 +02:00
Frank Schroeder 0c6dc1bbf9
Update CHANGELOG.md 2017-05-15 17:53:30 +02:00
Frank Schroeder e350b7aafa agent: allow "::" as IPv6 bind address
Fixes #2285
2017-05-15 17:51:33 +02:00
Frank Schroeder b7929b8bce build: make linux/arm64 package
Fixes #3042
2017-05-15 17:27:42 +02:00
Frank Schroeder bab25b1c84 test: fix go vet issue 2017-05-12 22:12:47 +02:00
Frank Schroeder 995c8d7086 test: make test less flaky 2017-05-12 22:12:47 +02:00
Frank Schroeder afaf4431ee test: bump ReadyTimeout to 10s 2017-05-12 22:12:47 +02:00
Frank Schroeder eedf0f3ac5 test: add helper for ioutil.TempDir/TempFile
This creates a simplified helper for temporary directories and files.
All path names are prefixed with the name of the current test.
All files and directories are stored either in /tmp/consul-test
or /tmp if the former could not be created.

Using the system temp dir breaks some tests on macOS where the unix
socket path becomes too long.
2017-05-12 22:12:47 +02:00
Frank Schroeder 1f0a7511b0 test: simplify makefile 2017-05-12 22:12:47 +02:00
Frank Schroeder 29f9b9b22a test: lower wait time for some tests 2017-05-12 22:12:47 +02:00
Frank Schroeder 10622b6995 test: suppress osx firewall warning
macOS displays a firewall warning dialog when an unsigned
application is trying to bind to a non-loopback address.

This patch updates some test configurations to ensure binding
to a loopback address where possible to suppress these warnings.
2017-05-12 22:12:47 +02:00
Frank Schroeder 15590a8446 test: include test name in temp file/dir
This helps identifying hanging tests by looking
at the process list.
2017-05-12 22:12:47 +02:00
James Phillips 8ed478d908 Merge pull request #3038 from jkodroff/patch-2
Update install.sh for Consul 0.8.3
2017-05-12 09:53:50 -07:00
Josh Kodroff 9bec037621 Update install.sh for Consul 0.8.3 2017-05-12 12:52:59 -04:00
James Phillips 8088555d69
Bumps website download link to 0.8.3. 2017-05-12 08:17:56 -07:00
James Phillips 98bcfd3b45 Updates expired test certs and includes a script to generate new certs. 2017-05-12 09:28:21 +02:00
James Phillips 6ca0f290a6
Puts the tree in version 0.8.4 dev mode. 2017-05-11 18:52:37 -07:00
Frank Schroeder 49c71f923b test: drop unused code 2017-05-11 17:04:36 +02:00
James Phillips 830bc2df3b
Removes a stale comment about the RPC source address. 2017-05-10 20:45:19 -07:00
James Phillips d2fa6ba44d Update CHANGELOG.md 2017-05-10 17:02:44 -07:00
James Phillips 35f202b977 Update CHANGELOG.md 2017-05-10 17:02:34 -07:00
Frank Schroeder 3e4dc6e133 agent: use bind address as src unless INADDR_ANY
Use the bind address as source address for outgoing
RPC connections unless it is INADDR_ANY.

The current code uses the advertise address which will
not work in certain environments where the advertise
address is not routable in the network of the agent,
e.g. NAT environment, container... After all, that is
the purpose of the advertise address.

See #2822
2017-05-11 00:34:14 +02:00
Frank Schroeder 27e951d213 agent: use helper for INADDR_ANY 2017-05-11 00:34:14 +02:00
Kyle Havlovitz e5e34c0c38 Update CHANGELOG.md 2017-05-10 14:28:12 -07:00
Kyle Havlovitz 62933b0150 Update CHANGELOG.md 2017-05-10 14:27:27 -07:00