Chris Baker
fcc6a2ca13
agent config: cleaner VAULT_ env lookup
2019-04-10 10:34:10 -05:00
Chris Baker
20a3884559
docs: -vault-namespace, VAULT_NAMESPACE, and config
...
agent: added VAULT_NAMESPACE env-based configuration
2019-04-10 10:34:10 -05:00
Chris Baker
5db81957ff
wip: added config parsing support, CLI flag, still need more testing, VAULT_ var, documentation
2019-04-10 10:34:10 -05:00
Chris Baker
9d50d82ead
"job revert" command: alphabetized flags
2019-04-10 10:34:10 -05:00
Chris Baker
af0d0f919f
cli: plumbed vault token from job revert command through API call
2019-04-10 10:34:10 -05:00
Arshneet Singh
e6ef8b0e88
Remove redundant assertion and replace regex matches with require
2019-04-10 10:34:10 -05:00
Arshneet Singh
ec49fff549
Don't display node name if output isn't verbose. Add tests.
2019-04-10 10:34:10 -05:00
James Rasell
ee92bf86d8
Add NodeName to the alloc/job status outputs.
...
Currently when operators need to log onto a machine where an alloc
is running they will need to perform both an alloc/job status
call and then a call to discover the node name from the node list.
This updates both the job status and alloc status output to include
the node name within the information to make operator use easier.
Closes #2359
Cloess #1180
2019-04-10 10:34:10 -05:00
Nomad Release bot
18dd59056e
Generate files for 0.9.0 release
2019-04-09 01:56:00 +00:00
Nomad Release bot
6a838b8c3b
Generate files for 0.9.0-rc2 release
2019-04-03 01:54:29 +00:00
Preetha Appan
ff1bac9f48
Address review comments
2019-03-29 08:57:49 -05:00
Preetha Appan
7490af2194
fix linting
2019-03-28 18:01:40 -05:00
Preetha Appan
1f88ccec55
Fix json parsing bug with plugins that don't provide args
...
This fixes a bug with JSON agent configuration parsing where the AST
for the plugin stanza had unnecessary flattening originating from hcl parsing
library. The workaround fixes the AST by popping off the flattened element and wrapping
it in a list. The workaround comes from similar code in terraform.
There were no existing test cases for json parsing so I added a few.
2019-03-28 16:33:30 -05:00
Nomad Release bot
7c00ab4f3f
Generate files for 0.9.0-rc1 release
2019-03-21 19:06:13 +00:00
Michael Schurter
2f55f78b21
Fix version.go for 0.9.0-beta3 release
2019-02-26 10:11:30 -08:00
Michael Schurter
b849d84f2f
Generate files for 0.9.0-beta3 release
2019-02-26 09:44:49 -08:00
Preetha
43aa7b138b
Merge pull request #5350 from hashicorp/b-json-logging-meta
...
Support json logging for CLI output for agent
2019-02-22 13:40:56 -06:00
Preetha Appan
b1daa69fae
fix import order
2019-02-22 13:40:13 -06:00
Preetha Appan
fb85d1155d
Move logger initialization to earlier step
2019-02-21 12:41:54 -06:00
Danielle Tomlinson
ed9818a570
ui: Support colored output on Windows
...
This commit uses the go-colorable library to enable support for coloured
UI output on Windows. This acts as a compatibility layer that takes
standard unix-y terminal codes and translates them into the requisite
windows calls as required.
2019-02-20 14:01:35 +01:00
Preetha Appan
b3b4d7b9a3
cli Ui implementation that logs to a hclogger
...
This makes it so any messages output to the UI *after* the agent has started
will be logged in json format correctly
2019-02-19 17:53:14 -06:00
Preetha Appan
9fc94b33a1
fix indentation
2019-02-14 12:49:26 -06:00
Preetha Appan
7d92831217
Fix whitespace
2019-02-14 12:49:26 -06:00
Chris Baker
236101f193
Update job_init.go
...
minor
2019-02-14 12:49:26 -06:00
Preetha Appan
7beb4ccd9c
expand job init example with spread and affinity
2019-02-14 12:49:26 -06:00
Michael Schurter
c12bdcdf0b
Merge pull request #5297 from hashicorp/b-docker-logging
...
Docker: Fix logging config parsing
2019-02-11 06:57:52 -08:00
Michael Schurter
3e52a6aacf
consul: squelch noisy useless logs
...
Only log when syncing actually did something.
2019-02-04 11:07:57 -08:00
Iskander (Alex) Sharipov
8c75be1ec4
nomad/command: fix strings.Contains args order
...
Swapped call args order to meet the expected behavior.
Signed-off-by: Iskander Sharipov <quasilyte@gmail.com >
2019-02-02 09:43:24 +03:00
Michael Schurter
c40cb97dbc
cli: do not duplicate reschedule headers per group
...
Fixes #5291
2019-02-01 09:28:36 -08:00
Alex Dadgar
29a5d242e6
Generate files for 0.9.0-beta2
2019-01-30 13:31:50 -08:00
Preetha Appan
3cd2ba28e4
fix tests
2019-01-30 14:46:24 -06:00
Alex Dadgar
bc42873e07
Change types of weights on spread/affinity
2019-01-30 12:20:38 -08:00
Alex Dadgar
ecec3d38de
Nomad 0.9.0-beta1 generated code
2019-01-30 10:49:44 -08:00
Nick Ethier
6837a73708
add circbufwriter package
2019-01-28 11:35:21 -05:00
Nick Ethier
d9b1fc1a54
executor: prevent logger from blocking when stderr pipe is detached
2019-01-25 23:08:01 -05:00
Michael Schurter
87f8dff1ef
Merge pull request #5196 from hashicorp/f-plugin-utils
...
Make plugins/shared external and make pluginutls/
2019-01-23 06:59:32 -08:00
Michael Schurter
158c74887e
goimports until make check is happy
2019-01-23 06:27:14 -08:00
Preetha Appan
77225d1d1a
nil check node resources to prevent panic
2019-01-22 19:34:02 -06:00
Michael Schurter
0d61ff0fb9
move pluginutils -> helper/pluginutils
...
I wanted a different color bikeshed, so I get to paint it
2019-01-22 15:50:08 -08:00
Alex Dadgar
95297c608c
goimports
2019-01-22 15:44:31 -08:00
Alex Dadgar
c19cd2e5cf
loader and singleton
2019-01-22 15:11:57 -08:00
Alex Dadgar
b9f36134dc
move catalog + grpcutils
2019-01-22 15:11:57 -08:00
Mahmood Ali
f7e7b99819
Merge pull request #5213 from hashicorp/b-api-separate
...
Slimmer /api package
2019-01-18 20:52:53 -05:00
Mahmood Ali
9f7619344e
Merge pull request #5190 from hashicorp/f-memory-usage
...
Track Basic Memory Usage as reported by cgroups
2019-01-18 16:46:02 -05:00
Mahmood Ali
a5d60fd31c
api: remove MockJob from exported functions
...
`api.MockJob` is a test utility, that's only used by `command/agent`
package. This moves it to the package and removes it from the public
API.
2019-01-18 14:51:31 -05:00
Michael Schurter
3a491ab2b4
Merge pull request #5187 from hashicorp/test-consul
...
Port a bunch of pre-0.9 Consul tests to 0.9
2019-01-15 07:41:50 -08:00
Alex Dadgar
109c5ef650
Merge pull request #5173 from hashicorp/b-log-levels
...
Plugins use parent loggers
2019-01-14 16:14:30 -08:00
Mahmood Ali
b5c20aa50b
Track Basic Memory Usage as reported by cgroups
...
Track current memory usage, `memory.usage_in_bytes`, in addition to
`memory.max_memory_usage_in_bytes` and friends. This number is closer
what Docker reports.
Related to https://github.com/hashicorp/nomad/issues/5165 .
2019-01-14 18:47:52 -05:00
Michael Schurter
ceee126241
Remove old comment; it's been fixed!
2019-01-14 09:56:53 -08:00
Preetha Appan
72dead7448
REfactor statedb factory config to set it directly in client config
2019-01-12 10:38:20 -06:00