Commit graph

8302 commits

Author SHA1 Message Date
Alex Dadgar 8ece6064db Merge pull request #3083 from nicolaevladescu/master
Fix typo Automtic -> Automatic
2017-08-23 10:06:19 -07:00
Nicolae Vlădescu ee56faec04 Fix typo Automtic -> Automatic 2017-08-23 17:09:47 +03:00
Alex Dadgar e05c45c4f5 Merge pull request #3076 from hashicorp/f-autocomplete-args
Autocomplete arguments for remaining commands
2017-08-22 14:04:22 -07:00
Alex Dadgar 00947f3ff4 move autocomplete functions to top for consistency of placement 2017-08-22 13:41:42 -07:00
Alex Dadgar f79c14ac4c flesh out the rest of the job subcommands 2017-08-22 13:39:06 -07:00
Alex Dadgar b41be1f85b update older autocomplete tests to inject state 2017-08-22 13:33:12 -07:00
Alex Dadgar e3a71f6c53 nomad stop 2017-08-22 13:22:29 -07:00
Alex Dadgar c172972b61 inspect 2017-08-22 13:19:29 -07:00
Alex Dadgar 554e17c3e9 node drain 2017-08-22 13:13:44 -07:00
Alex Dadgar 17e362e162 logs and fs 2017-08-22 13:11:32 -07:00
Alex Dadgar 02f26f3384 Autocomplete deployment commands 2017-08-22 13:05:24 -07:00
Alex Dadgar 37b7528683 changelog 2017-08-22 10:44:55 -07:00
Alex Dadgar 422332c8bf Merge pull request #3002 from jrasell/gh_2993
Add the Nomad agent version to the node-status CLI output.
2017-08-22 10:43:25 -07:00
Alex Dadgar a26b80f382 Merge branch 'master' of github.com:hashicorp/nomad 2017-08-21 17:58:58 -07:00
Alex Dadgar 01e532fe4a fix lxc 2017-08-21 17:43:51 -07:00
Alex Dadgar 4ae93ade9c fix lxc 2017-08-21 17:09:17 -07:00
Alex Dadgar 2a5f5030d3 remove printing of GOOS for generate 2017-08-21 15:18:24 -07:00
Alex Dadgar ddd3726d8f Merge pull request #2953 from jen20/gnumake
build: Replace shell scripts with GNUmakefile
2017-08-21 15:16:46 -07:00
Alex Dadgar c7d2b566e8 changelog 2017-08-21 14:12:38 -07:00
Alex Dadgar 690c11bbef Merge pull request #3070 from hashicorp/b-rolling
Placing allocs counts towards placement limit
2017-08-21 14:08:10 -07:00
Alex Dadgar 0aef02a4f9 fix test 2017-08-21 14:07:54 -07:00
Chelsea Komlo 49542712f9 Merge pull request #3068 from hashicorp/f-add-deployments-search-api
Add deployments to search api
2017-08-21 16:34:00 -04:00
Alex Dadgar 45f0c4f58c Merge pull request #3069 from clinta/mount-docs
add docs for mount
2017-08-21 12:54:37 -07:00
Alex Dadgar 9125b2e55d changelog 2017-08-21 12:53:48 -07:00
Alex Dadgar 27256ebcc6 Placing allocs counts towards placement limit
This PR makes placing new allocations count towards the limit. We do not
restrict how many new placements are made by the limit but we still
count towards the limit. This has the nice affect that if you have a
group with count = 5 and max_parallel = 1 but only 3 allocs exist for it
and a change is made, you will create 2 more at the new version but not
destroy one, taking you down to two running as you would have
previously.

Fixes https://github.com/hashicorp/nomad/issues/3053
2017-08-21 12:41:19 -07:00
Clint Armstrong 3cdcbc5c6b add docs for mount 2017-08-21 15:32:44 -04:00
Rob Genova 9933ea3a2c Merge pull request #3059 from hashicorp/d-minor-doc-updates-2
Minor doc updates
2017-08-21 11:20:26 -07:00
Alex Dadgar 14bae424e1 Merge pull request #3041 from hashicorp/b-3036-update-gopsutil
Update gopsutil to stop calling SetEnv
2017-08-21 10:42:04 -07:00
Chelsea Holland Komlo 50c20b1801 add deployments to search api 2017-08-21 15:20:55 +00:00
Alex Dadgar 1769b426ed fix hook 2017-08-20 20:45:00 -07:00
Rob Genova f6b072dd8e add bold formatting 2017-08-19 00:14:13 +00:00
Rob Genova ee56124af3 reword for clarity; note that data is not replicated between regions 2017-08-19 00:13:26 +00:00
Rob Genova 7fa76891f1 Merge pull request #3058 from hashicorp/d-minor-doc-updates
Minor documentation tweaks
2017-08-18 16:35:52 -07:00
Rob Genova 021bb2213d Reword long-ish sentence. 2017-08-18 23:18:20 +00:00
Rob Genova 839b0e1a36 Clarify that it is not required to set a Vault token on the clients. 2017-08-18 23:17:20 +00:00
Rob Genova cbdb5960e9 Make it explicit that data is not replicated between regions. 2017-08-18 23:16:39 +00:00
Michael Schurter 51a27cc83d Merge pull request #3031 from hashicorp/f-2924-consul-headers
Add Header and Method support for HTTP checks
2017-08-18 13:35:08 -07:00
Michael Schurter 7ebd429a86 Merge mistake made go fmt fail 2017-08-18 13:19:44 -07:00
James Nugent 196cdf4e64 build: Replace shell scripts with GNUmakefile
This commit replaces the shell script-driven build process for Nomad
with one based around GNU Make (note we _do_ use GNU-specific
constructs), requiring no additional scripts for common cases of
development. The following targets are implemented:

Per-OS/arch combinations:

    Binaries (Host - Mac OS X):
	pkg/darwin_amd64/nomad

    Binaries (Host - Linux):
	pkg/linux_386/nomad
	pkg/linux_amd64/nomad
	pkg/linux_amd64-lxc/nomad
	pkg/linux_arm/nomad
	pkg/linux_arm64/nomad
	pkg/windows_386/nomad
	pkg/windows_amd64/nomad

    Packages (Host - Mac OS X):
	pkg/darwin_amd64.zip

    Packages (Host - Linux):
	pkg/linux_386.zip
	pkg/linux_amd64.zip
	pkg/linux_amd64-lxc.zip
	pkg/linux_arm.zip
	pkg/linux_arm64.zip
	pkg/windows_386.zip
	pkg/windows_amd64.zip

Phony targets:

	dev - Builds for the current host GOOS/GOARCH (unless overriden
	      in the environment)

	release - Builds all appropriate release packages for the
	          current host GOOS/GOARCH (i.e. Windows and Linux
		  packages on a Linux host, Darwin packages on an OSX
		  host)

	generate - Generate code for the current host architecture using
	           `go generate`.

	test - Runs the Nomad test suite

	clean - Removes build artifacts

	travis - Runs `make test` with the wrapper script to prevent
	         Travis CI from timing out.

	help - Displays usage information about commonly used targets.

Note that there are some semantic differences from the previous version.

1. `generate` is no longer a dependency of `dev` builds. This is because
   it causes a rebuild every time, even when no code has changed, since
   `go generate` does not appear to leave file timestamps alone.
   Regardless, it is insufficient to generate on one host OS - it needs
   to be run on each target to ensure everything is generated correctly.

2. `gofmt` is no longer checked. This should be enabled as a linter once
   the `gofmt -s` refactoring will pass on the whole code base, in order
   to avoid special cased checks versus using go-metalinter.

Example Usages:

Make a development build for the current GOOS/GOARCH:

	make dev

Make release build packages appropriate for the host OS:

	make release

Update generated code for the host OS:

	make generate

Run linting checks:

	make check

Build a specific alternative GOOS/GOARCH/tags combination:

	make pkg/linux_amd64-pkg/nomad
	make pkg/linux_amd64-pkg.zip
2017-08-18 06:29:26 +01:00
Alex Dadgar 92b1cf8188 build acl branch 2017-08-17 17:29:33 -07:00
Michael Schurter 5c015da3cb Merge pull request #3021 from clinta/docker-mount2
Expose docker mount options
2017-08-17 16:57:09 -07:00
Michael Schurter 6b8bac4929 Update to latest upstream gopsutil 2017-08-17 16:52:53 -07:00
Michael Schurter b1fa005656 Document check header and method 2017-08-17 16:49:14 -07:00
Michael Schurter 4590b81a0a Add check header and method changelog entry 2017-08-17 16:49:14 -07:00
Michael Schurter c5529bdd16 Put header diff in its own function 2017-08-17 16:49:14 -07:00
Michael Schurter e65fe686ed Test check header error conditions 2017-08-17 16:49:14 -07:00
Michael Schurter fd0e6b092b Error should tell user exactly what type to use 2017-08-17 16:49:14 -07:00
Michael Schurter 7f6e1f3a9c Initializing embedded structs is weird 2017-08-17 16:49:14 -07:00
Michael Schurter 9a466bcf5e Add diff support for ServiceCheck.Header 2017-08-17 16:49:14 -07:00
Michael Schurter 0634eef12a Test createCheckReg 2017-08-17 16:49:14 -07:00