Chelsea Holland Komlo
424e475333
if no context is specified, set maximum index for available contexts
2017-08-04 20:16:49 +00:00
Michael Schurter
cdbf729386
Document <task> network env vars
...
Looks like I accidently dropped them when combining env var listings in
PR #2709
2017-08-04 13:05:05 -07:00
Chelsea Holland Komlo
0b38704392
fix up tests to intantiate assertion test helper
...
add http tests for remaining contexts
2017-08-04 19:48:20 +00:00
Michael Schurter
7d70a78e78
Merge pull request #2966 from sprutner/patch-3
...
Update revert.html.md.erb
2017-08-04 11:15:50 -07:00
Seth Rutner
efee7fb635
Update revert.html.md.erb
...
wrong command
2017-08-04 11:06:04 -07:00
Rob Genova
7f87b0ea20
bind Nomad to all interfaces; enable Consul UI
2017-08-04 18:00:05 +00:00
Michael Schurter
5794e5ece7
Use int32 for atomic ops to avoid alignment issues
...
From https://golang.org/pkg/sync/atomic/#pkg-note-BUG :
On both ARM and x86-32, it is the caller's responsibility to arrange for
64-bit alignment of 64-bit words accessed atomically. The first word in
a global variable or in an allocated struct or slice can be relied upon
to be 64-bit aligned.
2017-08-04 10:14:16 -07:00
Chelsea Holland Komlo
1eff731d8b
further refactoring
2017-08-04 15:19:35 +00:00
Chelsea Holland Komlo
111019642b
resources are expected by state store to be plural
2017-08-04 15:07:34 +00:00
Chelsea Holland Komlo
927b6667c7
set response index and meta information
...
add tests for edge cases
2017-08-04 14:34:25 +00:00
Chelsea Holland Komlo
b2b4c5d7af
add documentation
...
extract magic number into variable
2017-08-04 14:34:25 +00:00
Chelsea Holland Komlo
b6f459a7a9
refactor rpc endpoint and tests
...
add test for when no prefixes are matched
add test for no context at HTTP api
2017-08-04 14:34:25 +00:00
Chelsea Holland Komlo
7b7a80d6ce
resources list endpoint accepts http POST and PUT
...
set the index for a resources response
2017-08-04 14:34:25 +00:00
Chelsea Holland Komlo
312bb19e1c
refactor and add error handling for invalid context type
2017-08-04 14:34:25 +00:00
Chelsea Holland Komlo
98fe705dff
adding allocations to resouces list endpoint
...
adding nodes to resources list endpoint
2017-08-04 14:34:25 +00:00
Chelsea Holland Komlo
2759ffe2d2
refactor to remove duplication for types of resources
2017-08-04 14:34:25 +00:00
Chelsea Holland Komlo
ef5a62aaa1
use upsert as a test helper
2017-08-04 14:34:25 +00:00
Chelsea Holland Komlo
0026a308ec
add truncation boolean to response
2017-08-04 14:34:25 +00:00
Chelsea Holland Komlo
06f10d2e5f
adds evaluations
...
makes context singular
2017-08-04 14:34:25 +00:00
Chelsea Holland Komlo
92cc40f1de
change resources endpoint from http get to post
2017-08-04 14:34:25 +00:00
Chelsea Holland Komlo
64a83edd9f
remove resourceliststub, no need for another layer of abstraction
2017-08-04 14:34:25 +00:00
Chelsea Holland Komlo
5192dacf85
limit resources results to 20
2017-08-04 14:34:25 +00:00
Chelsea Holland Komlo
197c411767
refactor test helper
2017-08-04 14:34:25 +00:00
Chelsea Holland Komlo
377b059e5e
remove unnecessary validations; these are tested elsewhere
2017-08-04 14:34:25 +00:00
Chelsea Holland Komlo
36285a4b23
test resources endpoint will return matching prefixes
2017-08-04 14:34:25 +00:00
Chelsea Holland Komlo
ecd0d85a4e
adding test validation that received resources matches requested
2017-08-04 14:34:25 +00:00
Chelsea Holland Komlo
4dd6b46198
Retrieve job information for resources endpoint
...
requires further refactoring and logic for more contexts
2017-08-04 14:34:25 +00:00
Kate Taggart
255aab7139
Merge pull request #2962 from jvoorhis/master
...
Spelling and grammar fixes for manual bootstrap guide.
2017-08-03 21:07:53 -07:00
Jeremy Voorhis
8e029eefde
Spelling and grammar fixes for bootstrap guide.
2017-08-03 20:45:44 -07:00
Alex Dadgar
7b13c0d702
Lost allocs replaced even if deployment failed
...
This PR allows the scheduler to replace lost allocations even if the job
has a failed or paused deployment. The prior behavior was confusing to
users.
Fixes https://github.com/hashicorp/nomad/issues/2958
2017-08-03 17:42:14 -07:00
Michael Schurter
4d76061854
Merge pull request #2816 from capone212/fix-pending-state
...
#2563 fixed pending state for allocations with terminal status
2017-08-03 17:32:07 -07:00
Michael Schurter
c76b3b54b9
Merge branch 'master' into fix-pending-state
2017-08-03 17:27:03 -07:00
Alex Dadgar
2284e59b57
Fix double close and cleanup code
2017-08-03 13:40:34 -07:00
Alex Dadgar
146f3f5cb2
Don't restore parameterized periodic jobs
2017-08-03 12:37:58 -07:00
Michael Schurter
e42f71f787
Revert "Rename GNUMakefile to Makefile"
...
This reverts commit 9f2ea92877ed655063a5ecf6bb22b7703bc2cea2.
2017-08-03 09:23:53 -07:00
Alex Dadgar
21155d0a4e
Rename
2017-08-02 13:33:46 -07:00
Alex Dadgar
8e9d39ee1f
Persistent server config
2017-08-02 13:30:42 -07:00
Alex Dadgar
50b041c6d1
slightly clean default client.config
2017-08-02 13:23:07 -07:00
Alex Dadgar
c004742860
Add dev/
for configs for use by Nomad developers
...
This PR adds a folder `dev/` which can be used to store helpful commands
and configs for use when developing Nomad itself.
2017-08-02 13:20:06 -07:00
Alex Dadgar
8ef5632884
Merge pull request #2955 from hashicorp/sethvargo/remove_people
...
Remove people from community section
2017-08-02 13:03:21 -07:00
Seth Vargo
c139711b38
Remove people from community section
...
This is going to be replaced with dynamic content from our CMS in the
future, but we agreed to remove it in the interim.
2017-08-02 15:03:37 -04:00
Alex Dadgar
d68caec2b9
Merge pull request #2954 from jrxFive/python_nomad_client_library_to_docs
...
add third party client library link for python
2017-08-02 11:17:46 -07:00
Jonathan Cross
c5b107d916
fix wording
2017-08-02 13:54:49 -04:00
Jonathan Cross
65b4141f91
add third party client library link for python
2017-08-02 13:51:37 -04:00
Michael Schurter
47186e3b15
Merge pull request #2952 from jen20/idea-gitignore
...
meta: Ignore IntelliJ IDEA/Gogland project files
2017-08-02 09:27:50 -07:00
Michael Schurter
f38bf52b29
Merge pull request #2951 from jen20/add-dev-marker
...
meta: Set main.VersionPrerelease="dev"
2017-08-02 09:26:43 -07:00
Michael Schurter
e26747112a
Merge pull request #2950 from hashicorp/d-service-discovery-typo
...
"it's" -> "its"
2017-08-02 09:25:35 -07:00
Michael Schurter
02ee8a3fc3
Merge pull request #2949 from hashicorp/sethvargo/makefilemv
...
Rename GNUMakefile to Makefile
2017-08-02 09:24:42 -07:00
James Nugent
4512de2885
meta: Ignore IntelliJ IDEA/Gogland project files
2017-08-02 10:18:18 -05:00
James Nugent
afbfe7fe4c
meta: Set main.VersionPrerelease="dev"
...
For most projects using this versioning system, making a commit bumping
the version and re-adding the development tag is part of the release
SOP (certainly it was for Terraform!). I'm not sure why it didn't happen
here, but without this, all development builds show up as Nomad v0.6.0
with no dirty marker or commit marker.
2017-08-02 10:05:01 -05:00