Tim Gross
d3ecb87984
multiregion: initial deploymentPaused must match start condition ( #8215 )
...
In #8209 we fixed the `max_parallel` stanza for multiregion by introducing the
`IsMultiregionStarter` check, but didn't apply it to the earlier place its
required. The result is that deployments start but don't place allocations.
2020-06-19 13:42:38 -04:00
Michael Lange
29bab8840c
Merge pull request #8207 from hashicorp/f-ui/manual-scaling-controls
...
UI: Task Group Scaling Controls
2020-06-19 10:29:01 -07:00
Michael Lange
3be9d338cb
Remove superfluous property from the StepperInput page object
2020-06-19 10:21:39 -07:00
Tim Gross
b654e1b8a4
multiregion: all regions start in running if no max_parallel ( #8209 )
...
If `max_parallel` is not set, all regions should begin in a `running` state
rather than a `pending` state. Otherwise the first region is set to `running`
and then all the remaining regions once it enters `blocked. That behavior is
technically correct in that we have at most `max_parallel` regions running,
but definitely not what a user expects.
2020-06-19 11:17:09 -04:00
Drew Bailey
c2d7b61939
allow raw body instead of JSON encoded string ( #8211 )
2020-06-19 10:57:09 -04:00
Mahmood Ali
963b1251ff
Merge pull request #8082 from hashicorp/f-raft-multipler
...
Implement raft multipler flag
2020-06-19 10:04:59 -04:00
Tim Gross
8a354f828f
store ACL Accessor ID from Job.Register with Job ( #8204 )
...
In multiregion deployments when ACLs are enabled, the deploymentwatcher needs
an appropriately scoped ACL token with the same `submit-job` rights as the
user who submitted it. The token will already be replicated, so store the
accessor ID so that it can be retrieved by the leader.
2020-06-19 07:53:29 -04:00
Tim Gross
2e2d9ad5ae
docs: fix for multiregion count explanation ( #8202 )
2020-06-19 07:52:58 -04:00
James Rasell
81afc5bc6f
Merge pull request #8180 from hashicorp/b-gh-8179
...
demo: Fix Vagrantfile when building staging VM for Cloud build.
2020-06-19 08:29:09 +02:00
Michael Lange
02fd45f02b
Acceptance tests for task group scaling
2020-06-18 23:23:03 -07:00
Michael Lange
1cadcf90b8
Watch the latest deployment relationship to disable the stepper appropriately
2020-06-18 23:23:03 -07:00
Michael Lange
d3cce73747
Wire up the scale action on the task group page
2020-06-18 23:23:03 -07:00
Michael Lange
6259e3ae5d
Integrate the stepper input with the task group page
2020-06-18 22:32:56 -07:00
Michael Lange
ddd5a7e342
Test coverage for the StepperInput
2020-06-18 22:08:29 -07:00
Michael Lange
ff3653ddf6
Style the StepperInput component
2020-06-18 22:08:28 -07:00
Michael Lange
28916c22cf
Add count StepperInput to the task group page
2020-06-18 22:08:28 -07:00
Michael Lange
26760c440d
StepperInput story
2020-06-18 22:08:28 -07:00
Michael Lange
ba91a4ffe5
Barebones StepperInput component
2020-06-18 22:08:28 -07:00
Michael Lange
2e04719fbc
Slow the debounce time.
2020-06-18 22:08:28 -07:00
Michael Lange
f1fec7430f
Test coverage for the task group row scale actions
2020-06-18 22:08:28 -07:00
Michael Lange
c664f57361
Disable scale buttons when a deployment is running or ACL forbids it
2020-06-18 22:08:28 -07:00
Michael Lange
3b7b5f9649
Add canScale ability for jobs
2020-06-18 22:08:28 -07:00
Michael Lange
689dd92aa8
Mirage updates for task group scaling and scaling post endpoint
2020-06-18 22:08:28 -07:00
Michael Lange
136b4ec354
Wire up the +/- buttons in task group rows to the job scale action
2020-06-18 22:08:28 -07:00
Michael Lange
aebc896ff6
New scale action for jobs (and a convenience task group method)
2020-06-18 22:08:27 -07:00
Michael Lange
57f4e9a62e
Create new AbortController with each tick of the ec task loops
...
This was a disturbing discovery. Requests in watch loops would recycle
AbortControllers meaning once any request was aborted, all requests
forever after were skipped. I noticed it with deployments and job
summary on the job detail page.
I suspect this regression occurred when jQuery was removed. This needs
test coverage still to make sure it doesn't happen again.
2020-06-18 22:08:27 -07:00
Michael Lange
64cfa62c71
Make sure buttons in a button bar have a very visible focus state
2020-06-18 22:08:27 -07:00
Michael Lange
c583c00088
Add the elements of the manual scaling actions to the task-group-row component
2020-06-18 22:08:27 -07:00
Michael Lange
1182e76383
Add the min/max and policy y/n of a task group to the details ribbon
2020-06-18 22:08:27 -07:00
Michael Lange
76c6a9d89f
Prevent inline definition key/value pairs from breaking the key and value onto separate lines
2020-06-18 22:08:27 -07:00
Michael Lange
2739da75d6
Additional button-bar treatments for use in a table row
2020-06-18 22:08:27 -07:00
Michael Lange
dfcfdf0293
Extend button-bar support to buttons
2020-06-18 22:08:27 -07:00
Michael Lange
b4b00282dd
When an icon is intended as text, it shouldn't have pointer events
...
This prevents the svg from being a target in click events.
2020-06-18 22:08:27 -07:00
Michael Lange
f9819105c3
New xsmall button size
2020-06-18 22:08:27 -07:00
Michael Lange
c5bf7fc7a7
LazyClick should also get interrupted by buttons
2020-06-18 22:08:26 -07:00
Michael Lange
d8c2853d65
Model the scaling properties of a task group as a fragment
2020-06-18 22:08:26 -07:00
Luiz Aoqui
ee204746bc
Merge pull request #8206 from hashicorp/docs-fix-license-api
...
docs: update operator license API
2020-06-18 21:24:13 -04:00
Luiz Aoqui
2f2527efd8
docs: update operator license API
2020-06-18 20:17:45 -04:00
Mahmood Ali
38a01c050e
Merge pull request #8192 from hashicorp/f-status-allnamespaces-2
...
CLI Allow querying all namespaces for jobs and allocations - Try 2
2020-06-18 20:16:52 -04:00
Michael Schurter
91b829d471
Merge pull request #8205 from hashicorp/docs-090-portmap
...
docs: finally document the 0.9 port_map break
2020-06-18 15:32:23 -07:00
Michael Schurter
31f36620db
docs: finally document the 0.9 port_map break
2020-06-18 14:56:47 -07:00
Michael Schurter
297f5b4796
Merge pull request #8203 from hashicorp/next-2
...
net-next merge to master
2020-06-18 11:51:05 -07:00
Nick Ethier
1e4ea699ad
fix test failures from rebase
2020-06-18 11:05:32 -07:00
Michael Schurter
0ed023c61a
deps: updated libnetwork dep
...
Adding missing vendor files as well.
2020-06-18 11:05:31 -07:00
Nick Ethier
4a44deaa5c
CNI Implementation ( #7518 )
2020-06-18 11:05:29 -07:00
Nick Ethier
0bc0403cc3
Task DNS Options ( #7661 )
...
Co-Authored-By: Tim Gross <tgross@hashicorp.com>
Co-Authored-By: Seth Hoenig <shoenig@hashicorp.com>
2020-06-18 11:01:31 -07:00
Michael Lange
34b51860eb
Merge pull request #8177 from hashicorp/f-ui/monitor
...
UI: Client and Server Monitor
2020-06-18 09:07:22 -07:00
Charlie Jones
e369e76643
Fix typo in link to Cloud Auto-join section ( #8116 )
2020-06-18 10:21:31 -04:00
Seth Hoenig
838147512f
Merge pull request #8199 from hashicorp/b-remove-tidy-from-dev
...
deps: remove tidy from dev makefile target
2020-06-18 08:56:58 -05:00
Seth Hoenig
2803ddadab
deps: remove tidy from dev makefile target
...
With Go modules, `go mod tidy` supplants `vendorfmt`. Unfortunately,
`tidy` will try to reach out to the network and download modules, and
there is no way to disable that behavior (e.g. the -mod=vendor) option
does not apply. This means we cannot use the `tidy` target in nomad
enterprise, which will be unable to reach private repositories like
consul-enterprise.
This isn't a big deal, since `vendorfmt` served the purpose of rewriting
the output of `govendor`, wheras `tidy` is a part of the `sync` target
that is required to be run when modifying dependencies anyway.
2020-06-18 08:49:12 -05:00