Commit Graph

3911 Commits

Author SHA1 Message Date
Sean Chittenden 811f97f938 Merge pull request #2047 from hashicorp/b-raft-peers
Remove unused peers variable from setupRaft().
2016-05-15 07:05:17 -07:00
Sean Chittenden 3756fb23a6
Remove unused peers variable from setupRaft(). 2016-05-15 06:40:46 -07:00
James Phillips b5aa407c2c Update README.md
Fixes #2041.
2016-05-12 21:38:43 -07:00
James Phillips 87c4f4eaee Merge pull request #2040 from hashicorp/go-1.6.2
Upgrades to Go 1.6.2.
2016-05-12 16:08:49 -07:00
James Phillips 3a72bf6502 Upgrades to Go 1.6.2. 2016-05-12 16:08:33 -07:00
Sean Chittenden 94e2766423
Remove stray type definition
Noticed while working on Nomad Client's server selection code.
2016-05-10 18:56:28 -07:00
James Phillips d4187bacc2 Merge pull request #2014 from hashicorp/f-secure-rand
Use a cryptographically secure seed
2016-05-09 20:07:28 -07:00
Sean Chittenden e7197bfa83
Bump Go to 1.6.2 for Travis (just added) 2016-05-08 22:10:42 -07:00
Sean Chittenden 10a479d3e4 Merge pull request #2029 from hashicorp/f-test-coverage
Update testing output
2016-05-07 15:14:19 -07:00
Sean Chittenden ac4245f46f
Don't build darwin/arm until we figure out what's going on with Travis 2016-05-07 14:53:21 -07:00
Sean Chittenden 3c33327979 Revert to Go 1.6 to see if that fixes Travis 2016-05-07 14:22:15 -07:00
Sean Chittenden 8aa31f63a2 Bump Go back to 1.6.1 to see if this breaks darwin/arm again 2016-05-07 14:00:32 -07:00
Sean Chittenden ec869292d6 Revert to Go 1.6 to see if that fixes Travis 2016-05-07 13:55:28 -07:00
Sean Chittenden b2ab5fa6b8 Bump Go to 1.6.1 2016-05-07 13:25:29 -07:00
Sean Chittenden 0ba86087eb Include the test coverage report in the output
Inspired by: Nomad project
2016-05-07 13:04:28 -07:00
Sean Chittenden 888bfa71c7 Add `tools/cmd/cover` to GOTOOLS 2016-05-07 13:02:12 -07:00
Sean Chittenden 79701fbf6d golang.org/x/tools/cmd/vet is obsolete after Go1.5
`go tool vet` is builtin starting with Go 1.5
2016-05-07 13:01:07 -07:00
Sean Chittenden 9647c9dc46 Merge pull request #2023 from hashicorp/f-current-version-checkpoint
Include the current version along side the available version.
2016-05-04 23:47:30 -07:00
Sean Chittenden b34b1f85aa Include the current version along side the available version.
When checkpoint emits a log message indicating an agent is out of
date, include the current version along with the available version
according to checkpoint.

Inspired by: log output in #993
2016-05-04 22:57:44 -07:00
James Phillips 200f2b5f2a Merge pull request #2021 from MansM/patch-2
Update install.sh
2016-05-04 09:37:51 -07:00
James Phillips c5a66c3276 Merge pull request #2020 from MansM/patch-1
Update install.sh
2016-05-04 09:37:37 -07:00
MansM 8c71cd24c3 Update install.sh
version bump
2016-05-04 18:03:39 +02:00
MansM 8729793d52 Update install.sh
version bump
2016-05-04 18:01:47 +02:00
James Phillips 85a3d99793 Merge pull request #2018 from hashicorp/jt-ie
add height to fix svg in announcement bnr
2016-05-03 17:54:22 -07:00
captainill 69cf3692f1 add height to fix svg in announcement bnr 2016-05-03 17:41:55 -07:00
Sean Chittenden 4a0a0b3376 Use a cryptographically secure seed
`SeededSecurely` is present if someone or something wants to query the way the library was seeded.

Obtained from: nomad
2016-05-02 23:52:37 -07:00
James Phillips 802e74deef Merge pull request #2012 from hashicorp/sethvargo/elink
Track enhanced links
2016-05-02 13:31:42 -07:00
Seth Vargo cf9d243240
Track enhanced links 2016-05-02 15:55:04 -04:00
Sean Chittenden f3543f7e2d Merge pull request #2003 from hashicorp/f-issue-template
Add a Github issue template
2016-04-29 11:24:13 -07:00
Sean Chittenden aad1fe1a09 Revise issue template to include a hint to use a gist 2016-04-28 22:27:25 -07:00
Sean Chittenden f80db919cc Add a Github issue template 2016-04-28 16:57:31 -07:00
James Phillips 235a577385 Merge pull request #2001 from hashicorp/f-consul-info-peers
Add the list of Raft peers to Consul's Stats
2016-04-28 15:12:55 -07:00
Sean Chittenden c16b1ca178 Add the list of Raft peers to Consul's Stats
```
% consul info
[snip]
raft:
[snip]
	raft_peers = 127.0.0.1:8300
[snip]
```

Poached from: Nomad Project
2016-04-28 15:08:48 -07:00
James Phillips 3f26132ceb Merge pull request #1996 from kjtanaka/update-demo
update vagrant demo
2016-04-27 15:09:46 -07:00
James Phillips 76b90ccb17 Fixes and clarifies the only_passing docs. 2016-04-27 14:55:38 -07:00
Koji Tanaka db2e264c02 update vagrant demo 2016-04-27 17:52:23 -04:00
James Phillips 41477e2fc8 Merge pull request #1989 from hashicorp/persist-errors
Fixes some bad error returns in the persist service and check paths.
2016-04-26 15:04:20 -07:00
James Phillips 0f7f07d2f5 Fixes some bad error returns in the persist service and check paths. 2016-04-26 15:03:26 -07:00
James Phillips 61a1be6c95 Update CHANGELOG.md 2016-04-24 23:08:59 -07:00
James Phillips 03b0c196e0 Merge pull request #1762 from mshean/script-timeout
Add Timeout field to CheckMonitor
2016-04-24 23:08:06 -07:00
James Phillips 38b3eeaff5 Gets rid of obsolete go get command in the README. 2016-04-24 16:32:19 -07:00
Sean Chittenden b9d19b9f63 Merge pull request #1979 from hashicorp/b-checkapi-update
Update Check API to use constants
2016-04-23 20:20:36 -07:00
Sean Chittenden 3c909585df Clean up the test example in README
This works without an import cycle and has been `go fmt`'ified
2016-04-23 20:18:45 -07:00
Sean Chittenden 0f45d1b76d Correct a small typo 2016-04-23 20:18:19 -07:00
Sean Chittenden 5bc4a2c2ab consul/ uses structs.Health*, the api uses api.Health* 2016-04-23 16:06:58 -07:00
Sean Chittenden 65f9017c63 Update Check API to use constants
Use constants where appropriate to advocate their use.  Also add a deprecation notice re: `updateTTL`.
2016-04-23 16:01:59 -07:00
Sean Chittenden c6a495f0a0 Merge pull request #1973 from hashicorp/b-random-stagger
Guard against divide by zero in lib.RandomStagger()
2016-04-23 13:21:27 -07:00
Sean Chittenden 882586fd05 Guard against divide by zero in lib.RandomStagger()
While I'm at it, add a DurationMinusBufferDomain() function to calculate the min/max for a given call to DurationMinusBuffer() in order to keep the implementation details self-contained.
2016-04-23 13:11:32 -07:00
Sean Chittenden a4dc389e38 Add a helper function DurationMinusBuffer() to calculate an interval
used to schedule a TTL check.  e.g.

d := lib.DurationMinusBuffer(60 * time.Duration, 10 * time.Second, 16)

will return a duration between 46.875s and 50s.
2016-04-23 09:06:54 -07:00
James Phillips 4fb2514410 Merge pull request #1972 from hashicorp/sethvargo/referrer
Do not allow referrer to modify the sender
2016-04-22 21:11:41 -07:00