Preetha
e7ff3e855d
Merge pull request #6097 from hashicorp/f-kind-validate
...
Add validation for kind field if it is a consul connect proxy
2019-08-13 11:05:30 -05:00
Preetha Appan
34180de271
More code review feedback
2019-08-12 17:41:40 -05:00
Tim Gross
ffb83e1ef1
client/template: configuration for function blacklist and sandboxing
...
When rendering a task template, the `plugin` function is no longer
permitted by default and will raise an error. An operator can opt-in
to permitting this function with the new `template.function_blacklist`
field in the client configuration.
When rendering a task template, path parameters for the `file`
function will be treated as relative to the task directory by
default. Relative paths or symlinks that point outside the task
directory will raise an error. An operator can opt-out of this
protection with the new `template.disable_file_sandbox` field in the
client configuration.
2019-08-12 16:34:48 -04:00
Preetha Appan
306cfd66c4
Improve validation logic and add table driven tests
2019-08-12 14:39:50 -05:00
Danielle Lancashire
a86a07770e
command: Cleanup node-status
2019-08-12 15:39:09 +02:00
Danielle Lancashire
f478c8cc24
cli: Display host volume info in nomad node status
2019-08-12 15:39:09 +02:00
Danielle Lancashire
7b7be83aef
HostVolumeConfig: Source -> Path
2019-08-12 15:39:08 +02:00
Danielle Lancashire
af5d42c058
structs: Unify Volume and VolumeRequest
2019-08-12 15:39:08 +02:00
Danielle Lancashire
a216daedce
api: Allow submission of jobs with volumes
2019-08-12 15:39:08 +02:00
Danielle Lancashire
86b4296f9d
client: Add parsing and registration of HostVolume configuration
2019-08-12 15:39:08 +02:00
Nick Ethier
07ce33a747
Add sidecar_task stanza parsing ( #6104 )
...
* jobspec: breakup parse.go into smaller files
* add sidecar_task parsing to jobspec and api
* jobspec: combine service parsing logic for task and group service stanzas
* api: use slice of ConsulUpstream values instead of pointers
2019-08-09 15:18:53 -04:00
Preetha
5cd863cea6
Merge pull request #6090 from hashicorp/f-task-kind
...
Add field "kind" to task for use in connect tasks
2019-08-08 14:40:12 -05:00
Nick Ethier
144fb1bfee
Revert "client: add autofetch for CNI plugins"
...
This reverts commit 0bd157cc3b .
2019-08-08 15:10:19 -04:00
Preetha Appan
57009442b1
Add field "kind" to task for use in connect tasks
2019-08-07 18:43:36 -05:00
Jasmine Dahilig
1bdb111127
add create and modify timestamps to evaluations ( #5881 )
2019-08-07 09:50:35 -07:00
Michael Schurter
d0abe89d1a
Merge pull request #6045 from hashicorp/f-connect-groupservice
...
consul: add Connect structs
2019-08-06 15:43:38 -07:00
Michael Schurter
75e5e033fd
consul: add Connect structs
...
Refactor all Consul structs into {api,structs}/services.go because
api/tasks.go didn't make sense anymore and structs/structs.go is
gigantic.
2019-08-06 08:15:07 -07:00
Jasmine Dahilig
692cd9c19e
job region defaults to client node region if 'global' or none provided ( #6064 )
2019-08-05 14:28:02 -07:00
Tim Gross
6c2392ca64
api: add follow param to file stream endpoint ( #6049 )
...
The `/v1/client/fs/stream endpoint` supports tailing a file by writing
chunks out as they come in. But not all browsers support streams
(ex IE11) so we need to be able to tail a file without streaming.
The fs stream and logs endpoint use the same implementation for
filesystem streaming under the hood, but the fs stream always passes
the `follow` parameter set to true. This adds the same toggle to the
fs stream endpoint that we have for logs. It defaults to true for
backwards compatibility.
2019-08-01 08:32:43 -04:00
Nick Ethier
0b8fc5d018
client/cni: updated comments and simplified logic to auto download plugins
2019-07-31 01:04:10 -04:00
Nick Ethier
1072084ff3
Apply suggestions from code review
...
Co-Authored-By: Mahmood Ali <mahmood@hashicorp.com >
2019-07-31 01:04:10 -04:00
Nick Ethier
0bd157cc3b
client: add autofetch for CNI plugins
2019-07-31 01:04:09 -04:00
Nick Ethier
dc08ec8783
ar: plumb client config for networking into the network hook
2019-07-31 01:04:06 -04:00
Michael Schurter
eb2a2cd76e
connect: add group.service stanza support
2019-07-31 01:04:05 -04:00
Nick Ethier
bfe7841913
agent: simplify if block
2019-07-31 01:03:17 -04:00
Nick Ethier
b60bc8c17d
Add network stanza to group
...
Adds a network stanza and additional options to the task group level
in prep for allowing shared networking between tasks of an alloc.
2019-07-31 01:03:12 -04:00
Michael Schurter
c52edb3287
Merge pull request #5978 from pete-woods/configurable-job-gc-interval
...
command/agent: allow the job GC interval to be configured
2019-07-30 15:54:29 -07:00
Nomad Release bot
a81aa846a4
Generate files for 0.9.4 release
2019-07-30 19:05:18 +00:00
Pete Woods
66bf8eb599
Allow the job GC interval to be configured from default of 5 minutes
2019-07-26 10:11:25 +01:00
Danielle
e55f70a4f5
Merge pull request #5996 from hashicorp/f-reload-log-level
...
Support for hot reloading log levels
2019-07-24 13:54:04 +02:00
Danielle Lancashire
2d48ce9991
Support for hot reloading log levels
2019-07-24 13:37:08 +02:00
Nomad Release bot
4999923574
Generate files for 0.9.4-rc1 release
2019-07-22 21:42:36 +00:00
Danielle Lancashire
1cd86141d9
chore: Format hcl configurations
2019-07-20 16:55:07 +02:00
Michael Schurter
858d18df04
Merge pull request #5975 from hashicorp/b-check-watcher-deadlock
...
consul: fix deadlock in check-based restarts
2019-07-18 13:13:40 -07:00
Michael Schurter
17636727e1
consul: add test for check watcher deadlock
2019-07-18 08:24:09 -07:00
Michael Schurter
b4b2b42e28
Update command/agent/consul/check_watcher.go
...
Co-Authored-By: Mahmood Ali <mahmood@hashicorp.com >
2019-07-18 07:08:27 -07:00
Michael Schurter
9c418c224b
consul: fix deadlock in check-based restarts
...
Fixes #5395
Alternative to #5957
Make task restarting asynchronous when handling check-based restarts.
This matches the pre-0.9 behavior where TaskRunner.Restart was an
asynchronous signal. The check-based restarting code was not designed
to handle blocking in TaskRunner.Restart. 0.9 made it reentrant and
could easily overwhelm the buffered update chan and deadlock.
Many thanks to @byronwolfman for his excellent debugging, PR, and
reproducer!
I created this alternative as changing the functionality of
TaskRunner.Restart has a much larger impact. This approach reverts to
old known-good behavior and minimizes the number of places changes are
made.
2019-07-17 15:22:21 -07:00
Chris Baker
0965379f27
Merge pull request #5870 from hashicorp/b-nmd-1529-alloc-stop-missing-header
...
api: return X-Nomad-Index header on allocation stop
2019-07-17 13:25:17 -04:00
Mahmood Ali
15caf5cf8c
Merge pull request #5837 from hashicorp/b-consul-restore-sync-2
...
Avoid de-registering slowly restored services
2019-07-17 12:02:24 +08:00
Mahmood Ali
121c97475d
address review feedback
2019-07-17 10:43:13 +07:00
Eli Shvartsman
b2d40e7ef7
take NodeID from url in api for node eligibility
2019-07-15 18:34:53 +03:00
Preetha
0819e4af18
Merge pull request #5894 from hashicorp/f-remove-deprecated-code
...
Remove deprecated code
2019-07-02 09:29:24 -05:00
Preetha Appan
4fa6688f73
Undo removal of node drain compat changes
...
Decided to remove that in 0.10
2019-07-01 15:12:01 -05:00
Preetha Appan
f7f41c42e6
Infer content type in alloc fs stat endpoint
2019-06-28 20:31:28 -05:00
Preetha Appan
154e09e8ca
one more drain test
2019-06-26 17:33:51 -05:00
Preetha Appan
27edf8f5fc
remove now unneeded test
2019-06-26 16:59:23 -05:00
Preetha Appan
913427428a
Remove compat code associated with many previous versions of nomad
...
This removes compat code for namespaces (0.7), Drain(0.8) and other
older features from releases older than Nomad 0.7
2019-06-25 19:05:25 -05:00
Chris Baker
77619b6b63
api: return X-Nomad-Index header on allocation stop
2019-06-21 16:20:06 +00:00
Chris Baker
7bc951237b
alloc lifecycle: 404 when attempting to stop non-existent allocation
2019-06-20 21:27:22 +00:00
Mahmood Ali
6708a0ccc9
Merge pull request #5726 from hashicorp/b-plugins-via-init
...
Use init() to handle plugin invocation
2019-06-18 21:09:03 -04:00