Commit Graph

19925 Commits

Author SHA1 Message Date
Tim Gross a2710c7a31
e2e: set default version for dev cluster (#9208) 2020-10-28 16:50:20 -04:00
Tim Gross 99c2a2df00
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 7e4a35ad7e
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 5ddb939681
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 719077a26d 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 be3f54d296
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 4ea1a096ef
Fix typo in Cloudflare capitalization (#9199) 2020-10-28 08:29:52 -04:00
Mahmood Ali 320239264f dispatch-job capability to dispatch periodic jobs 2020-10-27 16:33:01 -04:00
James Rasell 9f980a9599
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 799b07182e
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 90113d92de
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 031e716554 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 527421b4bb
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 8640fdde3d
docs: update autoscaling policy to detail DAS policy syntax. 2020-10-27 16:30:36 +01:00
James Rasell d73b1af441
docs: update autoscaling overview to include DAS overview. 2020-10-27 16:30:07 +01:00
James Rasell 00ca13a081
docs: add DAS Nomad target plugin to Autoscaling docs. 2020-10-27 16:28:42 +01:00
James Rasell cbf7cc5eb7
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 72164753a3
docs: updated enterprise page with DAS feature 2020-10-27 16:25:07 +01:00
James Rasell 7c28880bd3
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 2ccf69ac01
docs: add recommendations API documentation. 2020-10-27 16:23:38 +01:00
Drew Bailey 19fe9a8f83
event sink api docs (#9190) 2020-10-27 10:46:55 -04:00
Kyle MacDonald 6f3a0a829a 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 ef7031c4f7
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 a61f261568
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 15aaada0cd
docs: update Autoscaler agent docs with policy_eval config params. 2020-10-27 12:23:27 +01:00
James Rasell 592c28c6ba
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 a7293a2bfe Remove no longer used warning icon svg 2020-10-26 15:07:12 -07:00
Michael Lange d407809ea5 Replace all instances of the warning icon with the Structure alert-triangle icon 2020-10-26 15:07:12 -07:00
Michael Lange ba031610fd Update puppeteer by a lot 2020-10-26 14:51:55 -07:00
Drew Bailey 86080e25a9
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 07ea857db8
Merge pull request #9178 from hashicorp/b-hclv2-scaling-policy
Fix HCLv2 parser discrepancies
2020-10-26 15:55:36 -05:00
Mahmood Ali b8b993eea0 hclv2: handle block labels 2020-10-26 16:24:43 -04:00
Mahmood Ali 1d948bb4e8 hclv2: special case attributes with map values
HCLv1 special case map assignment:
```hcl
map_attr = { "K" = "V" }
```

is parsed as

```json
{"map_attr": [{"K": "V"}]}
```
2020-10-26 16:20:41 -04:00
Mahmood Ali 639fc3a88d floats always parsed as float64 2020-10-26 16:20:41 -04:00
Mahmood Ali e3d0d3a94e Refactor handling of blocks as attr 2020-10-26 16:20:41 -04:00
Mahmood Ali 0c56438486 hclv2 tests: test complex config configuration 2020-10-26 16:20:41 -04:00
Michael Lange cb1d22519c List all available icons in a story.
This is like the same as using svg-jar, right?
2020-10-26 12:26:42 -07:00
Michael Lange 8fe5c55594 New all-icons helper that's really only meant for development use
This returns an array of all icons. As the comment suggests, it's
because the SVGs file can't be imported in stories since it is generated
as part of the Ember project.
2020-10-26 12:25:34 -07:00
Seth Hoenig bad7c39ae0
Merge pull request #9179 from hashicorp/f-pin-a8m_tree
deps: pin a8m/tree to specific hash
2020-10-26 14:01:33 -05:00
Seth Hoenig 7a3d8b31da deps: pin a8m/tree to specific hash 2020-10-26 13:44:35 -05:00
Michael Lange 35ceca7f62
Merge pull request #9166 from mobiltracker/master
Display class in client details
2020-10-26 10:54:14 -07:00
Michael Lange 4a36f522ce
Merge pull request #9167 from hashicorp/f-ui/topo-viz-refinements
UI: topo viz refinements
2020-10-26 10:51:31 -07:00
Michael Lange 33d901eae9
Merge pull request #9172 from hashicorp/b-ui/logs-for-fails
UI: Always show the file browser for allocations and tasks.
2020-10-26 10:36:18 -07:00
Michael Lange 227e91663e
Merge pull request #9173 from hashicorp/f-ui/show-version
UI: Show the nomad agent version of the agent the UI is served from
2020-10-26 10:28:28 -07:00
fqborges 498fe414a3 Display class in client details 2020-10-26 11:29:19 -03:00
James Rasell 6aded47416
Merge pull request #9174 from hashicorp/f-bump-website-nomad-version
website: bump default version to 0.12.7.
2020-10-26 13:30:39 +01:00
Allen 476b6d7af3
Fix command typo of vault token create (#9169) 2020-10-26 08:16:19 -04:00
James Rasell 98adbb0e94
website: bump default version to 0.12.7. 2020-10-26 13:08:21 +01:00
Michael Lange bae7002c73 Show the nomad agent version of the agent the UI is served from 2020-10-25 23:52:06 -07:00
Michael Lange 2072911356 Always show the file browser for allocations and tasks.
Before, we'd show a helpful error message when a task isn't running
instead of erroring in a generic way. Turns out when an alloc is
terminal but reachable, the filesystem is left behind so we were hiding
it.

Now it is always shown and in the event that something errors, it'll
either be generic, or--more commonly--a 404 of the allocation.
2020-10-25 22:24:56 -07:00