Commit Graph

20773 Commits

Author SHA1 Message Date
Michael Lange
64ebfe280f Prevent -1 dimension errors in LineChart 2021-02-24 19:28:14 -08:00
Michael Lange
1df9ec702c Update LineChart stories to use contextual component interface 2021-02-24 18:58:01 -08:00
Michael Lange
d36c38b685 Include the named-blocks polyfill compiler in the storybook babel options 2021-02-24 18:58:01 -08:00
Michael Lange
e41a0b8643 Use named-blocks and contextual components to reduce the responsibility of LineChart
Now chart primitives are partially applied by LineChart but the
invocations are left to the caller.
2021-02-24 18:58:01 -08:00
Michael Lange
0f86d68f15 Bring in the ember-named-blocks polyfill
Since some chart elements need to be rendered in the svg and others need
to be outside, we need some form of conditional yielding. This is the
cleanest implementation of this pattern and it will also ship with ember
in 3.25.
2021-02-24 18:58:00 -08:00
Michael Lange
2178bbd669 Bring back the active annotation logic to the v-annotations primitive 2021-02-24 18:58:00 -08:00
Michael Lange
b1f3618c3f Move curve logic into the area primitive 2021-02-24 18:58:00 -08:00
Michael Lange
342a905472 Merge pull request #10069 from hashicorp/f-ui/line-chart-decomposed
UI: Line chart decomposed
2021-02-24 09:58:02 -08:00
Seth Hoenig
e708d9b26d Merge pull request #10085 from hashicorp/docs-cl
docs: add two community PRs to changelog
2021-02-24 10:22:01 -06:00
Seth Hoenig
4ad4c9aae9 docs: add two community PRs to changelog 2021-02-24 10:21:34 -06:00
Seth Hoenig
3621f38667 Merge pull request #10075 from mr-karan/fix/parse_service
fix: parse_service: return err instead of panic
2021-02-24 10:14:55 -06:00
Drew Bailey
6fc62aa235 Merge pull request #9955 from hashicorp/on-update-services
Service and Check on_update configuration option (readiness checks)
2021-02-24 10:11:05 -05:00
Tim Gross
0daf1ae086 post-1.0.4 release prep 2021-02-24 09:56:53 -05:00
Luiz Aoqui
d0bacac824 Merge pull request #10078 from hashicorp/docs-update-autoscaling-demo-link
docs: update link to the Nomad Autoscaler demos
2021-02-23 20:28:29 -05:00
Seth Hoenig
ffd4a07937 Merge pull request #10080 from hashicorp/b-gw-updated
consul/connect: correctly detect when connect tasks not updated
2021-02-23 15:28:53 -06:00
Seth Hoenig
05c3ffde9d consul/connect: correctly detect when connect tasks not updated
This PR fixes a bug where tasks with Connect services could be
triggered to destructively update (i.e. placed in a new alloc)
when no update should be necessary.

Fixes #10077
2021-02-23 15:12:49 -06:00
Tim Gross
b12be1b551 changelog: fix link for GH-9937 2021-02-23 16:04:14 -05:00
Luiz Aoqui
2b6fa059e0 docs: update link to the Nomad Autoscaler demos 2021-02-23 15:24:37 -05:00
Michael Lange
85257f6c32 Update the custom xFormat to be a getter, as is expected by LineChart now 2021-02-23 10:34:51 -08:00
Michael Lange
9e6315e655 Convert ScaleEventsChart into a glimmer component 2021-02-23 10:18:58 -08:00
Michael Lange
09a0e4d4a8 Refactor StatsTimeSeries component to be a glimmer component and use composition instead of inheritance 2021-02-23 10:18:58 -08:00
Michael Lange
12fb78c3ab Refactor line chart scales and refactor tests 2021-02-23 10:18:58 -08:00
Michael Lange
ae381d1a20 Defensive arguments for glimmer-factory 2021-02-23 10:18:58 -08:00
Michael Lange
1e18be1757 Convert LineChart into a glimmer component 2021-02-23 10:18:58 -08:00
Michael Lange
6c6daec19b Move new glimmer style string to its own home 2021-02-23 10:18:58 -08:00
Michael Lange
1f14fd5ebf Pull the VAnnotations primitive out of the LineChart component 2021-02-23 10:18:57 -08:00
Michael Lange
ba22533d96 ArrayProxy evidently isn't iterable 2021-02-23 10:18:57 -08:00
Michael Lange
8c16a158f4 Pull the Area chart primitive out of the LineChart component 2021-02-23 10:18:57 -08:00
Michael Lange
9ce2728374 New computed property: uniquely
Wraps up a common pattern used in charts for building a a string that
incorporates the ember guid
2021-02-23 10:18:57 -08:00
Michael Lange
4c7ddb7010 Merge pull request #10076 from hashicorp/d-ui/changelog-for-1.0.4-bug-fixes
CHANGELOG entries for some 1.0.4 UI bug fixes
2021-02-23 10:03:49 -08:00
Michael Lange
6bf43bcf9b CHANGELOG entries for some 1.0.4 UI bug fixes 2021-02-23 09:45:15 -08:00
Karan Sharma
1d2ba0ec5a fix: parse_service: return err instead of panic
Fixes https://github.com/hashicorp/nomad/issues/10072
2021-02-23 22:15:11 +05:30
Kris Hicks
eae3836b3d cli: Update namespace helptext guide URL (#10074)
The old URL redirects to https://learn.hashicorp.com/nomad
2021-02-23 08:31:19 -08:00
Seth Hoenig
faee193eaa Merge pull request #10064 from superfly/add-allocated-devices-to-api
Add devices to AllocatedTaskResources
2021-02-23 09:11:14 -06:00
Seth Hoenig
0d33564e2a Merge pull request #10068 from hashicorp/b-fixup-systemd-units
dist: place systemd unit options correctly
2021-02-23 09:07:51 -06:00
Seth Hoenig
8f0430f450 dist: clarify minimum systemd version for example service file 2021-02-23 09:06:27 -06:00
Michael Dwan
d09d482016 sync vendored modules 2021-02-22 21:10:46 -07:00
Seth Hoenig
2a35c35a6e dist: place systemd unit options correctly
This PR places StartLimitIntervalSec and StartLimitBurst in the
Unit section of systemd unit files, rather than the Service section.

https://www.freedesktop.org/software/systemd/man/systemd.unit.html

Fixes #10065
2021-02-22 19:23:00 -06:00
Tim Gross
174c206b30 deploymentwatcher: reset progress deadline on promotion (#10042)
In a deployment with two groups (ex. A and B), if group A's canary becomes
healthy before group B's, the deadline for the overall deployment will be set
to that of group A. When the deployment is promoted, if group A is done it
will not contribute to the next deadline cutoff. Group B's old deadline will
be used instead, which will be in the past and immediately trigger a
deployment progress failure. Reset the progress deadline when the job is
promotion to avoid this bug, and to better conform with implicit user
expectations around how the progress deadline should interact with promotions.
2021-02-22 16:44:03 -05:00
Seth Hoenig
fcf81ab5c6 Merge pull request #10059 from hashicorp/b-cc-service-tags
consul/connect: Fix bug where connect sidecar services would be unnecessarily re-registered
2021-02-22 14:34:38 -06:00
Michael Dwan
e14be0b4f2 Add devices to AllocatedTaskResources 2021-02-22 12:47:36 -07:00
Seth Hoenig
e3af469519 consul/connect: Fix bug where connect sidecar services would be unnecessarily re-registered
This PR fixes a bug where sidecar services would be re-registered into Consul every ~30
seconds, caused by the parent service having its tags field set and the sidecar_service
tags unset. Nomad would directly compare the tags between its copy of the sidecar service
definition and the tags of the sidecar service reported by Consul. This does not work,
because Consul will under-the-hood set the sidecar service tags to inherit the parent
service tags if the sidecar service tags are unset. The comparison then done by Nomad
would not match, if the parent sidecar tags are set.

Fixes #10025
2021-02-22 12:02:58 -06:00
Cathy Chang
a4d99a87f4 docs: clarify log_rotate_max_files 2021-02-19 09:37:55 -05:00
Buck Doyle
c0c9dd0b06 changelog: add entries for 1.0.4 (#10048) 2021-02-18 11:58:38 -06:00
Drew Bailey
2f99d6495d E2e/fix periodic (#10047)
* fix periodic

* update periodic to not use template

nomad job inspect no longer returns an apiliststub so the required fields to query job summary are no longer there, parse cli output instead

* rm tmp makefile entry

* fix typo

* revert makefile change
2021-02-18 12:21:53 -05:00
Tim Gross
fdd15fcd89 changelog: missing changelog items for 1.0.4 2021-02-18 11:35:42 -05:00
Tim Gross
1a34c029eb hcl2: avoid panic on unset variable
Variables that are unset return the correct diagnostic but throw a panic when
we later parse the job body. Return early if there are any variable parsing
errors instead of continuing in a potentially invalid state.
2021-02-18 10:48:56 -05:00
James Rasell
095ed2c311 Merge pull request #10044 from hashicorp/b-fix-drainer-error-msg
drainer: fix error message when handling drain deadlined nodes.
2021-02-18 15:09:12 +01:00
James Rasell
7b3906e36f drainer: fix error message when handling drain deadlined nodes. 2021-02-18 11:45:44 +01:00
Buck Doyle
e47ce42548 Update Ember/Ember CLI to 3.20 (#9641)
This doesn’t include Ember Data, as we are still back on 3.12.

Most changes are deprecation updates, linting fixes, and dependencies. It can
be read commit-by-commit, though many of them are mechanical and skimmable.
For the new linting exclusions, I’ve added them to the Tech Debt list.

The decrease in test count is because linting is no longer included in ember test.

There’s a new deprecation warning in the logs that can be fixed by updating Ember
Power Select but when I tried that it caused it to render incorrectly, so I decided to
ignore it for now and address it separately.
2021-02-17 15:01:44 -06:00