Mahmood Ali
c1f6c7b457
Upgrade hcl2 to validate arrays for unknown values
...
This upgrades hcl2 library dependency to pick up
https://github.com/hashicorp/hcl2/pull/113 .
Prior to this change, parsing and decoding array attributes containing
invalid errors (e.g. references to unknown variables) are silently
dropped, with `cty.Unknown` being assigned to the bad element. Rather
than showing a type/meaningful error from hcl2, we get a very decrypted
error message from msgpack layer trying to handle `cty.unknown`.
This ensures that we propagate diagnostics correctly and report
meaningful errors to users.
Fixes https://github.com/hashicorp/nomad/issues/5694
Fixes https://github.com/hashicorp/nomad/issues/5680
2019-06-17 12:28:14 -04:00
Lang Martin
a337488b5c
config parse update hcl with support for decoding bool to string
2019-06-10 13:12:38 -04:00
Mahmood Ali
cf1f3625b4
Update ugorji/go to latest
...
Our testing so far indicates that ugorji/go/codec maintains backward
compatiblity with the version we are using now, for purposes of Nomad
serialization.
Using latest ugorji/go allows us to get back to using upstream library,
get get the optimizations benefits in RPC paths (including code
generation optimizations).
ugorji/go introduced two significant changes:
* time binary format in debb8e2d2e
. Setting `h.BasicHandle.TimeNotBuiltin = true` restores old behavior
* ugorji/go started honoring `json` tag as well:
v1.1.4 is the latest but has a bug in handling RawString that's fixed in
d09a80c1e0
.
2019-05-09 19:35:58 -04:00
Lang Martin
9f3f11df97
Merge pull request #5601 from hashicorp/b-config-parse-direct-hcl
...
config parse direct hcl
2019-05-06 12:05:19 -04:00
Mahmood Ali
7b72105802
Update hashicorp/go-msgpack/codec
...
To pick up the fix in https://github.com/hashicorp/go-msgpack/pull/8 .
2019-05-02 10:59:09 -04:00
Chris Baker
a40477a7b8
test case for 5540 ( #5590 )
...
* client/metrics: modified metrics to use (updated) client copy of allocation instead of (unupdated) server copy
* updated armon/go-metrics to address race condition in DisplayMetrics
2019-04-30 10:31:35 -04:00
Lang Martin
7e0e9b1ec1
govendor fetch github.com/hashicorp/hcl@99e2f22
2019-04-30 10:30:12 -04:00
Lang Martin
0c9b9c4815
update vendor/github.com/hashicorp/hcl
2019-04-23 11:56:07 -04:00
Chris Baker
01c79666f0
vendor: updated consul-template and downstream
...
consul-template -> v0.20.0
consul/api -> v1.2.1
vault/api -> v1.0.3
go-retryablehttp -> v0.5.2
circonus-gometrics: modified local source for compat with go-retryablehttp
2019-04-10 10:34:10 -05:00
Jeff Mitchell
13dab7dd24
Divest api/ package of deps elsewhere in the nomad repo. ( #5488 )
...
* Divest api/ package of deps elsewhere in the nomad repo.
This will allow making api/ a module without then pulling in the
external repo, leading to a package name conflict.
This required some migration of tests to an apitests/ folder (can be
moved anywhere as it has no deps on it). It also required some
duplication of code, notably some test helpers from api/ -> apitests/
and part (but not all) of testutil/ -> api/testutil/.
Once there's more separation and an e.g. sdk/ folder those can be
removed in favor of a dep on the sdk/ folder, provided the sdk/ folder
doesn't depend on api/ or /.
* Also remove consul dep from api/ package
* Fix stupid linters
* Some restructuring
2019-03-29 14:47:40 -04:00
Mahmood Ali
bb32ba8784
Support driver config fields being set to nil ( #5391 )
...
To pick up https://github.com/hashicorp/hcl2/pull/90
2019-03-05 21:47:06 -05:00
Danielle Tomlinson
b59ed9d6c9
vendor: Update to latest hcl2
...
* Includes fixes for handling null blocks https://github.com/hashicorp/hcl2/pull/87
* Updates go-cty as a newer version is required by hcl2
2019-02-14 13:34:46 +01:00
Danielle Tomlinson
cca5f41360
vendor: Update go-plugin
...
This fixes a bug related to shutting down of GRPC plugin interfaces
(more info: https://github.com/hashicorp/go-plugin/pull/88 )
This does not yet fix all test cases for subprocess leaking, but is a
useful independant change.
2019-01-08 17:43:20 +01:00
Chris Baker
4109306fff
updated serf along with raft
2019-01-04 16:56:26 +00:00
Chris Baker
11c4496a4d
updated to latest hashicorp/raft and hashicorp/memberlist to pull
...
upstream fixes for accept-loop error handling
2019-01-04 14:01:36 +00:00
Alex Dadgar
4c57d2ec4d
Add plugin API versioning to plugin loader and plugins
2018-12-18 16:48:00 -08:00
Chris Baker
4bbb8106c1
updated memberlist dependency to latest, which is missing NMD-1173 error
2018-12-07 22:15:05 +00:00
Preetha Appan
cba7ed58e0
update consul template
2018-11-15 14:15:12 -06:00
Nick Ethier
66ff12e5f7
Update runc/libcontainer and friends ( #4655 )
...
* vendor: bump libcontainer and docker to remove Sirupsen imports
* vendor: fix bad vendoring of archive package
* vendor: fix api changes to cgroups in executor
* vendor: fix docker api changes
* vendor: update github.com/Azure/go-ansiterm to use non capitalized logrus import
2018-10-16 16:53:30 -07:00
Alex Dadgar
d58595b0b9
vendor vault api for backwards compatibility
2018-09-19 10:23:18 -07:00
Alex Dadgar
9dc26699b4
vendor yamux
2018-09-17 13:58:51 -07:00
Alex Dadgar
8b01793d63
vault consts
2018-09-11 12:05:47 -07:00
Alex Dadgar
66d40431f1
remove toplevel vault dependency
2018-09-11 10:19:03 -07:00
Alex Dadgar
50bf6b3e93
Missing vendors
2018-09-10 15:08:34 -07:00
Alex Dadgar
08286a54dc
Update retryablehttp
2018-09-10 15:02:05 -07:00
Alex Dadgar
38268aab24
vendor vault 0.11.1 api
2018-09-10 14:58:31 -07:00
Alex Dadgar
42b432d18d
block attr spec
2018-08-10 11:14:12 -07:00
Alex Dadgar
58a85f911e
Vendor conflicts
...
Vendored the tagged version of protobuf.
2018-08-07 13:02:47 -07:00
Chelsea Holland Komlo
1b598cbbb2
update grpc vendor dependencies
2018-08-06 11:43:24 -04:00
Nick Ethier
bba732b2c3
vendor: update github.com/hashicorp/go-hclog
2018-07-31 13:51:30 -04:00
Alvin Huang
ca3d767d40
bump go-discover to fix Azure provider vendor.json
file
2018-06-20 12:51:52 -04:00
Preetha Appan
ca5758741b
Update serf to pick up graceful leave fix
2018-05-10 11:16:24 -05:00
Chelsea Holland Komlo
d215326de7
update go-discover
2018-05-07 16:57:07 -04:00
Chelsea Holland Komlo
a6aa2f6bfa
vendor go-discover
2018-05-07 16:57:07 -04:00
Michael Schurter
0996c7da4e
vendor: update consul for grpc
2018-05-04 11:08:11 -07:00
Preetha Appan
f2a817fdf4
Update go-getter to pick up file accesstime fix
2018-04-25 16:32:36 -07:00
Charlie Voiselle
4a5f90194c
Vendored hashicorp/go-getter
...
Brings in fix for directory permissions when expanding tarballs
2018-04-10 13:07:35 -05:00
Nick Ethier
a541707528
vendor: pull in go-safetemp
2018-04-09 17:19:26 -04:00
Alex Dadgar
0733ef47e6
vendor go-getter
2018-04-09 13:34:38 -07:00
Alex Dadgar
73d2d8eb1a
vendor vault/api to get fix from https://github.com/hashicorp/vault/pull/4258
2018-04-03 15:48:26 -07:00
Alex Dadgar
a950db3a95
vendor gosockaddr
2018-03-20 10:39:39 -07:00
Preetha Appan
913317a767
Update yamux library to pick up memory performance optimization
2018-03-14 15:14:52 -05:00
Alex Dadgar
9fee7b2afc
Pull in new autopilot
2018-02-21 10:24:32 -08:00
Charlie Voiselle
3ce3aaf0c0
Vendored go-sockaddr and go-sockaddr/template
2018-02-08 09:30:05 -05:00
Kyle Havlovitz
a162b9ce14
Move server health loop into autopilot leader actions
2018-01-23 12:57:02 -08:00
Chelsea Komlo
d09cc2a69f
Merge pull request #3492 from hashicorp/f-client-tls-reload
...
Client/Server TLS dynamic reload
2018-01-23 05:51:32 -05:00
Michael Schurter
2fb69d33c4
Update go-envparse to allow dots in env vars
...
Includes hashicorp/go-envparse#2
2018-01-22 14:02:39 -08:00
Chelsea Holland Komlo
d86bee57da
vendor raft to master branch
2018-01-19 17:00:15 -05:00
Chelsea Holland Komlo
35466a331a
fixing up raft reload tests
...
close second goroutine in raft-net
2018-01-17 10:29:15 -05:00
Chelsea Holland Komlo
5f52e8e103
feedback from code review
2018-01-16 11:55:11 -05:00
Chelsea Holland Komlo
214d128eb9
reload raft transport layer
...
fix up linting
2018-01-08 14:52:28 -05:00
Chelsea Holland Komlo
ae7fc4695e
fixups from code review
...
Revert "close raft long-lived connections"
This reverts commit 3ffda28206fcb3d63ad117fd1d27ae6f832b6625.
reload raft connections on changing tls
2018-01-08 09:21:06 -05:00
Chelsea Holland Komlo
dfb6a3d9a8
close raft long-lived connections
2018-01-08 09:21:06 -05:00
Kyle Havlovitz
60279e328f
vendor: add autopilot and flags packages from consul
2017-12-18 14:29:35 -08:00
Alex Dadgar
5c9e4a5321
Update go-getter
2017-12-06 11:16:17 -08:00
Preetha
8e20aba14a
Merge pull request #3543 from hashicorp/b-consul-template-vendor-update
...
Vendor update to consul template 0.19.4
2017-11-14 09:35:33 -06:00
Preetha Appan
c60b7d45ed
Vendor update to consul template 0.19.4
2017-11-13 14:58:36 -06:00
Alex Dadgar
8f6f9e9e49
Clean vendored packages
...
This PR removes unused packages from the vendor folder.
2017-11-10 13:00:32 -08:00
Alex Dadgar
57cb99ea54
update consul-lib
2017-10-31 09:41:02 -07:00
Alex Dadgar
506f32b303
vendor freeport
2017-10-25 15:49:53 -07:00
Alex Dadgar
cb0d0ef009
move to consul freeport implementation
2017-10-23 16:51:40 -07:00
Alex Dadgar
9c1d17c242
vendor consul testutil
2017-10-20 17:22:30 -07:00
Michael Schurter
84f480528a
Consul test server fork without porter/rpc.ports
2017-10-16 17:05:00 -07:00
Michael Schurter
c01efb0a6d
Update vendored Consul to 1.0.0
...
Also install new porter dep
2017-10-16 16:04:14 -07:00
Alex Dadgar
1b3af355a6
vendor consul-template
2017-10-11 17:23:09 -07:00
Matt McQuillan
120ab59e0e
Updating go-checkpoint lib to have a fixed timeout
2017-10-09 15:23:46 -04:00
Alex Dadgar
484e481e74
vendor go-plugin file
2017-09-13 11:44:09 -07:00
Alex Dadgar
a2363e7583
sync acls
2017-09-13 11:38:29 -07:00
Alex Dadgar
ee145264f4
vendor filter iterator
2017-09-07 17:15:56 -07:00
Alex Dadgar
50058386bb
Merge pull request #3164 from hashicorp/v-go-getter
...
Update go-getter
2017-09-05 16:54:19 -07:00
Alex Dadgar
6de1e5d208
Vendor consul-template ( #3153 )
...
* Vendor consul-template
Fixes https://github.com/hashicorp/nomad/issues/3133
* changelog
2017-09-05 16:53:28 -07:00
Alex Dadgar
5e8635ff15
Update go-getter
...
Fixes https://github.com/hashicorp/nomad/issues/3154
2017-09-05 16:41:33 -07:00
Alex Dadgar
8486042a86
vendor go-memdb
2017-08-31 15:16:11 -07:00
Alex Dadgar
590ff91bf3
Deployment watcher takes state store
2017-08-30 18:51:59 -07:00
Alex Dadgar
6aaffa30f0
vendor template
2017-08-29 16:57:40 -07:00
Michael Schurter
b16304416e
Add missing consul/testutil/retry pkg
2017-08-17 16:44:21 -07:00
Michael Schurter
4e72a8dedf
Update Consul to v0.9.2 for Header and Method
2017-08-17 16:44:21 -07:00
Michael Schurter
9d93df6dc5
Vendor vault test deps
...
This is a weird one because `make bootstrap` does a `go get vault` so CI
never fails due to missing Vault dependencies. However developer
machines will have whatever version of vault they grabbed last time they
bootstrapped a new dev environment.
This can lead to surprising build issues and different devs testing
slightly different code.
So let's vendor all test deps to try to keep the Nomad repo
self-contained.
2017-08-11 10:31:05 -07:00
Alex Dadgar
6b238edc22
Merge pull request #3001 from hashicorp/f-template-events
...
Template emits events explaining why it is blocked
2017-08-10 13:00:58 -07:00
Alex Dadgar
4dbf88c354
Vendor new consul-template
2017-08-09 14:42:16 -07:00
Michael Schurter
d1888f5b97
Merge pull request #2983 from hashicorp/b-update-raft-atomics2
...
Update raft to fix atomics alingment on 32bit
2017-08-07 16:40:54 -07:00
Michael Schurter
c1be2c3193
Update raft to fix atomics alingment on 32bit
...
Related to #2963
Also pulls in some state file syncing improvements
2017-08-07 16:07:35 -07:00
Alex Dadgar
562ea52c8e
vendor vault api
2017-08-01 09:30:55 -07:00
Alex Dadgar
8df67563c7
Update consul-template
2017-08-01 09:24:23 -07:00
Michael Schurter
5f1f91a46c
Use go-testing-interface instead of testing
...
This drops the testings stdlib pkg from our dependencies. Saves a
whopping 46kb on our binary (was really hoping for more of a win there),
but also avoids potential ugliness with how testing sets flags.
2017-07-25 15:35:19 -07:00
Alex Dadgar
6616a582fb
Remove unneeded consul vendor
2017-07-22 22:42:45 -07:00
Alex Dadgar
5c6b4e7cc3
vendor
2017-07-21 13:29:08 -07:00
Alex Dadgar
a8f440bade
Vendor go-plugin
2017-07-21 12:11:21 -07:00
Michael Schurter
96e9857f12
Missing hashicorp/serf/serf dep
2017-07-19 11:53:53 -07:00
Michael Schurter
68891839d3
Update raft to hashicorp/raft@b3d48f1
...
Pulls in hashicorp/raft#225
2017-07-19 11:53:53 -07:00
Michael Schurter
cfa7606b4e
Update serf to hashicorp/serf@bbeddf0
2017-07-19 11:53:53 -07:00
Michael Schurter
9514c3bf12
Update go-getter to get .xz support
2017-07-14 10:31:21 -07:00
Michael Schurter
e8a059345c
Merge pull request #2794 from hashicorp/f-update-raft
...
Update raft to get hashicorp/raft#212 fix
2017-07-07 16:22:23 -07:00
Michael Schurter
eee850b1e6
Update consul-template
2017-07-07 14:42:31 -07:00
Michael Schurter
a1bdc26464
Update raft to get hashicorp/raft#212 fix
2017-07-06 17:18:18 -07:00
Michael Schurter
90f6a60f45
New go-getter test dep
2017-07-06 10:45:44 -07:00
Michael Schurter
5bf5dae13e
Update go-getter for minio support
2017-07-06 10:45:44 -07:00
Michael Schurter
0d3bdf7210
Add support for go-getter modes
...
Fixes #2678
2017-07-06 10:45:44 -07:00
Jonathan Ballet
3ffb39ea2b
Upgrade go-sockaddr/template to latest version + upgrade CHANGELOG
2017-06-25 20:55:40 +02:00
Michael Schurter
3c66f4ddc8
Update go-sockaddr to lookup ip on $PATH
...
Fixes #2696
2017-06-22 13:46:48 -07:00