Commit Graph

9545 Commits

Author SHA1 Message Date
Preetha
800c6e346d Update validate.html.md.erb 2017-11-16 07:56:26 -06:00
Preetha
38798c8c54 Adding some more explanatory text around validating 2017-11-15 16:48:16 -06:00
Preetha Appan
f630ae32ff Update documentation about validation logic for service names. 2017-11-15 15:42:03 -06:00
Preetha Appan
05d52b621c Changes service name validation logic to ignore any environment variables first. 2017-11-15 15:35:43 -06:00
Preetha Appan
5d58f7b319 Update Changelog 2017-11-15 08:28:27 -06:00
Preetha Appan
3d61c3bece Update CHANGELOG.md to mention consul template version 2017-11-15 08:25:57 -06:00
Preetha
ab3712d367 Merge pull request #3550 from hashicorp/b-pretty-diff-0s
Handle edge case when allocation create/modify time difference is les…
2017-11-14 20:33:05 -06:00
Preetha Appan
9e5f12f8b4 Declare time.Now once to prevent flakiness 2017-11-14 20:32:02 -06:00
Chelsea Komlo
fa9fd4422c Nomad agent reload TLS configuration on SIGHUP (#3479)
* Allow server TLS configuration to be reloaded via SIGHUP

* dynamic tls reloading for nomad agents

* code cleanup and refactoring

* ensure keyloader is initialized, add comments

* allow downgrading from TLS

* initalize keyloader if necessary

* integration test for tls reload

* fix up test to assert success on reloaded TLS configuration

* failure in loading a new TLS config should remain at current

Reload only the config if agent is already using TLS

* reload agent configuration before specific server/client

lock keyloader before loading/caching a new certificate

* introduce a get-or-set method for keyloader

* fixups from code review

* fix up linting errors

* fixups from code review

* add lock for config updates; improve copy of tls config

* GetCertificate only reloads certificates dynamically for the server

* config updates/copies should be on agent

* improve http integration test

* simplify agent reloading storing a local copy of config

* reuse the same keyloader when reloading

* Test that server and client get reloaded but keep keyloader

* Keyloader exposes GetClientCertificate as well for outgoing connections

* Fix spelling

* correct changelog style
2017-11-14 17:53:23 -08:00
Alex Dadgar
e6df21b621 bump go 2017-11-14 15:06:41 -08:00
Preetha Appan
bc833c9c8c Handle edge case when allocation create/modify time difference is less than a second ago. 2017-11-14 16:40:34 -06:00
Michael Lange
4de2ad3866 Merge pull request #3472 from hashicorp/f-ui-task-hierarchy
Task route hierarchy in the UI
2017-11-14 11:15:32 -08:00
Michael Lange
b3dc7364c5 Remold the allocation detail and task detail pages
Now that there is a task detail page, some of the content from
the allocation detail page is better suited there.
2017-11-14 11:08:51 -08:00
Michael Lange
d820c72142 Update allocation detail page to look like job and node 2017-11-14 11:05:29 -08:00
Michael Lange
0d2efb0f1a Create a new task route hierarchy
Drilling into a task from an allocation transitions to the task
heirarchy.
2017-11-14 11:04:40 -08:00
Preetha
4847b308fe 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
Alex Dadgar
e66a468784 Merge pull request #3500 from hashicorp/b-vendor
Clean vendored packages
2017-11-13 15:36:38 -08:00
Charlie Voiselle
0347417516 Merge pull request #3541 from angrycub/b-makefile-typo
Makefile typos
2017-11-13 18:08:01 -05:00
Preetha
5acf776d1d Merge pull request #3536 from angrycub/b-resource-memory-test-fix
Fixed test and moved constants into standalone func
2017-11-13 17:00:14 -06:00
Preetha Appan
5d737cfae3 Vendor update to consul template 0.19.4 2017-11-13 14:58:36 -06:00
Charlie Voiselle
bf1e314d70 Makefile typos 2017-11-13 14:57:17 -05:00
Alex Dadgar
ee063f9348 Merge pull request #3537 from hashicorp/d-docker-endpoints
Better docs for docker.endpoint option
2017-11-13 11:00:57 -08:00
Alex Dadgar
9c6fb1a845 Merge pull request #3538 from hashicorp/d-serf-name
Clarify Name config
2017-11-13 11:00:48 -08:00
Preetha Appan
d99b1d49c1 Update CHANGELOG.md 2017-11-13 12:46:42 -06:00
Michael Schurter
07497f66c4 unix -> Unix
I'm not going to leave a review comment just to uppercase one dumb letter
2017-11-13 10:45:21 -08:00
Alex Dadgar
f252a517b8 Clarify Name config
Fixes https://github.com/hashicorp/nomad/issues/3517
2017-11-13 10:37:55 -08:00
Preetha
3756e72e8e Merge pull request #3512 from hashicorp/b-docker-device-option
Add support for passing device into docker driver
2017-11-13 12:37:14 -06:00
Alex Dadgar
fbfbcfaf55 Better docs for docker.endpoint option
Fixes https://github.com/hashicorp/nomad/issues/3533
2017-11-13 10:20:40 -08:00
Preetha
a0e517cf93 Merge pull request #3535 from hashicorp/b-alloc-status-message-bugfix
Fixes bug with display message logic due to deprecating GenericSource…
2017-11-13 12:17:53 -06:00
Alex Dadgar
f5c0c4e7cc fix vault grace docs 2017-11-13 09:59:20 -08:00
Charlie Voiselle
c0f4f520b7 Review feedback + re-add dropped import 2017-11-13 12:51:19 -05:00
Charlie Voiselle
6c362720cf gofmt and goimports nomad/structs/structs.go 2017-11-13 12:32:52 -05:00
Charlie Voiselle
904d171108 gofmt and goimports 2017-11-13 12:25:02 -05:00
Preetha Appan
4e307587f0 Fixes bug with display message logic due to deprecating GenericSource. Also added more test cases to cover a bunch more edge cases 2017-11-13 11:14:57 -06:00
Charlie Voiselle
622d3ddb92 Fixed test and moved constants into standalone func
In #3520, work was done to true up the defaults for Nomad resource
stanzas with the documentation.  This fixes the tests that I
accidentally broke in the process.  Some questions were raised about
using dynamic elements as part of expects, which is why I opted to
copy the MinResources pattern.   During this refactor I also noticed
that structs.go had a similar issue and an inconsistent minium for CPU.
2017-11-13 12:05:30 -05:00
Preetha Appan
8e70fd812a Make device mounting unit test verify configuration via docker inspect 2017-11-13 09:56:54 -06:00
Preetha Appan
b2eeab1b8c Unit test (linux only) that tests mounting a device in the docker driver 2017-11-13 09:56:54 -06:00
Preetha Appan
929a781ae4 Add default value for cgroup permissions for device if not set 2017-11-13 09:56:54 -06:00
Preetha Appan
b0c03e45ff Remove unnecessary check since validate method already checks this 2017-11-13 09:56:54 -06:00
Preetha Appan
85c5218b78 Add support for passing device into docker driver 2017-11-13 09:56:54 -06:00
Alex Dadgar
28779af0fd Merge pull request #3531 from hashicorp/vault-nomad-docs-update
Updated Troubleshooting section of Vault Integration docs
2017-11-11 14:23:21 -08:00
Laura Uva
fea60bab3f Updated Troubleshooting section of Vault Integration docs to mention the policy requirements for certain version combinations of Vault and Nomad, due to changes in Vault default policy and Nomad's vendored Vault lease renewal API. 2017-11-10 16:36:43 -08:00
Michael Lange
6fcaab5b00 Merge pull request #3530 from hashicorp/b-allow-cross-origin-connections-in-ui
Allow cross origin connections in ui
2017-11-10 14:33:16 -08:00
Michael Lange
344d1dfe57 generated UI routes 2017-11-10 13:29:17 -08:00
Michael Lange
2c04edfd59 Remove the connect-src self restriction for the UI 2017-11-10 13:28:11 -08:00
Michael Lange
822cb6d334 Make make dev-ui work as expected 2017-11-10 13:27:48 -08:00
Alex Dadgar
d6bb642bc2 Clean vendored packages
This PR removes unused packages from the vendor folder.
2017-11-10 13:00:32 -08:00
Alex Dadgar
a8e69893ee Merge pull request #3529 from hashicorp/b-env-ct
Handle multiple environment templates
2017-11-10 12:56:02 -08:00
Alex Dadgar
90272052ef format 2017-11-10 12:47:59 -08:00
Alex Dadgar
0144cda976 changelog 2017-11-10 12:44:36 -08:00