Commit Graph

21652 Commits

Author SHA1 Message Date
Luiz Aoqui
c67b69bd0c changelog: add entry for #10934 (#11001) 2021-08-04 11:33:18 -04:00
James Rasell
36337af295 Merge pull request #10996 from hashicorp/b-fix-doublespace-general-cli-opts
cli: fix minor format error within `-ca-cert` help text.
2021-08-04 09:21:19 +02:00
Luiz Aoqui
332dc88101 ui: fix job dispatch page when job doesn't have any meta fields (#10934) 2021-08-03 13:50:43 -04:00
James Rasell
0ba2086782 cli: fix minor format error within -ca-cert help text. 2021-08-03 16:05:06 +02:00
Mahmood Ali
52c37e16aa Only initialize task.VolumeMounts when not-nil (#10990)
1.1.3 had a bug where task.VolumeMounts will be an empty slice instead of nil. Eventually, it gets canonicalized and is set to `nil`, but it seems to confuse dry-run planning.

The regression was introduced in https://github.com/hashicorp/nomad/pull/10855/files#diff-56b3c82fcbc857f8fb93a903f1610f6e6859b3610a4eddf92bad9ea27fdc85ecL1028-R1037 . Curiously, it's the only place where `len(apiTask.VolumeMounts)` check was dropped. I assume it was dropped accidentally.

Fixes #10981
2021-08-02 13:08:10 -04:00
Mike Wickett
3a346f9a13 website: update consent manager (#10977) 2021-08-02 12:56:20 -04:00
Derek Strickland
7f1748b37d Merge pull request #10976 from itorres/api-docs-allocation-restart-sample
API docs: Fix allocation restart example
2021-08-02 08:48:45 -04:00
James Rasell
694dda28a1 Merge pull request #10987 from hashicorp/f-docs-order-external-drivers-alphabetically
docs: order external driver overview alphabetically.
2021-08-02 12:50:16 +02:00
James Rasell
8adb00bfad docs: order external driver overview alphabetically. 2021-08-02 10:51:37 +02:00
Lir (Rookout)
9b65172d7b Rookout driver docs (#10950)
Co-authored-by: James Rasell <jrasell@users.noreply.github.com>
2021-08-02 10:09:45 +02:00
Mahmood Ali
6d00c688b3 Merge pull request #10969 from hashicorp/merge-release-1.1.3
Merge release 1.1.3
2021-07-30 11:23:25 -04:00
Ignacio Torres Masdeu
eb4ad96953 Fix allocation restart API docs example 2021-07-30 16:45:21 +02:00
Mike Nomitch
dffdc93bf7 Adds documentation for file mode to sink docs (#10972) 2021-07-29 16:09:18 -04:00
Mahmood Ali
e0c080c79b website: publish 1.1.3 release (#10970) 2021-07-29 12:35:18 -04:00
Mahmood Ali
04cf47dca2 prepare for next dev cycle 2021-07-29 12:32:09 -04:00
Mahmood Ali
26685b2efa e2e: wait for allocs and deployments (#10967)
As we moved to using `-detach` for registering jobs, we should wait
until allocs and deployments are created before asserting their
properties.

Fixing `TestNodeDrainIgnoreSystem` and `TestRescheduleProgressDeadlineFail` tests as they seem particularly flaky, failing 9 and 7 times (respectively) in the last two weeks.
2021-07-29 10:52:04 -04:00
Nomad Release Bot
42e14ac511 remove generated files 2021-07-29 04:17:44 +00:00
Nomad Release Bot
5e94e4c06c Release v1.1.3 2021-07-29 04:17:00 +00:00
Nomad Release bot
8c0c814099 Generate files for 1.1.3 release 2021-07-29 03:43:03 +00:00
Mahmood Ali
47b0a5cc04 prepare release docker image for fetching 2021-07-28 23:33:59 -04:00
Mahmood Ali
bf3d8a302b update changelog for release 2021-07-28 21:59:03 -04:00
Mahmood Ali
445b1153d1 update changelog (#10963) 2021-07-28 16:02:04 -04:00
Bryce Kalow
28389fc7ca adds back tab styles (#10961) 2021-07-28 12:42:46 -04:00
Mahmood Ali
d3835a1656 api: revert to defaulting to http/1 (#10958)
* api: revert to defaulting to http/1

PR #10778 incidentally changed the api http client to connect with
HTTP/2 first. However, the websocket libraries used in `alloc exec`
features don't handle http/2 well, and don't downgrade to http/1
gracefully.

Given that the switch is incidental, and not requested by users.
Furthermore, api consumers can opt-in to forcing http/2 by setting
custom http clients.

Fixes #10922
2021-07-28 11:21:53 -04:00
Bryce Kalow
26e0e4ba23 web: migrate to web platform- packages (#10908) 2021-07-27 16:11:46 -05:00
Mahmood Ali
79cd4f8ffe Update some dependencies to match Enterprise (#10940)
Noticed that the private Enterprise repository dependencies drifted a bit. Here, we update the OSS to the dependencies used by Enterprise.

We should update all dependencies as a matter of hygiene, but that's an issue for another time.
2021-07-27 16:33:18 -04:00
Michael Schurter
2315d7db71 Merge pull request #10916 from hashicorp/f-audit-log-mode
Add audit log file mode config parameter
2021-07-27 12:16:37 -07:00
Michael Schurter
79666908bc docs: add changelog for #10916 2021-07-27 11:51:38 -07:00
Mahmood Ali
3f80eab49e nomad: only activate one-time auth tokens with 1.1.0 (#10952)
Fix a panic in handling one-time auth tokens, used to support `nomad ui
--authenticate`.

If the nomad leader is a 1.1.x with some servers running as 1.0.x, the
pre-1.1.0 servers risk crashing and the cluster may lose quorum. That
can happen when `nomad authenticate -ui` command is issued, or when the
leader scans for expired tokens every 10 minutes.

Fixed #10943 .
2021-07-27 13:17:55 -04:00
James Rasell
62057de304 Merge pull request #10945 from HZHgagaga/main
Update client.mdx
2021-07-27 11:35:36 +02:00
HZHgagaga
918a165866 Update client.mdx
Missing "-" symbol, "bridge_ Network name" should be "bridge_ network_name".
2021-07-27 11:24:34 +08:00
Mahmood Ali
e5a4dde921 Merge pull request #10931 from hashicorp/b-hcl1-backport-fields
Support the new post-1.0.0 job spec fields in the HCLv1 parser.

The HCLv1 parser is still the default (or only!) parser in many downstream tools, e.g. [Levant](e48c439f14/template/render.go (L13-L30)), and [terraform-provider-nomad](bce32a7831/nomad/resource_job.go (L735-L743)) .

While we initially intended to deprecate HCLv1 parser in 1.0.0, we never communicated that publicly. We did not fully anticipate the public usage of `jobspec` package (we assumed it's a private package), or the friction that HCLv2 introduced in some cases (e.g. https://github.com/hashicorp/nomad/issues/10777, https://github.com/hashicorp/nomad/issues/9838).

So moving forward we intend to ensure that new job spec fields are honored in both the HCLv1 and HCLv2 parser until we solidify the migration path and communicate it properly.
2021-07-26 12:06:09 -04:00
Mahmood Ali
a4e9c11ef9 hcl: add new cores resources field 2021-07-26 11:45:10 -04:00
Mahmood Ali
44ea61ef3a cli: Use glint to determine if os.Stdout is tty (#10926)
Use glint to determine if os.Stdout is a terminal.

glint Terminal renderer expects os.Stdout [not only to be a terminal, but also to have non-zero size](b492b545f6/renderer_term.go (L39-L46)). It's unclear how this condition arises, but this additional check causes Nomad to render deployments progress through glint when glint cannot support it.

By using golint to perform the check, we eliminate the risk of mis-judgement.
2021-07-23 11:27:47 -04:00
Mahmood Ali
09903f4454 support gateway mesh 2021-07-22 17:10:59 -04:00
Mahmood Ali
f5069abf02 add a test for envoy_dns_discovery_type 2021-07-22 16:06:48 -04:00
Mahmood Ali
f352490687 parse service check body 2021-07-22 16:06:48 -04:00
Mahmood Ali
dd6ee3f27b services OnUpdate 2021-07-22 16:06:48 -04:00
Mahmood Ali
25b480f7b9 hclv1: parse service upstreams 2021-07-22 16:06:48 -04:00
Mahmood Ali
8ab37d691f test parsing more service fields 2021-07-22 16:06:26 -04:00
Seth Hoenig
36d2f9f992 Merge pull request #10924 from hashicorp/deps-upgrade-consul-api
deps: upgrade consul api to 1.9.1
2021-07-22 12:41:56 -05:00
Seth Hoenig
282450fe78 Merge pull request #10925 from hashicorp/deps-update-aws-cpus
env/aws: update ec2 cpu data
2021-07-22 12:41:25 -05:00
Jai
2020737b4b Merge pull request #10893 from hashicorp/f-ui/namespace-acl-bug
edit ember-can to add additional attribute for namespace
2021-07-22 12:57:34 -04:00
Jai Bhagat
65fd437a4a ui: fixes #10885 2021-07-22 11:44:25 -04:00
Jai Bhagat
18ddb2d344 edit namespace property in handlebar file to use computed property in component 2021-07-22 11:43:45 -04:00
Seth Hoenig
ec4fa410a7 env/aws: update ec2 cpu data
using tools/ec2info

```
$ go run .
```
2021-07-22 09:32:46 -05:00
Seth Hoenig
950aa05790 deps: upgrade consul api to 1.9.1 2021-07-22 09:26:20 -05:00
Seth Hoenig
992383a9e5 Merge pull request #10904 from hashicorp/b-no-affinity-intern
core: remove internalization of affinity strings
2021-07-22 09:09:07 -05:00
Jai Bhagat
3e07db87d4 address merge conflicts 2021-07-21 17:30:11 -04:00
James Rasell
1efebbe367 Merge pull request #10921 from hashicorp/b-fix-regions-api-docs
docs: fixup regions API documentation path to include version.
2021-07-21 18:29:09 +02:00