Commit Graph

19946 Commits

Author SHA1 Message Date
James Rasell
3fe55a4f2d Merge pull request #9272 from hashicorp/f-recommendation-cli
cli: add recommendation commands.
2020-11-06 16:29:57 +01:00
Kris Hicks
b1f9d2221f api/testutil: Use fast fingerprint timeout in dev mode tests (#9285) 2020-11-06 07:01:27 -08:00
Buck Doyle
7b9f8b5cb1 Fix job detail crash when recommendations off (#9269)
Without this, visiting any job detail page on Nomad OSS would crash with
an error like this:

Error: Ember Data Request GET
/v1/recommendations?job=ping%F0%9F%A5%B3&namespace=default returned a
404 Payload (text/xml)

The problem was twofold.

1. The recommendation ability didn’t include anything about checking
whether the feature was present. This adds a request to
/v1/operator/license on application load to determine which features are
present and store them in the system service. The ability now looks for
'Dynamic Application Sizing' in that feature list.

2. Second, I didn’t check permissions at all in the job-fetching or job
detail templates.
2020-11-06 08:21:38 -06:00
James Rasell
0cd4d75aab cli: add recommendation commands.
Adds new CLI commands for applying, dismissing and detailing Nomad
recommendations under a new top level recommendation command.
2020-11-06 11:16:24 +01:00
Michael Lange
88a7458488 Merge pull request #9271 from hashicorp/b-ui/missing-warning-in-stories
UI: Update lingering instances of the old warning icon in stories
2020-11-05 13:56:07 -08:00
Michael Lange
d2b6f67159 Merge pull request #9270 from hashicorp/f-ui/topo-viz-help-states
UI: Topo viz error state and no data polling notice
2020-11-05 13:50:43 -08:00
Kris Hicks
f2d2669f97 events: Use single eventsFromChanges func (#9281) 2020-11-05 13:06:52 -08:00
Chris Baker
b11d067584 Merge pull request #9278 from hashicorp/b-9268-all-namespace-allocs-acl
fix ACL bugs in listing allocs across all namespaces
2020-11-05 14:59:47 -06:00
Nick Ethier
60838c94f8 ar/groupservice: remove drivernetwork (#9233)
* ar/groupservice: remove drivernetwork

* consul: allow host address_mode to accept raw port numbers

* consul: fix logic for blank address
2020-11-05 15:00:22 -05:00
Kris Hicks
5e34efadab Fix handling of deleted change (#9280) 2020-11-05 11:06:41 -08:00
Drew Bailey
be2024ab90 Api/event stream payload values (#9277)
* Get concrete types out of dynamic payload

wip

pull out value setting to func

* Add TestEventSTream_SetPayloadValue

Add more assertions

use alias type in unmarshalJSON to handle payload rawmessage

shorten unmarshal and remove anonymous wrap struct

* use map structure and helper functions to return concrete types

* ensure times are properly handled

* update test name

* put all decode logic in a single function

Co-authored-by: Kris Hicks <khicks@hashicorp.com>
2020-11-05 13:04:18 -05:00
Mark Lodato
d9bd87760c Fix typo in batch processing use case (#9184)
I believe there’s a typo where “workloads” was changed to “jobs” but the original word wasn’t removed. Or maybe it’s the other way around. But currently there is an orphaned one-word sentence.
2020-11-05 13:01:50 -05:00
Jimmy Merritello
472ea82b69 Bump HSM version (#9264) 2020-11-05 11:47:57 -06:00
Chris Baker
4aeb890057 updated Allocation.List to properly handle ACL checking for namespace=* 2020-11-05 17:26:33 +00:00
Kris Hicks
3926317613 Refactor GenericEventsFromChanges (#9279) 2020-11-05 09:06:08 -08:00
Chris Baker
c5fe588181 documenting test for #9268 2020-11-05 16:19:55 +00:00
Drew Bailey
4daf5a43f8 make sync to update event stream api (#9274) 2020-11-05 10:06:56 -05:00
Ricky Grassmuck
64d0113751 Update Cinder CSI example docs (#9267) 2020-11-05 08:19:16 -05:00
Michael Lange
a69eb82cfc Show dismissable no live updating notice on the topology page 2020-11-04 19:25:12 -08:00
Michael Lange
6c5597d548 Update lingering instances of the old warning icon in stories 2020-11-04 19:24:39 -08:00
Michael Lange
3cb5bbb0f8 Show a partial view notice when ACLs are enabled and the mgmt token isn't being used 2020-11-04 15:24:34 -08:00
Michael Lange
916c119269 Update URL for namespace globbing 2020-11-04 15:23:47 -08:00
Michael Lange
5f9267cd2d Forbidden state for the topo viz 2020-11-04 12:32:22 -08:00
Buck Doyle
ba17e2191b Add DAS subroute and copy button (#9201)
This continues iteration on the DAS UI by adding the ability to directly
navigate to a recommendation summary by (namespaced) slug and a copy
button for the direct navigation link.

It includes a change to CopyButton allowing it to take a block that’s
rendered within the button.

It also changes some instances of multi-relationship traversal to use
in-summary attributes, such as summary.jobNamespace instead of
summary.job.namespace.name.
2020-11-04 12:22:24 -06:00
Buck Doyle
1b0f4203bc Change node id search to prefix-only (#9244)
This test has been periodically failing, like here:
https://app.circleci.com/pipelines/github/hashicorp/nomad/12879/workflows/40c0445c-b244-4a04-a5a3-d9685b656c94/jobs/114751/tests

The failure was because sometimes the first node contains the
beginning of the ”otherNode” id somewhere within its id. It seems
less useful to match within the node, so this changes id search to
only match at the beginning of the id.
2020-11-04 12:12:31 -06:00
Michael Lange
187f778056 Merge pull request #9074 from Liraim/fix_download
ui: "View Raw File" download using JS instead simple link
2020-11-04 10:09:35 -08:00
Michael Lange
52226f3a5a Merge pull request #9256 from hashicorp/ui/upgrade-node
Use Node v12 for UI development
2020-11-04 10:06:41 -08:00
Michael Lange
b9bbea6596 Use Node v12 for UI development 2020-11-04 09:04:22 -08:00
Tim Gross
dfa0961272 docs: internals documentation for alloc filesystem (#9195)
We recently added documentation disambiguating the terminology of the
allocation/task working directories. This changeset adds an internals document
that describes in more detail exactly what does into the allocation working
directory, how this interacts with the filesystem isolation provided by task
drivers, and how this interacts with features like `artifact` and `template`.

Co-authored-by: Charlie Voiselle <464492+angrycub@users.noreply.github.com>
2020-11-04 09:59:19 -05:00
Charlie Voiselle
6c651f193d Merge pull request #9255 from hashicorp/d-missing-example-comma
Add missing comma in help-text example.
2020-11-04 09:51:09 -05:00
James Rasell
93ce213973 Merge pull request #9260 from hashicorp/b-fixup-scaling-policy-list-help
cli: update scaling policy list help to include job flag.
2020-11-04 15:28:25 +01:00
James Rasell
4a3d3cef09 docs: update scaling policy list docs to detail all flags. 2020-11-04 13:36:04 +01:00
James Rasell
5a93643e47 cli: update scaling policy list help to include job flag. 2020-11-04 13:35:29 +01:00
Charlie Voiselle
5d2d320e4b Add missing comma in help-text example.
@krishicks spotted this while playing with command.
2020-11-02 18:00:53 -05:00
Michael Lange
c6f410f551 Merge pull request #9240 from hashicorp/f-ui/topo-viz-tooltips
UI: Topo Viz Tooltips
2020-11-02 13:46:58 -08:00
Michael Lange
48b1e5aee2 Merge pull request #9253 from hashicorp/b-ui/raw-blue
UI: Fix the raw 'blue' in recommendation cards to use '$blue'
2020-11-02 13:45:45 -08:00
Michael Lange
5411ed830e Fix the raw 'blue' in recommendation cards to use '$blue' 2020-11-02 13:29:44 -08:00
Michael Lange
cf2cac1785 Replace visualViewport with the more compatible scrollX and scrollY 2020-11-02 13:25:50 -08:00
Michael Lange
24b0e41036 Add tooltips to the topo viz 2020-11-02 13:25:33 -08:00
Kris Hicks
0e09747d5b Update monitor func not to take a prefix (#9251)
The only user of monitor(evalID, true) was command/eval_status, and
eval_status had a duplicate of the prefix-handling code inside it, so in
all cases the complete evalID was being passed to monitor.

Given that, we can remove the prefix code from command/monitor, and
remove the boolean arg.
2020-11-02 10:24:49 -08:00
Mahmood Ali
25fe20e7bf Merge pull request #9247 from hashicorp/docs-node-12.19
website: require Node v12
2020-11-02 13:15:48 -05:00
Mahmood Ali
bdd4134623 Merge pull request #9205 from hashicorp/b-gh-7703
Repurpose dispatch-job capability to dispatch periodic jobs
2020-11-02 13:11:58 -05:00
Jeff Escalante
e03ec7e7fb downgrade inline svg 2020-11-02 13:02:35 -05:00
Jeff Escalante
eea889c3cb fix an issue where dependencies didn't match and would cause a nextjs render error 2020-11-02 13:02:35 -05:00
Kris Hicks
d8a49bbb68 Add event sink API and CLI commands (#9226)
Co-authored-by: Drew Bailey <2614075+drewbailey@users.noreply.github.com>
2020-11-02 09:57:35 -08:00
Mahmood Ali
f04cd73997 update docs and changelog 2020-11-02 12:44:03 -05:00
Mahmood Ali
eab8b7389d First draft of HCLv2 docs (#9218)
This is a first draft of HCLv2 docs - I added the details under hcl2 doc with some minimal info highlighting the hcl2 introductions.

As a longer term strategy, we'll want to mimic the Packer HCL docs structure that details all the blocks and allowed expressions/functions in greater details. However, given that the exact functions and templating syntax is still somewhat influx, I opt to push that to another time.
2020-11-02 12:27:53 -05:00
Mahmood Ali
3529caec97 vercel: explicitly set version to v12
v12 is currently the default now,
https://vercel.com/docs/runtimes#official-runtimes/node-js/node-js-version,
but we'd rather be explicit about the version we use and ensure that it
matches local development.
2020-11-02 11:28:47 -05:00
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