Commit Graph

20411 Commits

Author SHA1 Message Date
Conor Mongey
214f4ad4d3 Only override headers if they're set 2021-01-06 17:12:21 +00:00
Conor Mongey
b2724ba64d Ensure set headers have lower precedence than basic auth headers 2021-01-06 17:12:21 +00:00
Conor Mongey
c7cc71e2e0 Headers -> Header 2021-01-06 17:12:21 +00:00
Conor Mongey
679864ea05 Prefer http.Header over map[string]string to allow for multi-valued headers 2021-01-06 17:12:20 +00:00
Conor Mongey
3aadee8674 Allow setting of headers in api client 2021-01-06 17:03:58 +00:00
Jeff Escalante
caa21c2396 Merge pull request #9638 from hashicorp/je.mdx-remote
implement mdx remote
2021-01-06 11:55:05 -05:00
Jeff Escalante
1510360649 fix intro navigation 2021-01-05 19:40:19 -05:00
Jeff Escalante
35682f635a fix style references 2021-01-05 19:07:55 -05:00
Jeff Escalante
801098e914 touch up dependencies 2021-01-05 19:03:18 -05:00
Jeff Escalante
0eae603a86 implement mdx remote 2021-01-05 19:02:39 -05:00
Michael Lange
789225dcb8 Merge pull request #9697 from hashicorp/docs-wtdd-cleanup-images
docs: Remove unused images + intro pages
2021-01-05 14:22:52 -08:00
Michael Schurter
b82b6cf533 Merge pull request #9732 from hashicorp/docs-cleanup
Docs cleanup
2021-01-05 13:10:36 -08:00
Michael Lange
2f42a7e8f8 Merge pull request #9692 from hashicorp/docs-wtdd-jobs-field-reference
docs: Enumerate job statuses and types in docs
2021-01-05 11:46:22 -08:00
Michael Schurter
3520c62605 docs: mention client can be non-root
I want to strike a balance here:

- On the one hand there are use cases (raw_exec or Docker only) where
  running Nomad clients as an unprivileged user is *preferable.*
- On the other hand running Nomad clients as root is our main and best
  tested environment. So I want to leave that a strong recommendation.
2021-01-05 11:08:23 -08:00
Michael Schurter
e0a83f2b3d docs: remove old client.options migration note
There's no reason to give the `client.options` to `plugins` migration
top billing on the client configuration page. Remove and and clarify the
more appropriately placed note down below.
2021-01-05 10:56:14 -08:00
Michael Schurter
aa541ecd17 docs: remove duplicate PreserveCounts entry 2021-01-05 10:41:38 -08:00
Michael Schurter
9402d25e17 Merge pull request #9731 from hashicorp/docs-upgrade-102
docs: note that 1.0.2 is unreleased
2021-01-05 10:12:25 -08:00
Michael Schurter
bec3caa6e8 docs: note that 1.0.2 is unreleased 2021-01-05 10:06:39 -08:00
Kris Hicks
d5ea0042ed Refactor alloc exec command (#9718)
This re-arranges the alloc exec Run implementation to have validation
hoisted as high as possible.
2021-01-05 09:33:04 -08:00
Luiz Aoqui
8b0fa8b7d3 Merge pull request #9429 from hashicorp/docs-update-autoscale-policy
docs: update file scaling policy docs
2021-01-05 11:10:11 -05:00
Seth Hoenig
53aeeb50a0 Merge pull request #9727 from hashicorp/b-empty-ingress-proxy
consul/connect: avoid NPE from unset connect gateway proxy
2021-01-05 10:09:46 -06:00
Seth Hoenig
5b355568bd Merge pull request #9726 from hashicorp/f-add-tf-lockfile
e2e: add terraform lockfile
2021-01-05 10:03:38 -06:00
Seth Hoenig
d57b390490 docs: update changelog 2021-01-05 09:31:22 -06:00
Seth Hoenig
80d07f6e6c consul/connect: avoid NPE from unset connect gateway proxy
Submitting a job with an ingress gateway in host networking mode
with an absent gateway.proxy block would cause the Nomad client
to panic on NPE.

The consul registration bits would assume the proxy stanza was
not nil, but it could be if the user does not supply any manually
configured envoy proxy settings.

Check the proxy field is not nil before using it.

Fixes #9669
2021-01-05 09:27:01 -06:00
Seth Hoenig
4829e548de e2e: add terraform lockfile
Terraform v0.14 is producing a lockfile after running `terraform init`.
The docs suggest we should include this file in the git repository:

> You should include this file in your version control repository so
> that you can discuss potential changes to your external dependencies
> via code review, just as you would discuss potential changes to your
> configuration itself.

Sounds similar to go.sum

https://www.terraform.io/docs/configuration/dependency-lock.html#lock-file-location
2021-01-05 08:55:37 -06:00
Seth Hoenig
ae618ed689 Merge pull request #9720 from hashicorp/b-consul-sreg-update
consul: always include task services hook
2021-01-05 08:48:44 -06:00
Seth Hoenig
33527b1547 e2e: add e2e test for service registration 2021-01-05 08:48:12 -06:00
Seth Hoenig
0f27c13a35 docs: add changelog entry 2021-01-05 08:48:12 -06:00
Seth Hoenig
5e156d55d3 consul: always include task services hook
Previously, Nomad would optimize out the services task runner
hook for tasks which were initially submitted with no services
defined. This causes a problem when the job is later updated to
include service(s) on that task, which will result in nothing
happening because the hook is not present to handle the service
registration in the .Update.

Instead, always enable the services hook. The group services
alloc runner hook is already always enabled.

Fixes #9707
2021-01-05 08:47:19 -06:00
Gunadhya
489f89f3bf Added Enterprise Badges in Docs (#9706) 2021-01-05 09:44:37 -05:00
Chris Baker
907c7dc46c Merge pull request #9724 from hashicorp/7410-simple-consistency-test
simple stale read test
2021-01-05 08:01:21 -06:00
Chris Baker
4b8c8654cb simple test to ensure that scaling endpoint methods support IsRead for
stale read support
2021-01-05 13:42:18 +00:00
Tim Gross
c4dc3f1ed1 resolve comments from code review 2021-01-04 18:52:14 -05:00
Luiz Aoqui
033f4fbd3f docs: update file scaling policy docs 2021-01-04 18:52:11 -05:00
Chris Baker
30603ca371 Merge pull request #9671 from hashicorp/b-9610-template-interpolation-paths-refactor
address interpolation of artifact and template src/dest
2021-01-04 17:00:45 -06:00
Chris Baker
196f55098d modified e2e test so that it explicitly tested the use case in #6929 2021-01-04 22:25:39 +00:00
Chris Baker
46060e4d7e added documenting unit tests for new TaskEnv.ClientPath method 2021-01-04 22:25:38 +00:00
Chris Baker
479133316a changelog 2021-01-04 22:25:37 +00:00
Chris Baker
1a607e1cda Update client/taskenv/env.go
Co-authored-by: Michael Schurter <mschurter@hashicorp.com>
2021-01-04 22:25:36 +00:00
Chris Baker
6419966e88 enabled broken test that is no longer broken 2021-01-04 22:25:35 +00:00
Chris Baker
11f0fed935 update template and artifact interpolation to use client-relative paths
resolves #9839
resolves #6929
resolves #6910

e2e: template env interpolation path testing
2021-01-04 22:25:34 +00:00
Tim Gross
7feca14606 docs: add metrics and API docs to RPC contributors checklist 2021-01-04 15:41:12 -05:00
Tim Gross
989ce39254 e2e: dnsmasq configuration fixes
* systemd units require absolute paths
* ensure directory exists for dnsmasq
2021-01-04 15:40:57 -05:00
Michael Schurter
3f73848662 Merge pull request #9686 from hashicorp/golang1.15.6
build: upgrade from Go 1.15.5 -> 1.15.6
2021-01-04 12:07:41 -08:00
nileshcs
8a360bf95e Version update for demo Vagrant: Nomad 1.0.1, Consul 1.9.0 (#9716) 2021-01-04 13:20:59 -05:00
Tim Gross
ba596ea1e3 docs: update metrics tables 2021-01-04 12:47:35 -05:00
Tim Gross
5b3357180c client: improve alloc GC API error messages (#9488)
The client allocation GC API returns a misleading error message when the
allocation exists but is not yet eligible for GC. Make this clear in the error
response.

Note in the docs that the allocation will still show on the server responses.
2021-01-04 11:34:12 -05:00
Michael Schurter
240697b636 build: upgrade from Go 1.15.5 -> 1.15.6
Also updated scripts/update_golang_version.sh to handle new CircleCI
file layout.
2021-01-04 08:34:00 -08:00
James Rasell
3153c1449f Merge pull request #9584 from hashicorp/f-docs-api-job-reg-preserve-counts
docs: add PreserveCounts param to job API doc.
2021-01-04 16:01:17 +01:00
Mahmood Ali
2c2c4e0fe9 Merge pull request #9672 from hashicorp/b-bootstrapping-unexpectedly
Don't bootstrap when `bootstrap_expect` is zero
2021-01-04 09:26:48 -05:00