Tim Gross
6163deec5d
csi: don't truncate CSI volume IDs
...
Volume IDs are not UUIDs, so truncating them to the short ID isn't really
necessary and makes for especially awkward UX when per-alloc volumes are in
use.
2021-03-12 10:39:09 -05:00
Tim Gross
f000b460e4
csi: upgrade CSI protobufs to 1.4.0
2021-03-12 10:36:33 -05:00
Drew Bailey
befcd11579
add on update to services table in allocation details ( #10153 )
...
* add on update to services table in allocation details
* populate onupdate test data
2021-03-11 12:28:38 -05:00
Tim Gross
0e3264aa4f
scheduler/csi: fix early return when multiple volumes are requested
...
When multiple CSI volumes are requested, the feasibility check could return
early for read/write volumes with free claims, even if a later volume in the
request was not feasible for any other reason (including not existing at
all). This can result in random failure to fail feasibility checking,
depending on how the map of volumes was being ordered at runtime.
Remove the early return from the feasibility check. Add a test to verify that
missing volumes in the map will cause a failure; this test will not catch a
regression every test run because of the random map ordering, but any failure
will be caught over the course of several CI runs.
2021-03-10 15:18:36 -05:00
James Rasell
e9d81ace7b
Merge pull request #10140 from hashicorp/b-gh-10070
...
agent: return req error if prometheus metrics are disabled.
2021-03-10 17:11:39 +01:00
Mahmood Ali
1d48433356
server: handle invalid jobs in expose handler hook ( #10154 )
...
The expose handler hook must handle if the submitted job is invalid. Without this validation, the rpc handler panics on invalid input.
Co-authored-by: Tim Gross <tgross@hashicorp.com>
2021-03-10 09:12:46 -05:00
James Rasell
2ec9e59122
correctly format variable name within upgrade doc
...
Co-authored-by: Tim Gross <tgross@hashicorp.com>
2021-03-10 15:08:17 +01:00
Tim Gross
bd4d888375
CLI 'nomad ui -authenticate' flag for one-time token exchange
...
Includes swapping the previously documented `-login` flag for `-authenticate`
to align better with Waypoint.
2021-03-10 08:17:56 -05:00
Tim Gross
75878f978e
HTTP API support for 'nomad ui -login'
...
Endpoints for requesting and exchanging one-time tokens via the HTTP
API. Includes documentation updates.
2021-03-10 08:17:56 -05:00
Tim Gross
7010a344d6
one-time token: never return expired tokens
2021-03-10 08:17:56 -05:00
Tim Gross
97b0e26d1f
RPC endpoints to support 'nomad ui -login'
...
RPC endpoints for the user-driven APIs (`UpsertOneTimeToken` and
`ExchangeOneTimeToken`) and token expiration (`ExpireOneTimeTokens`).
Includes adding expiration to the periodic core GC job.
2021-03-10 08:17:56 -05:00
Tim Gross
6b2c4b56d0
state store updates for one-time tokens
...
The `OneTimeToken` struct is to support the `nomad ui -login` command. This
changeset adds the struct to the Nomad state store.
2021-03-10 08:17:56 -05:00
Tim Gross
0676d74e5a
docs: 'nomad ui -login' command
2021-03-10 08:17:56 -05:00
Michael Lange
4b1777d428
Merge pull request #10138 from hashicorp/f-ui/improved-stats-charts
...
UI: Line Chart new primitives and tooltip refactor
2021-03-09 17:58:42 -08:00
Michael Lange
744f86eb65
Move complex annotation hbs logic into JS
...
As @backspace pointed out, we're processing a bunch of other stuff
anyway, so might as well process the active state there too where it's
more likely to be expected.
2021-03-09 17:19:52 -08:00
Mahmood Ali
16c1592bdf
Merge pull request #10151 from hashicorp/c-golang-1.16
...
Update to Golang 1.16
2021-03-09 15:39:45 -05:00
Tim Gross
ee1be60c85
docs: update website links from master to main
2021-03-09 14:42:24 -05:00
Mahmood Ali
fb6d49cc88
use go install
for tools
...
Golang 1.16 added better support for installing tools, without updating
go.mod files: https://blog.golang.org/go116-module-changes#TOC_4 . .
2021-03-09 14:26:44 -05:00
Mahmood Ali
fa721ef285
build: use golang 1.16
2021-03-09 14:20:40 -05:00
Mahmood Ali
4becb55267
Only reference the major/minor versions
...
Maintaining patch versions is burdensome, and historical info is already
present in git history.
2021-03-09 14:20:40 -05:00
Tim Gross
32b34815d6
demo: hclfmt a jobspec
2021-03-09 14:19:14 -05:00
Tim Gross
2f343370fb
changelog: fix position of entry
2021-03-09 10:47:13 -05:00
Sylvain Corsini
a12f3d4448
Update DigitalOcean CSI plugin demo
2021-03-09 10:42:40 -05:00
James Rasell
b7f60ba122
docs: add upgrade guide for change to metrics API.
2021-03-09 15:40:08 +01:00
James Rasell
f68cf1dfef
changelog: add entry for #10140
2021-03-09 15:29:25 +01:00
James Rasell
782350bd19
agent: return req error if prometheus metrics are disabled.
...
If the user has disabled Prometheus metrics and a request is
sent to the metrics endpoint requesting Prometheus formatted
metrics, then the request should fail.
2021-03-09 15:28:58 +01:00
Dave May
e93b49a119
debug: update defaults to commonly used values
2021-03-09 08:31:38 -05:00
Michael Lange
e58f67c417
Update LineChart stories to use new tooltip pattern
...
Some charts intentionally don't yield a tooltip to show the possibility.
2021-03-08 21:02:40 -08:00
Michael Lange
f1633e2be0
No longer include an automatic tooltip in LineChart
...
It is now required to use the one yielded by the :after named block.
2021-03-08 21:02:01 -08:00
Michael Lange
15b68cc00c
Integration test coverage for horizontal annotations and tooltips
2021-03-08 20:22:01 -08:00
Michael Lange
afc626b9cb
Pre format x and y values for the yielded tooltip component in line chart
2021-03-08 15:41:18 -08:00
Michael Lange
165ebc43cb
Document all the tooltip variations
...
Under a new Charts/Primitives section in Storybook
2021-03-08 15:41:18 -08:00
Michael Lange
d48dd688fb
Bring the ordinal color sequence from chart-colors to the new color-scales construct
...
This also required re-ordering the SCSS imports since this depends on
colors introduced by bulma.
2021-03-08 15:41:04 -08:00
Michael Lange
6a1b35e03a
Unify the distribution bar tooltip and the line chart tooltip styles/patterns
2021-03-08 15:41:04 -08:00
Michael Lange
94655d1ff6
New storybook CSS helpers (hover region, multiples variations)
2021-03-08 15:41:04 -08:00
Michael Lange
498d9d2b36
Factor the tooltip out of line-chart and into a primitive
2021-03-08 15:41:04 -08:00
Michael Lange
391aef9c4d
Use chart scales to generate tooltip swatch options
2021-03-08 15:41:03 -08:00
Michael Lange
c753e6a878
New Multi Line LineChart story
2021-03-08 15:41:03 -08:00
Michael Lange
4a4e7f0af2
Don't deal with color classes at all in LineChart
...
Expect this to be set on the visual yielded components directly
2021-03-08 15:41:03 -08:00
Michael Lange
1905d8ad71
Support multi-dimensional data in LineChart
...
When a @dataProp is provided, the LineChart component assumes data is an
array of data series. It will map by the data prop and flatten to
compute the domains of the data.
2021-03-08 15:41:03 -08:00
Michael Lange
c8778248ab
Add chart color scales in scss
2021-03-08 15:41:03 -08:00
Michael Lange
a7ae8e468b
Document HAnnotations + LineChart with a story
2021-03-08 15:41:03 -08:00
Michael Lange
ed7447af81
Yield HAnnotations through LineChart
2021-03-08 15:41:03 -08:00
Michael Lange
1c29f4688d
New HAnnotations chart primitive
2021-03-08 15:41:03 -08:00
Tim Gross
2a2e36690a
docs: swap master for main in Nomad repo
2021-03-08 14:26:31 -05:00
Michael Schurter
454e8d0693
Merge pull request #10135 from hashicorp/b-fix-log
...
client: fix task name logging
2021-03-08 10:27:29 -08:00
Kris Hicks
3a35521cf5
docs: Update sample JSON in Create Job API ( #10108 )
...
This is maybe a more realistic job that someone would actually submit
via the API; it more closely aligns with the example job from `nomad
job init`.
It's also been updated to use group network and service definitions.
2021-03-08 10:06:28 -08:00
Michael Schurter
15e3d61e59
client: fix task name logging
2021-03-08 09:15:02 -08:00
Tim Gross
4c4ea23e6f
docs/artifact: clarify git:: prefix usage for private repos
2021-03-08 10:55:32 -05:00
Tim Gross
648977e233
docs: clarify mount source path in filesystem docs
2021-03-08 10:20:30 -05:00