Commit Graph

10006 Commits

Author SHA1 Message Date
Michael Schurter
7ae2291572 Improve invalid port error message for services
Related to #3681

If a user specifies an invalid port *label* when using
address_mode=driver they'll get an error message about the label being
an invalid number which is very confusing.

I also added a bunch of testing around Service.AddressMode validation
since I was concerned by the linked issue that there were cases I was
missing. Unfortunately when address_mode=driver is used there's only so
much validation that can be done as structs/structs.go validation never
peeks into the driver config which would be needed to verify the port
labels/map.
2018-01-18 15:35:24 -08:00
Michael Schurter
6d77215f37 Improve driver network logging 2018-01-18 15:35:24 -08:00
Michael Schurter
e0a3687faa Fix test 2018-01-18 15:35:24 -08:00
Michael Schurter
cde796162c Always advertise driver IP when in driver mode
Fixes #3681

When in drive address mode Nomad should always advertise the driver's IP
in Consul even when no network exists. This matches the 0.6 behavior.

When in host address mode Nomad advertises the alloc's network's IP if
one exists. Otherwise it lets Consul determine the IP.

I also added some much needed logging around Docker's network discovery.
2018-01-18 15:35:24 -08:00
Alex Dadgar
3b95662cf2 changelog 2018-01-18 13:09:41 -08:00
Alex Dadgar
335fb4ec58 Merge pull request #3687 from mikemccracken/add-lxc-bindmounts
Add volumes config to LXC driver
2018-01-18 13:07:09 -08:00
Alex Dadgar
f38967feb7 Merge pull request #3771 from mikemccracken/2018-01-18/fix-json-example
website: fix example json job
2018-01-18 13:05:32 -08:00
Preetha Appan
f975128f2c Linkify CHANGELOG 2018-01-18 10:10:38 -06:00
Michael McCracken
561376e3b9 lxc_test: add test for contents of file in bind-mounted dir
Ensure that bind mounting via the volumes config really did work.

Signed-off-by: Michael McCracken <mikmccra@cisco.com>
2018-01-18 05:36:45 -08:00
Michael McCracken
f86fbdcf1a Simplify with gofmt -s
Signed-off-by: Michael McCracken <mikmccra@cisco.com>
2018-01-18 04:17:42 -08:00
Michael McCracken
1b0db851cf lxc: Add documentation for volumes support
Signed-off-by: Michael McCracken <mikmccra@cisco.com>
2018-01-18 04:17:42 -08:00
Michael McCracken
8331cbdd57 lxc: add tests for volume support
Signed-off-by: Michael McCracken <mikmccra@cisco.com>
2018-01-18 04:17:42 -08:00
Michael McCracken
bbdd58963d lxc: Add config flag to disable volume support
Signed-off-by: Michael McCracken <mikmccra@cisco.com>
2018-01-18 04:17:42 -08:00
Michael McCracken
b597916a95 Add volumes config to LXC driver
Allow lxc driver to accept bind mount config similarly to the docker
driver.

Includes some static sanity checks in Validate step

Signed-off-by: Michael McCracken <mikmccra@cisco.com>
2018-01-18 04:17:42 -08:00
Michael McCracken
58a270cff1 website: fix example json job
Can't use the string syntax in json.

Also fixes typo in curl example command.

Signed-off-by: Michael McCracken <mikmccra@cisco.com>
2018-01-18 04:15:13 -08:00
Michael Lange
7f7b256727 Merge pull request #3767 from hashicorp/f-update-nokogiri
update middleman-hashicorp
2018-01-17 15:17:16 -08:00
Matthew Irish
db76fd8af6 update middleman-hashicorp 2018-01-17 15:55:49 -06:00
Michael Lange
502b352bc9 Merge pull request #3665 from hashicorp/f-ui-upgrade-deps
UI: Upgrade dependencies
2018-01-17 09:47:19 -08:00
Michael Lange
11f5e4be68 Use Node 8 2018-01-17 09:04:01 -08:00
Michael Lange
249fe6fd94 Add breadcrumbs to the styleguide 2018-01-17 09:04:01 -08:00
Michael Lange
c8fcb4c710 Reorganize the styleguide using components for sections 2018-01-17 09:04:01 -08:00
Michael Lange
89118a0505 Add boxed-section component to the styleguide 2018-01-17 09:04:00 -08:00
Michael Lange
ab6c443edf Add basic elements to the styleguide 2018-01-17 09:04:00 -08:00
Michael Lange
a6e8007d06 Add jumbo distribution bar to the styleguide 2018-01-17 09:04:00 -08:00
Michael Lange
62dbb27365 Move distribution bar styleguide material to a component 2018-01-17 09:04:00 -08:00
Michael Lange
78d1671253 Move button styleguide material to a component 2018-01-17 09:04:00 -08:00
Michael Lange
44b8f97d39 Fix syntax highlighting in the styleguide 2018-01-17 09:04:00 -08:00
Michael Lange
cff01570d6 Fix a class name bug in the distribution bar 2018-01-17 09:04:00 -08:00
Michael Lange
f8e563ba71 A new place to put styles only the styleguide uses 2018-01-17 09:04:00 -08:00
Michael Lange
4605d95f39 Update the ember-freestyle dep 2018-01-17 09:04:00 -08:00
Michael Lange
856b01148b Run prettier on all files
Since prettier updated, some files have out of date formatting.
2018-01-17 09:04:00 -08:00
Michael Lange
bd3550ff31 Upgrade lint-staged 2018-01-17 09:04:00 -08:00
Michael Lange
de54ba7e36 Upgrade stale deps 2018-01-17 09:04:00 -08:00
Michael Lange
01102b24f7 Remove unused ui travis config 2018-01-17 09:04:00 -08:00
Michael Lange
e2ffbc0e4c Add chrome to Travis 2018-01-17 09:04:00 -08:00
Michael Lange
7526295e88 Use ember-test-selectors for integration tests 2018-01-17 09:03:59 -08:00
Michael Lange
14adc01f68 Upgrade testing related dependencies 2018-01-17 09:03:59 -08:00
Michael Lange
efbe0c1faf Switch from phantomjs to headless chrome 2018-01-17 09:03:59 -08:00
Michael Lange
4c36907505 Use data-test- selectors in acceptance tests 2018-01-17 09:03:59 -08:00
Michael Lange
96752ec100 Adds the ember-test-selectors addon 2018-01-17 09:03:59 -08:00
Michael Lange
0f06032fd7 Upgrade ember-cli-sass 2018-01-17 09:03:59 -08:00
Michael Lange
13e63ea1d5 Strengthen the .tag override selector
In 0.5.2, Bulma excludes the body element from the selector to work around
an issue with Wordpress.
2018-01-17 09:03:59 -08:00
Michael Lange
85dff27e5d Remap $info to $blue
Bulma defaults $info to $cyan in 0.6.0
2018-01-17 09:03:59 -08:00
Michael Lange
8228c45ba6 Specify color overrides in navbar
Bulma 0.5.2 introduced color modifiers for navbar
2018-01-17 09:03:59 -08:00
Michael Lange
16522058b4 Upgrade bulma to latest (0.6.1) 2018-01-17 09:03:59 -08:00
Michael Lange
10a9370289 Replace nav with navbar
Bulma introduced navbar while deprecating nav in 0.4.3
Bulma removed deprecated nav in 0.6.0
2018-01-17 09:03:59 -08:00
Michael Lange
dbdbde4f9a Replace custom breadcrumbs CSS with new Bulma provided CSS 2018-01-17 09:03:59 -08:00
Michael Lange
d458ae7e4e Update variable names 2018-01-17 09:03:58 -08:00
Michael Lange
2c7cb11a72 Default to 100% wide tables
Bulma 0.5.0 makes tables auto by default and adds the
full-width modifier.
2018-01-17 09:03:58 -08:00
Michael Lange
72d5359de4 Upgrade Bulma to 5.0 2018-01-17 09:03:58 -08:00