James Rasell
ded978c34c
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
b0ca1fd74d
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
9263f4052a
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
a0aef186ec
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
f9cf36d43a
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
a32fa2499c
one-time token: never return expired tokens
2021-03-10 08:17:56 -05:00
Tim Gross
a12f44705a
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
b4a516bed7
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
47f3945cfe
docs: 'nomad ui -login' command
2021-03-10 08:17:56 -05:00
Michael Lange
ff009f94c1
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
53f9b47c72
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
74f72fb820
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
df298a44d9
docs: update website links from master to main
2021-03-09 14:42:24 -05:00
Mahmood Ali
bc64f26d6e
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
02ea1e2146
build: use golang 1.16
2021-03-09 14:20:40 -05:00
Mahmood Ali
07c7b604b2
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
ffcb501820
demo: hclfmt a jobspec
2021-03-09 14:19:14 -05:00
Tim Gross
41e7a16b7e
changelog: fix position of entry
2021-03-09 10:47:13 -05:00
Sylvain Corsini
1b19cd4334
Update DigitalOcean CSI plugin demo
2021-03-09 10:42:40 -05:00
James Rasell
65c826d887
docs: add upgrade guide for change to metrics API.
2021-03-09 15:40:08 +01:00
James Rasell
1fd4fbd1d1
changelog: add entry for #10140
2021-03-09 15:29:25 +01:00
James Rasell
09cf00f330
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
83af6f5785
debug: update defaults to commonly used values
2021-03-09 08:31:38 -05:00
Michael Lange
945ad592a5
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
8a9d2abc4d
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
db1a128659
Integration test coverage for horizontal annotations and tooltips
2021-03-08 20:22:01 -08:00
Michael Lange
2eff475be6
Pre format x and y values for the yielded tooltip component in line chart
2021-03-08 15:41:18 -08:00
Michael Lange
6de9e4f089
Document all the tooltip variations
...
Under a new Charts/Primitives section in Storybook
2021-03-08 15:41:18 -08:00
Michael Lange
659090bf81
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
2ba041f801
Unify the distribution bar tooltip and the line chart tooltip styles/patterns
2021-03-08 15:41:04 -08:00
Michael Lange
f7358ed17e
New storybook CSS helpers (hover region, multiples variations)
2021-03-08 15:41:04 -08:00
Michael Lange
57da27c148
Factor the tooltip out of line-chart and into a primitive
2021-03-08 15:41:04 -08:00
Michael Lange
c209cb86f2
Use chart scales to generate tooltip swatch options
2021-03-08 15:41:03 -08:00
Michael Lange
8e586a932b
New Multi Line LineChart story
2021-03-08 15:41:03 -08:00
Michael Lange
a2b2ba816a
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
b6a0fe6a0f
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
9c67253e02
Add chart color scales in scss
2021-03-08 15:41:03 -08:00
Michael Lange
1d62065c18
Document HAnnotations + LineChart with a story
2021-03-08 15:41:03 -08:00
Michael Lange
78942408cc
Yield HAnnotations through LineChart
2021-03-08 15:41:03 -08:00
Michael Lange
e4882dd949
New HAnnotations chart primitive
2021-03-08 15:41:03 -08:00
Tim Gross
03a1192c12
docs: swap master for main in Nomad repo
2021-03-08 14:26:31 -05:00
Michael Schurter
a82697a2f0
Merge pull request #10135 from hashicorp/b-fix-log
...
client: fix task name logging
2021-03-08 10:27:29 -08:00
Kris Hicks
d03afe26b0
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
94419b503c
client: fix task name logging
2021-03-08 09:15:02 -08:00
Tim Gross
f270a44b56
docs/artifact: clarify git:: prefix usage for private repos
2021-03-08 10:55:32 -05:00
Tim Gross
7e44f2bfe7
docs: clarify mount source path in filesystem docs
2021-03-08 10:20:30 -05:00
Tim Gross
b6c24e8913
docs: required capabilities on Linux
2021-03-08 10:20:18 -05:00
Tim Gross
0af6e27eb7
docs: remove stale release guide
...
The release process has been in the `nomad-releases` private repo rather than
this one for quite a while now. Should be safe to remove this.
2021-03-08 10:01:11 -05:00
Tim Gross
bc92b2aeb8
docs: changelog entry for extra docker labels
2021-03-08 09:06:53 -05:00
Adrian Todorov
2748d2a895
driver/docker: add extra labels ( job name, task and task group name)
2021-03-08 08:59:52 -05:00