James Rasell
80dcae7216
core: allow setting and propagation of eval priority on job de/registration ( #11532 )
...
This change modifies the Nomad job register and deregister RPCs to
accept an updated option set which includes eval priority. This
param is optional and override the use of the job priority to set
the eval priority.
In order to ensure all evaluations as a result of the request use
the same eval priority, the priority is shared to the
allocReconciler and deploymentWatcher. This creates a new
distinction between eval priority and job priority.
The Nomad agent HTTP API has been modified to allow setting the
eval priority on job update and delete. To keep consistency with
the current v1 API, job update accepts this as a payload param;
job delete accepts this as a query param.
Any user supplied value is validated within the agent HTTP handler
removing the need to pass invalid requests to the server.
The register and deregister opts functions now all for setting
the eval priority on requests.
The change includes a small change to the DeregisterOpts function
which handles nil opts. This brings the function inline with the
RegisterOpts.
2021-11-23 09:23:31 +01:00
Luiz Aoqui
4b7303606d
Merge pull request #11554 from hashicorp/merge-release-1.2.1-branch
...
Merge release 1.2.1 branch
2021-11-22 10:58:03 -05:00
Luiz Aoqui
fcb55e5dac
prepare for next release
2021-11-22 10:47:51 -05:00
Luiz Aoqui
9dd93990c5
Merge tag 'v1.2.1' into merge-release-1.2.1-branch
...
Version 1.2.1
2021-11-22 10:47:04 -05:00
Luiz Aoqui
08af85cdf6
update download to Nomad v1.2.1 ( #11553 )
2021-11-22 10:24:39 -05:00
Nomad Release Bot
a9f5cd73ba
Release v1.2.1
2021-11-19 17:25:38 +00:00
Nomad Release bot
719c53ac0e
Generate files for 1.2.1 release
2021-11-19 16:41:38 +00:00
Luiz Aoqui
b972b5b360
docs: add 1.2.1 to changelog
2021-11-19 11:19:12 -05:00
Tim Gross
40de248b94
qemu: add args_allowlist to sandbox VM command line inputs
...
The QEMU driver allows arbitrary command line options, but many of
these options give access to host resources that operators may not
want to expose such as devices. Add an optional allowlist to the
plugin configuration so that operators can limit the resources for
QEMU.
2021-11-19 11:11:52 -05:00
James Rasell
873b0969e0
Merge pull request #11541 from hashicorp/f-add-jobstopglobal-website-api-docs
...
docs: add global query param to API job deregister endpoint.
2021-11-19 15:17:05 +01:00
James Rasell
5a43a1af28
Merge pull request #11538 from hashicorp/b-gh-11536
...
terraform: update installed version used to 1.0.11.
2021-11-19 14:47:19 +01:00
James Rasell
663698db95
docs: add global query param to API job deregister endpoint.
2021-11-19 13:45:24 +01:00
James Rasell
e5edffef68
terraform: update installed version used to 1.0.11.
2021-11-19 09:33:11 +01:00
Luiz Aoqui
be30a930b3
changelog: add entries for v1.1.7 and v1.0.13 ( #11527 )
2021-11-17 16:31:09 -05:00
dependabot[bot]
9088bc3df0
build(deps): bump github.com/hashicorp/cronexpr from 1.1.0 to 1.1.1 in /api ( #11132 )
...
* build(deps): bump github.com/hashicorp/cronexpr in /api
Bumps [github.com/hashicorp/cronexpr](https://github.com/hashicorp/cronexpr ) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/hashicorp/cronexpr/releases )
- [Commits](https://github.com/hashicorp/cronexpr/compare/v1.1.0...v1.1.1 )
---
updated-dependencies:
- dependency-name: github.com/hashicorp/cronexpr
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* go mod tidy
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tim Gross <tim@0x74696d.com >
2021-11-17 11:46:48 -05:00
Tim Gross
ff7a654534
changelog batch ( #11517 )
2021-11-17 11:24:32 -05:00
Tim Gross
55c29fbf50
api: return 404 for alloc FS list/stat endpoints ( #11482 )
...
* api: return 404 for alloc FS list/stat endpoints
If the alloc filesystem doesn't have a file requested by the List
Files or Stat File API, we currently return a HTTP 500 error with the
expected "file not found" error message. Return a HTTP 404 error
instead.
* update FS Handler
Previously the FS handler would interpret a 500 status as a 404
in the adapter layer by checking if the response body contained
the text or is the response status
was 500 and then throw an error code for 404.
Co-authored-by: Jai Bhagat <jaybhagat841@gmail.com >
2021-11-17 11:15:07 -05:00
Tim Gross
df41bdede9
deps: update go-getter to 1.5.9 ( #11481 )
...
go-getter 1.5.9 includes a patch in 1.5.6 that automatically unpacks
uncompressed tar archives. Previously Nomad only unpacked compressed
archives, but documented that it unpacked all archives.
2021-11-17 11:14:44 -05:00
Charlie Voiselle
623bcb0a07
Refactor sendAck(3) into sendAck(2),sendNack(2),sendAcknowledgement(3) ( #11506 )
2021-11-17 10:49:55 -05:00
dependabot[bot]
3e2bbc1db4
build(deps): bump github.com/kr/pretty from 0.1.0 to 0.3.0 in /api ( #11135 )
...
* build(deps): bump github.com/kr/pretty from 0.1.0 to 0.3.0 in /api
Bumps [github.com/kr/pretty](https://github.com/kr/pretty ) from 0.1.0 to 0.3.0.
- [Release notes](https://github.com/kr/pretty/releases )
- [Commits](https://github.com/kr/pretty/compare/v0.1.0...v0.3.0 )
---
updated-dependencies:
- dependency-name: github.com/kr/pretty
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* update in core as well and tidy
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tim Gross <tim@0x74696d.com >
2021-11-17 10:41:21 -05:00
dependabot[bot]
7e9a3d8077
build(deps): bump github.com/aws/aws-sdk-go from 1.38.20 to 1.42.6 ( #11515 )
...
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go ) from 1.38.20 to 1.42.6.
- [Release notes](https://github.com/aws/aws-sdk-go/releases )
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.38.20...v1.42.6 )
---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-17 10:20:48 -05:00
dependabot[bot]
a5e9fe6ffb
build(deps): bump github.com/mitchellh/mapstructure in /api ( #11188 )
...
Bumps [github.com/mitchellh/mapstructure](https://github.com/mitchellh/mapstructure ) from 1.3.3 to 1.4.2.
- [Release notes](https://github.com/mitchellh/mapstructure/releases )
- [Changelog](https://github.com/mitchellh/mapstructure/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mitchellh/mapstructure/compare/v1.3.3...v1.4.2 )
---
updated-dependencies:
- dependency-name: github.com/mitchellh/mapstructure
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-17 10:04:12 -05:00
dependabot[bot]
4236f0200b
build(deps): bump github.com/mitchellh/mapstructure from 1.4.1 to 1.4.2 ( #11325 )
...
Bumps [github.com/mitchellh/mapstructure](https://github.com/mitchellh/mapstructure ) from 1.4.1 to 1.4.2.
- [Release notes](https://github.com/mitchellh/mapstructure/releases )
- [Changelog](https://github.com/mitchellh/mapstructure/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mitchellh/mapstructure/compare/v1.4.1...v1.4.2 )
---
updated-dependencies:
- dependency-name: github.com/mitchellh/mapstructure
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-17 09:32:20 -05:00
dependabot[bot]
1a3611e629
build(deps): bump github.com/fatih/color from 1.9.0 to 1.13.0 ( #11324 )
...
Bumps [github.com/fatih/color](https://github.com/fatih/color ) from 1.9.0 to 1.13.0.
- [Release notes](https://github.com/fatih/color/releases )
- [Commits](https://github.com/fatih/color/compare/v1.9.0...v1.13.0 )
---
updated-dependencies:
- dependency-name: github.com/fatih/color
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-17 09:16:12 -05:00
dependabot[bot]
b6f1bc1088
build(deps): bump github.com/rs/cors from 1.7.0 to 1.8.0 ( #11323 )
...
Bumps [github.com/rs/cors](https://github.com/rs/cors ) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/rs/cors/releases )
- [Commits](https://github.com/rs/cors/compare/v1.7.0...v1.8.0 )
---
updated-dependencies:
- dependency-name: github.com/rs/cors
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-17 09:03:10 -05:00
dependabot[bot]
903c3907a3
build(deps): bump github.com/hashicorp/go-cleanhttp in /api ( #11133 )
...
Bumps [github.com/hashicorp/go-cleanhttp](https://github.com/hashicorp/go-cleanhttp ) from 0.5.1 to 0.5.2.
- [Release notes](https://github.com/hashicorp/go-cleanhttp/releases )
- [Commits](https://github.com/hashicorp/go-cleanhttp/compare/v0.5.1...v0.5.2 )
---
updated-dependencies:
- dependency-name: github.com/hashicorp/go-cleanhttp
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-17 08:42:34 -05:00
dependabot[bot]
abfdb6a0b5
build(deps): bump github.com/mitchellh/go-testing-interface in /api ( #11136 )
...
Bumps [github.com/mitchellh/go-testing-interface](https://github.com/mitchellh/go-testing-interface ) from 1.0.0 to 1.14.1.
- [Release notes](https://github.com/mitchellh/go-testing-interface/releases )
- [Commits](https://github.com/mitchellh/go-testing-interface/compare/v1.0.0...v1.14.1 )
---
updated-dependencies:
- dependency-name: github.com/mitchellh/go-testing-interface
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-17 08:38:35 -05:00
James Rasell
613e567475
Merge pull request #11504 from hashicorp/b-update-go-metrics-dep
...
deps: update armon/go-metrics to v0.3.10.
2021-11-17 14:37:11 +01:00
Danish Prakash
e70b0b7727
client: emit max_memory metric ( #11490 )
2021-11-17 08:34:22 -05:00
Luiz Aoqui
23c977c5b2
Merge release 1.2.0 branch ( #11513 )
2021-11-16 14:16:26 -05:00
Luiz Aoqui
fa1586cc47
update website banner ( #11512 )
2021-11-16 14:15:58 -05:00
Luiz Aoqui
cce9e9b046
update download to Nomad v1.2.0 ( #11511 )
2021-11-16 12:13:35 -05:00
Luiz Aoqui
18ce6caac7
docs: add note about the Nomad APM autoscaling plugin and scaling cluster to zero ( #11494 )
2021-11-16 11:58:26 -05:00
Luiz Aoqui
7cbdcd11cc
docs: remove mutual-exclusion between node class and datacenter in scaling policies ( #11499 )
2021-11-16 11:58:14 -05:00
Nomad Release Bot
bee0c3e04e
Release v1.2.0
2021-11-15 23:40:31 +00:00
Nomad Release bot
0e11f8d517
Generate files for 1.2.0 release
2021-11-15 23:00:30 +00:00
Luiz Aoqui
8565577083
docs: add 1.2.0 to changelog
2021-11-15 17:48:28 -05:00
James Rasell
e4f03a290b
changelog: add entry for #11504
2021-11-15 12:01:52 +01:00
James Rasell
cccec5beba
deps: update armon/go-metrics to v0.3.10.
2021-11-15 11:55:50 +01:00
Luiz Aoqui
74c823657e
Merge release 1.2.0 rc1 branch ( #11486 )
2021-11-09 17:55:13 -05:00
Luiz Aoqui
6f40905500
add Nomad v1.2.0-rc1 download box ( #11485 )
2021-11-09 16:37:09 -05:00
kfenech1
6bbcb180f2
docs: nomad.client.unallocated.memory is in Megabytes not bytes ( #11468 )
2021-11-08 11:05:11 -05:00
Jai
94b127e897
Merge pull request #11465 from hashicorp/ui-update-deps
...
Update UI dependencies
2021-11-07 14:15:56 -05:00
Luiz Aoqui
44277375d2
ui: update node version in GitHub Actions
2021-11-05 20:33:40 -04:00
Dave May
6ede4b9285
cli: refactor operator debug capture ( #11466 )
...
* debug: refactor Consul API collection
* debug: refactor Vault API collection
* debug: cleanup test timing
* debug: extend test to multiregion
* debug: save cmdline flags in bundle
* debug: add cli version to output
* Add changelog entry
2021-11-05 19:43:10 -04:00
Luiz Aoqui
8e7c00b899
ui: upgrade xterm 4.10.0 -> 4.15.0 and xterm-addon-fit 0.3.0 -> 0.5.0
2021-11-05 18:09:20 -04:00
Luiz Aoqui
fa198833e7
ui: upgrade testem 3.2.0 -> 3.6.0
2021-11-05 18:09:19 -04:00
Luiz Aoqui
551e3940ca
ui: upgrade sass 1.32.6 -> 1.43.4
2021-11-05 18:09:19 -04:00
Luiz Aoqui
6525cea274
ui: upgrade qunit-dom 1.6.0 -> 2.0.0
2021-11-05 18:09:18 -04:00
Luiz Aoqui
f0f2fe1e0d
ui: upgrade query-string 5.1.1 -> 7.0.1
2021-11-05 18:09:18 -04:00