Commit Graph

25 Commits

Author SHA1 Message Date
Isabel Suchanek
0edda116ad cli: add monitor flag to deployment status
Adding '-verbose' will print out the allocation information for the
deployment. This also changes the job run command so that it now blocks
until deployment is complete and adds timestamps to the output so that
it's more in line with the output of node drain.

This uses glint to print in place in running in a tty. Because glint
doesn't yet support cmd/powershell, Windows workflows use a different
library to print in place, which results in slightly different
formatting: 1) different margins, and 2) no spinner indicating
deployment in progress.
2021-06-09 16:18:45 -07: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
Yoan Blanc
5f7a8a0b7a vendor: consul v1.7.7
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-08-23 09:41:27 +02:00
Seth Hoenig
7bdbef2597 deps: upgrade import of consul/api
Upgrade our consul/api import to the equivelent of consul@v1.8.1 which includes
a bug fix necessary for #6913. If consul would publish a proper api/ submodule tag
we could reference that.
2020-08-06 21:02:33 -05:00
Seth Hoenig
15fb4c990a deps: Switch to Go modules for dependency management
This PR switches the Nomad repository from using govendor to Go modules
for managing dependencies. Aspects of the Nomad workflow remain pretty
much the same. The usual Makefile targets should continue to work as
they always did. The API submodule simply defers to the parent Nomad
version on the repository, keeping the semantics of API versioning that
currently exists.
2020-06-02 14:30:36 -05:00
Nick Ethier
e9f3f2cfee Update runc/libcontainer and friends (#4655)
* vendor: bump libcontainer and docker to remove Sirupsen imports

* vendor: fix bad vendoring of archive package

* vendor: fix api changes to cgroups in executor

* vendor: fix docker api changes

* vendor: update github.com/Azure/go-ansiterm to use non capitalized logrus import
2018-10-16 16:53:30 -07:00
Alex Dadgar
0663a2f3fe Vendor conflicts
Vendored the tagged version of protobuf.
2018-08-07 13:02:47 -07:00
Nick Ethier
e7520e6691 vendor: update mitchellh/cli and transitive deps 2018-04-09 18:02:14 -04:00
Michael Schurter
c1fff02ec9 Update go-testing-interface
Needed for T.Helper and T.Skipf
2017-10-06 14:35:14 -07:00
Alex Dadgar
ed8f07f324 Hide non-user commands from autocomplete output
This PR hides non-user CLI commands from the list of autocomplete
suggestions.
2017-09-08 11:24:21 -07:00
Alex Dadgar
a4e762f30b Vendor cli to get exit code 127 on unknown command 2017-09-06 17:19:07 -07:00
Chelsea Holland Komlo
cf432b6528 vendor updated cli and autocomplete dependencies 2017-08-25 16:43:49 +00:00
Alex Dadgar
fd06341d8d Fix autocmpleting global flags
This PR vendors a change to the CLI package that allows autocompleting
global flags at the top level command.
2017-07-28 09:44:48 -07:00
Michael Schurter
55bd0c8df7 Use go-testing-interface instead of testing
This drops the testings stdlib pkg from our dependencies. Saves a
whopping 46kb on our binary (was really hoping for more of a win there),
but also avoids potential ugliness with how testing sets flags.
2017-07-25 15:35:19 -07:00
Alex Dadgar
f8709270e3 Merge pull request #2841 from hashicorp/b-rolling-no-fit
Treat destructive updates atomically
2017-07-19 11:11:25 -07:00
Alex Dadgar
698c964c88 Fix deep copy of driver config 2017-07-17 17:53:21 -07:00
Alex Dadgar
c0084dcab1 Add command autocompletion.
This PR adds command autocompletion to the CLI.
2017-07-17 15:00:40 -07:00
Alex Dadgar
3d77a58f28 small fixes 2017-07-07 12:07:07 -07:00
Michael Schurter
8d2bea4b45 New go-getter test dep 2017-07-06 10:45:44 -07:00
James Nugent
9a037bb61b deps: Update github.com/mitchellh/go-ps
This update pulls in a commit adding support for Solaris.
2017-03-09 08:39:46 -05:00
Alex Dadgar
cfa25620c8 Vendor new cli 2017-03-02 19:23:01 -08:00
Cameron Davison
b943a878fe vendor github.com/mitchellh/go-homedir for osx 2016-08-18 21:27:27 -05:00
Diptanu Choudhury
f693545814 Vendoring go-ps 2016-05-28 19:51:22 -07:00
Alex Dadgar
5a4500c9dd vendor colorstring 2016-05-24 18:28:27 -07:00
Diptanu Choudhury
3acc5408b0 Using godeps to build 2016-02-12 10:02:16 -08:00