Commit Graph

19892 Commits

Author SHA1 Message Date
Mahmood Ali
85a07214bd website: require Node v12
Start using Node.js v12.19.0, the most recent active LTS that is
supported by Vercel:
https://vercel.com/docs/runtimes#official-runtimes/node-js/node-js-version
.

The docs now require String.prototype.matchAll, that's part of ES2020
support, and is not available on Node.js 10.x.
2020-11-02 11:24:39 -05:00
Charlie Voiselle
f25065f94b Merge pull request #9243 from hashicorp/docs-changelog-9225
CHANGELOG entry for #9225
2020-11-02 09:55:50 -05:00
Russell Rollins
93c7909951 Use Dockerhub Mirror. (#9220)
Dockerhub is going to rate limit unauthenticated pulls.

Use our HashiCorp internal mirror for builds run through CircleCI.

Co-authored-by: Mahmood Ali <mahmood@hashicorp.com>
2020-11-02 09:28:02 -05:00
Drew Bailey
6e9ecf2c87 Event sink manager improvements (#9206)
* Improve managed sink run loop and reloading

resetCh no longer needed

length of buffer equal to count of items, not count of events in each item

update equality fn name, pr feedback

clean up sink manager sink creation

* update test to reflect changes

* bad editor find and replace

* pr feedback
2020-11-02 09:21:32 -05:00
James Rasell
9cb81eb9ca Merge pull request #9187 from barakb/master
A non-blocking Kotlin SDK
2020-11-02 08:53:01 +01:00
Charlie Voiselle
45609e2e2f CHANGELOG entry for #9225
changelog entry for https://github.com/hashicorp/nomad/pull/9225
2020-11-01 13:36:56 -05:00
Charlie Voiselle
b5e6326819 Fix for Java fingerprinter on macOS (#9225)
Use alternative test for macOS JVM with /usr/libexec/java_home
2020-11-01 13:20:31 -05:00
Buck Doyle
d986fa1fdc Add handling for empty state flaky test edge case (#9234)
This test occasionally fails because the random generation
sometimes produces a node with no allocations, such as here:
https://app.circleci.com/pipelines/github/hashicorp/nomad/12735/workflows/9a407f87-0383-48ee-8e41-7e6e351dce28/jobs/113130/steps

This is a temporary measure to solve it without trying to force the
generated data to always have an allocation.
2020-10-30 15:57:09 -05:00
Tim Gross
1af63e405e docs: remove outdated reference to template.allow_host_source (#9237)
The `template.allow_host_source` configuration was not operable, leading to
the recent security patch in 0.12.6. We forgot to update this piece of the
documentation referring to the correct configuration value.
2020-10-30 15:56:37 -04:00
Kris Hicks
cde4823f8b Update subscription filter func (#9232)
This adds support for specifying a global topic match for a specific
key.
2020-10-30 10:07:38 -07:00
Michael Lange
fa2008a42b Merge pull request #9223 from hashicorp/f-ui/topo-viz-params
UI: Add namespace and task states query params to the topology route
2020-10-29 14:46:28 -07:00
Michael Lange
5d21e55063 Add namespace and task states query params to the topo viz route 2020-10-29 11:28:41 -07:00
Tim Gross
d6255129a3 E2E: switch packer build files to HCL2 (#9219)
Build configuration files need comments, and JSON is also just the worst, isn't it?
Upgrade our E2E packer configs to use the new HCL2 syntax.
2020-10-29 10:03:39 -04:00
Tim Gross
0c14f9e610 e2e: provide precedence for version variables (#9216)
The `nomad_sha`, `nomad_version`, and `nomad_local_binary` variables for the
Nomad provisioning module assumed that only one would be set. By having the
override each other with an explicit precedence, it makes it easier to avoid
problems with Terraform's implicit variables behavior.

Set the expected default values in the `terraform.full.tfvars` to avoid
shadowing by any future changes to the `terraform.tfvars` file.

Update the Makefile to put the `-var` and `-var-file` in the correct order.
2020-10-29 09:15:22 -04:00
Buck Doyle
2dc95a10ab Fix Firefox positioning of chart resource label (#9209)
alignment-baseline appears to be ignored in Firefox, but dominant-baseline
works. This also moves the anchor into CSS.
2020-10-29 08:13:41 -05:00
Buck Doyle
828487352b Add DAS UI code from enterprise (#9192)
This is a few combined iterations on the DAS feature.
2020-10-29 07:46:42 -05:00
Tim Gross
fa812aa516 E2E: AMI software version bumps and cleanup (#9213)
* remove unused vault installation from Windows AMI
* match Windows and Linux Consul versions
* bump AMI base Nomad to current stable
2020-10-29 08:27:50 -04:00
Michael Lange
fb9ebc4f65 Merge pull request #9181 from hashicorp/ui/update-warning-icon
UI: Update the warning icon
2020-10-28 16:31:20 -07:00
Jeff Escalante
37b8673193 update dependencies to apply mdx-enhanced build cache fix 2020-10-28 19:22:27 -04:00
Tim Gross
8a267735f1 e2e: set default version for dev cluster (#9208) 2020-10-28 16:50:20 -04:00
Tim Gross
ac49cb2127 e2e: reduce risk of flaky Ubuntu AMI build (#9207)
The base Ubuntu AMI modifies apt sources during cloud-init. But the Packer
build can potentially start the setup script before that work is done,
resulting in errors trying to install base system dependencies like
`dnsmasq`. Delay the setup long enough to lose the race with cloud-init.
2020-10-28 15:13:44 -04:00
Tim Gross
38e23b62a7 e2e: use more specific names for OS/distros (#9204)
We intend to expand the nightly E2E test to cover multiple distros and
platforms. Change the naming structure for "Linux client" to the more precise
"Ubuntu Bionic", and "Windows" to "Windows 2016" to make it easier to add new
targets without additional refactoring.
2020-10-28 12:58:00 -04:00
Chris Baker
e9cea770e6 Merge pull request #9203 from hashicorp/f-das-oss-merge
merge of open-source components of DAS
2020-10-28 11:19:14 -05:00
Chris Baker
9e2eadc7e2 added new policy capabilities for recommendations API
state store: call-out to generic update of job recommendations from job update method
recommendations API work, and http endpoint errors for OSS
support for scaling polices in task block of job spec
add query filters for ScalingPolicy list endpoint
command: nomad scaling policy list: added -job and -type
2020-10-28 14:32:16 +00:00
Tim Gross
595b45095d e2e: make dev cluster the default Terraform vars file (#9202)
Most of the time that a human is running the TF provisioning, they want the
"dev cluster" which is going to deploy an OSS sha, with fewer targets and
configuration alternatives. But the default `terraform.tfvars` is the nightly
E2E run. Because the nightly run is automated, there's no reason we can't have
it pick a non-default `terraform.full.tfvars` file and have the default be the
dev cluster.
2020-10-28 10:01:42 -04:00
nvartolomei
5fecb86fac Fix typo in Cloudflare capitalization (#9199) 2020-10-28 08:29:52 -04:00
James Rasell
bb75ea6568 Merge pull request #9193 from hashicorp/f-dynamic-app-sizing-oss-docs-merge
docs: DAS related documentation updates
2020-10-27 17:32:00 +01:00
James Rasell
179288f675 Merge pull request #9194 from hashicorp/f-autoscaler-policy-eval-agent-docs
docs: update Autoscaler agent docs with policy_eval config params.
2020-10-27 17:30:33 +01:00
Michael Schurter
f2748c2917 Merge pull request #9191 from hashicorp/docs-1.0-beta2
docs: v1.0.0-beta2 released!
2020-10-27 09:25:39 -07:00
Michael Schurter
0e70b3cbad docs: v1.0.0-beta2 released!
Calling it "Beta" even though it's "beta2" since "beta1" was never
published.
2020-10-27 09:24:09 -07:00
James Rasell
ab2bb1cfc0 Merge pull request #9162 from hashicorp/f-gh-8648-docs
docs: add new job scale and scaling-events CLI website docs.
2020-10-27 16:33:38 +01:00
James Rasell
6e43146d64 docs: update autoscaling policy to detail DAS policy syntax. 2020-10-27 16:30:36 +01:00
James Rasell
565b029a59 docs: update autoscaling overview to include DAS overview. 2020-10-27 16:30:07 +01:00
James Rasell
239d80284b docs: add DAS Nomad target plugin to Autoscaling docs. 2020-10-27 16:28:42 +01:00
James Rasell
2069c12fa0 docs: add DAS strategy plugin detail to autoscaling docs. (#479)
Co-authored-by: Chris Baker <1675087+cgbaker@users.noreply.github.com>
2020-10-27 16:26:09 +01:00
Chris Baker
70d651aa55 docs: updated enterprise page with DAS feature 2020-10-27 16:25:07 +01:00
James Rasell
202ed42986 docs: update scaling policy API docs based on DAS update.
Includes removal of the beta tag from the scaling polices API
endpoints. \o/
2020-10-27 16:24:38 +01:00
James Rasell
e0c9d697de docs: add recommendations API documentation. 2020-10-27 16:23:38 +01:00
Drew Bailey
418d452d43 event sink api docs (#9190) 2020-10-27 10:46:55 -04:00
Kyle MacDonald
ad1f482e92 website: make build logs public
this allows the ability for outside contributors to view website build logs
2020-10-27 09:30:12 -04:00
Barak Bar Orion
2542cea3e4 Merge pull request #1 from barakb/barakb-kotlin-sdk
Update libraries-and-sdks.mdx
2020-10-27 14:33:21 +02:00
Barak Bar Orion
10a91a7690 Update libraries-and-sdks.mdx
Add a third-party library, nomad-client is a fully non-blocking Kotlin nomad client with minimal dependencies.
2020-10-27 14:32:46 +02:00
James Rasell
eb844b9ad4 docs: update Autoscaler agent docs with policy_eval config params. 2020-10-27 12:23:27 +01:00
James Rasell
2225dfedc1 docs: add new scaling command website documentation. (#9143)
Co-authored-by: Chris Baker <1675087+cgbaker@users.noreply.github.com>
2020-10-27 07:15:11 +01:00
Michael Lange
df685e3b7f Remove no longer used warning icon svg 2020-10-26 15:07:12 -07:00
Michael Lange
7423a5b42a Replace all instances of the warning icon with the Structure alert-triangle icon 2020-10-26 15:07:12 -07:00
Michael Lange
42ea096ba4 Update puppeteer by a lot 2020-10-26 14:51:55 -07:00
Drew Bailey
da45c95956 Send events to EventSinks (#9171)
* Process to send events to configured sinks

This PR adds a SinkManager to a server which is responsible for managing
managed sinks. Managed sinks subscribe to the event broker and send
events to a sink writer (webhook). When changes to the eventstore are
made the sinkmanager and managed sink are responsible for reloading or
starting a new managed sink.

* periodically check in sink progress to raft

Save progress on the last successfully sent index to raft. This allows a
managed sink to resume close to where it left off in the event of a lost
server or leadership change

dereference eventsink so we can accurately use the watchch

When using a pointer to eventsink struct it was updated immediately and our reload logic would not trigger
2020-10-26 17:27:54 -04:00
Mahmood Ali
9abb4fccf0 Merge pull request #9178 from hashicorp/b-hclv2-scaling-policy
Fix HCLv2 parser discrepancies
2020-10-26 15:55:36 -05:00
Mahmood Ali
07240c0b9f hclv2: handle block labels 2020-10-26 16:24:43 -04:00