Commit graph

20405 commits

Author SHA1 Message Date
Jeff Escalante af3759fc84
fix intro navigation 2021-01-05 19:40:19 -05:00
Jeff Escalante 48bfdbc565
fix style references 2021-01-05 19:07:55 -05:00
Jeff Escalante 2c9b689c8e
touch up dependencies 2021-01-05 19:03:18 -05:00
Jeff Escalante eaaafd9dd4
implement mdx remote 2021-01-05 19:02:39 -05:00
Michael Lange e2c063fa0f
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 8345bd273c
Merge pull request #9732 from hashicorp/docs-cleanup
Docs cleanup
2021-01-05 13:10:36 -08:00
Michael Lange 5a37cfded0
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 d5b858680b 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 70bf5456d3 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 5d7713bb4e docs: remove duplicate PreserveCounts entry 2021-01-05 10:41:38 -08:00
Michael Schurter b91b941b79
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 1cede6cff8 docs: note that 1.0.2 is unreleased 2021-01-05 10:06:39 -08:00
Kris Hicks be6580bd28
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 af5fd4bb89
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 b88996b2dd
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 3636ff8f80
Merge pull request #9726 from hashicorp/f-add-tf-lockfile
e2e: add terraform lockfile
2021-01-05 10:03:38 -06:00
Seth Hoenig c46a503fdb docs: update changelog 2021-01-05 09:31:22 -06:00
Seth Hoenig 6c9366986b 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 7da808b43a 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 0ed44a82b0
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 59f230714f e2e: add e2e test for service registration 2021-01-05 08:48:12 -06:00
Seth Hoenig bc7dd881dd docs: add changelog entry 2021-01-05 08:48:12 -06:00
Seth Hoenig b4eafe6f2d 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 3ac3c93485
Added Enterprise Badges in Docs (#9706) 2021-01-05 09:44:37 -05:00
Chris Baker b886e5a4fc
Merge pull request #9724 from hashicorp/7410-simple-consistency-test
simple stale read test
2021-01-05 08:01:21 -06:00
Chris Baker fd6beefe11 simple test to ensure that scaling endpoint methods support IsRead for
stale read support
2021-01-05 13:42:18 +00:00
Tim Gross c2952d0539
resolve comments from code review 2021-01-04 18:52:14 -05:00
Luiz Aoqui 11b8bcddf8
docs: update file scaling policy docs 2021-01-04 18:52:11 -05:00
Chris Baker 9fea300de4
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 57b70a27ec modified e2e test so that it explicitly tested the use case in #6929 2021-01-04 22:25:39 +00:00
Chris Baker 02980b55cb added documenting unit tests for new TaskEnv.ClientPath method 2021-01-04 22:25:38 +00:00
Chris Baker 60095f47a5 changelog 2021-01-04 22:25:37 +00:00
Chris Baker 5e73c62f2b Update client/taskenv/env.go
Co-authored-by: Michael Schurter <mschurter@hashicorp.com>
2021-01-04 22:25:36 +00:00
Chris Baker c7072258af enabled broken test that is no longer broken 2021-01-04 22:25:35 +00:00
Chris Baker 9b125b8837 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 724f82e32d docs: add metrics and API docs to RPC contributors checklist 2021-01-04 15:41:12 -05:00
Tim Gross 26f4ee7fb1 e2e: dnsmasq configuration fixes
* systemd units require absolute paths
* ensure directory exists for dnsmasq
2021-01-04 15:40:57 -05:00
Michael Schurter 7a6e55b21f
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 65a973b098
Version update for demo Vagrant: Nomad 1.0.1, Consul 1.9.0 (#9716) 2021-01-04 13:20:59 -05:00
Tim Gross 86d7ad6d7b docs: update metrics tables 2021-01-04 12:47:35 -05:00
Tim Gross c24f4d9925
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 772ab5502d 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 2cf75537cd
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 e6c46e0b8c
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
Mahmood Ali 66c0e85b9c add changelog 2021-01-04 09:09:58 -05:00
Mahmood Ali ae0be24abb tweak bootstrap testing 2021-01-04 09:00:40 -05:00
Michael Schurter e243548cc8
build: prep for 1.0.2 development (#9687) 2021-01-04 08:38:16 -05:00
Jerome Gravel-Niquet c50e0de903 print the actual fingerprint error instead of an unrelated (and probably nil) error 2021-01-04 08:20:29 -05:00
James Rasell 4bc30b8368
Merge pull request #9714 from goodoldneon/patch-1
Fixed typo in index.mdx
2021-01-04 09:48:26 +01:00
Aaron Harper 86275f5004
Fixed typo in index.mdx 2021-01-01 23:04:04 -05:00