open-nomad/helper
Lang Martin 887e1f28c9 csi: CLI for volume status, registration/deregistration and plugin status (#7193)
* command/csi: csi, csi_plugin, csi_volume

* helper/funcs: move ExtraKeys from parse_config to UnusedKeys

* command/agent/config_parse: use helper.UnusedKeys

* api/csi: annotate CSIVolumes with hcl fields

* command/csi_plugin: add Synopsis

* command/csi_volume_register: use hcl.Decode style parsing

* command/csi_volume_list

* command/csi_volume_status: list format, cleanup

* command/csi_plugin_list

* command/csi_plugin_status

* command/csi_volume_deregister

* command/csi_volume: add Synopsis

* api/contexts/contexts: add csi search contexts to the constants

* command/commands: register csi commands

* api/csi: fix struct tag for linter

* command/csi_plugin_list: unused struct vars

* command/csi_plugin_status: unused struct vars

* command/csi_volume_list: unused struct vars

* api/csi: add allocs to CSIPlugin

* command/csi_plugin_status: format the allocs

* api/allocations: copy Allocation.Stub in from structs

* nomad/client_rpc: add some error context with Errorf

* api/csi: collapse read & write alloc maps to a stub list

* command/csi_volume_status: cleanup allocation display

* command/csi_volume_list: use Schedulable instead of Healthy

* command/csi_volume_status: use Schedulable instead of Healthy

* command/csi_volume_list: sprintf string

* command/csi: delete csi.go, csi_plugin.go

* command/plugin: refactor csi components to sub-command plugin status

* command/plugin: remove csi

* command/plugin_status: remove csi

* command/volume: remove csi

* command/volume_status: split out csi specific

* helper/funcs: add RemoveEqualFold

* command/agent/config_parse: use helper.RemoveEqualFold

* api/csi: do ,unusedKeys right

* command/volume: refactor csi components to `nomad volume`

* command/volume_register: split out csi specific

* command/commands: use the new top level commands

* command/volume_deregister: hardwired type csi for now

* command/volume_status: csiFormatVolumes rescued from volume_list

* command/plugin_status: avoid a panic on no args

* command/volume_status: avoid a panic on no args

* command/plugin_status: predictVolumeType

* command/volume_status: predictVolumeType

* nomad/csi_endpoint_test: move CreateTestPlugin to testing

* command/plugin_status_test: use CreateTestCSIPlugin

* nomad/structs/structs: add CSIPlugins and CSIVolumes search consts

* nomad/state/state_store: add CSIPlugins and CSIVolumesByIDPrefix

* nomad/search_endpoint: add CSIPlugins and CSIVolumes

* command/plugin_status: move the header to the csi specific

* command/volume_status: move the header to the csi specific

* nomad/state/state_store: CSIPluginByID prefix

* command/status: rename the search context to just Plugins/Volumes

* command/plugin,volume_status: test return ids now

* command/status: rename the search context to just Plugins/Volumes

* command/plugin_status: support -json and -t

* command/volume_status: support -json and -t

* command/plugin_status_csi: comments

* command/*_status: clean up text

* api/csi: fix stale comments

* command/volume: make deregister sound less fearsome

* command/plugin_status: set the id length

* command/plugin_status_csi: more compact plugin health

* command/volume: better error message, comment
2020-03-23 13:58:30 -04:00
..
args address review comments 2018-10-30 13:58:52 -04:00
boltdd client/state: improve upgradeTaskBucket error handling 2018-12-19 10:39:27 -08:00
codec Pull inmem codec to helper 2018-02-15 13:59:00 -08:00
constraints/semver test: assert semvers are *not* compared lexically 2019-11-19 10:59:40 -08:00
discover skip running test executables 2017-10-19 16:49:57 -07:00
escapingio tests: handle unicode matches 2019-05-21 09:41:23 -04:00
fields goimports 2019-01-22 15:44:31 -08:00
flag-helpers agent: add optional param to -dev flag for connect (#6126) 2019-08-14 15:29:37 -04:00
flatmap Enable more linters 2017-09-26 15:26:33 -07:00
freeport update rest of consul packages 2020-02-16 16:25:04 -06:00
gated-writer agent: moving functions into helpers 2015-08-23 16:57:54 -07:00
grpc-middleware/logging helper: Add initial grpc logging middleware 2020-03-23 13:58:29 -04:00
logging cli Ui implementation that logs to a hclogger 2019-02-19 17:53:14 -06:00
mount helper/mount: Add mount helper package 2020-03-23 13:58:29 -04:00
pluginutils Remove rkt as a built-in driver 2020-02-26 22:16:41 -05:00
pool Update helper/pool/pool.go 2020-02-06 19:24:58 -05:00
stats Extend timeout based on user feedback 2018-06-21 15:27:56 -04:00
testlog New monitor pkg for shared monitor functionality 2019-11-05 09:51:49 -05:00
testtask Update helper/testtask/testtask_windows.go 2019-01-17 18:43:14 +01:00
tlsutil config: accept CA PEM files with extra whitespace 2018-09-06 11:38:56 -07:00
useragent Set user-agent when talking to GCE metadata 2018-04-10 10:36:46 -04:00
uuid Remove structs import from api 2017-09-29 10:36:08 -07:00
winsvc Added service wrapper code (#6220) 2019-11-11 15:16:07 -05:00
funcs.go csi: CLI for volume status, registration/deregistration and plugin status (#7193) 2020-03-23 13:58:30 -04:00
funcs_test.go connect: add group.service stanza support 2019-07-31 01:04:05 -04:00