open-nomad/command
Michael Schurter 10c3bad652 client: never embed alloc_dir in chroot
Fixes #2522

Skip embedding client.alloc_dir when building chroot. If a user
configures a Nomad client agent so that the chroot_env will embed the
client.alloc_dir, Nomad will happily infinitely recurse while building
the chroot until something horrible happens. The best case scenario is
the filesystem's path length limit is hit. The worst case scenario is
disk space is exhausted.

A bad agent configuration will look something like this:

```hcl
data_dir = "/tmp/nomad-badagent"

client {
  enabled = true

  chroot_env {
    # Note that the source matches the data_dir
    "/tmp/nomad-badagent" = "/ohno"
    # ...
  }
}
```

Note that `/ohno/client` (the state_dir) will still be created but not
`/ohno/alloc` (the alloc_dir).
While I cannot think of a good reason why someone would want to embed
Nomad's client (and possibly server) directories in chroots, there
should be no cause for harm. chroots are only built when Nomad runs as
root, and Nomad disables running exec jobs as root by default. Therefore
even if client state is copied into chroots, it will be inaccessible to
tasks.

Skipping the `data_dir` and `{client,server}.state_dir` is possible, but
this PR attempts to implement the minimum viable solution to reduce risk
of unintended side effects or bugs.

When running tests as root in a vm without the fix, the following error
occurs:

```
=== RUN   TestAllocDir_SkipAllocDir
    alloc_dir_test.go:520:
                Error Trace:    alloc_dir_test.go:520
                Error:          Received unexpected error:
                                Couldn't create destination file /tmp/TestAllocDir_SkipAllocDir1457747331/001/nomad/test/testtask/nomad/test/testtask/.../nomad/test/testtask/secrets/.nomad-mount: open /tmp/TestAllocDir_SkipAllocDir1457747331/001/nomad/test/.../testtask/secrets/.nomad-mount: file name too long
                Test:           TestAllocDir_SkipAllocDir
--- FAIL: TestAllocDir_SkipAllocDir (22.76s)
```

Also removed unused Copy methods on AllocDir and TaskDir structs.

Thanks to @eveld for not letting me forget about this!
2021-10-18 09:22:01 -07:00
..
agent client: never embed alloc_dir in chroot 2021-10-18 09:22:01 -07:00
assets auth_soft_fail needed for public images when agent is configured with auth (#11190) 2021-10-06 15:30:23 -04:00
raft_tools add helper commands for debugging state 2020-08-31 08:45:59 -04:00
test-resources
acl.go
acl_bootstrap.go command: remove -namespace from help options when not applicable 2020-11-19 16:28:39 -05:00
acl_bootstrap_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
acl_policy.go use allow/deny instead of the colored alternatives (#9019) 2020-10-12 08:47:05 -04:00
acl_policy_apply.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
acl_policy_apply_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
acl_policy_delete.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
acl_policy_delete_test.go Event Stream: Track ACL changes, unsubscribe on invalidating changes (#9447) 2020-12-01 11:11:34 -05:00
acl_policy_info.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
acl_policy_info_test.go Event Stream: Track ACL changes, unsubscribe on invalidating changes (#9447) 2020-12-01 11:11:34 -05:00
acl_policy_list.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
acl_policy_list_test.go Event Stream: Track ACL changes, unsubscribe on invalidating changes (#9447) 2020-12-01 11:11:34 -05:00
acl_token.go
acl_token_create.go command: remove -namespace from help options when not applicable 2020-11-19 16:28:39 -05:00
acl_token_create_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
acl_token_delete.go command: remove -namespace from help options when not applicable 2020-11-19 16:28:39 -05:00
acl_token_delete_test.go Event Stream: Track ACL changes, unsubscribe on invalidating changes (#9447) 2020-12-01 11:11:34 -05:00
acl_token_info.go command: remove -namespace from help options when not applicable 2020-11-19 16:28:39 -05:00
acl_token_info_test.go Event Stream: Track ACL changes, unsubscribe on invalidating changes (#9447) 2020-12-01 11:11:34 -05:00
acl_token_list.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
acl_token_list_test.go Event Stream: Track ACL changes, unsubscribe on invalidating changes (#9447) 2020-12-01 11:11:34 -05:00
acl_token_self.go command: remove -namespace from help options when not applicable 2020-11-19 16:28:39 -05:00
acl_token_self_test.go Event Stream: Track ACL changes, unsubscribe on invalidating changes (#9447) 2020-12-01 11:11:34 -05:00
acl_token_update.go command: remove -namespace from help options when not applicable 2020-11-19 16:28:39 -05:00
acl_token_update_test.go Event Stream: Track ACL changes, unsubscribe on invalidating changes (#9447) 2020-12-01 11:11:34 -05:00
agent_info.go fix agent-info help message formatting (#10747) 2021-06-11 15:39:28 -04:00
agent_info_test.go nomad agent-info: Add json/gotemplate formatting (#9788) 2021-01-13 09:42:46 -05:00
agent_monitor.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
agent_monitor_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
alloc.go
alloc_exec.go Refactor alloc exec command (#9718) 2021-01-05 09:33:04 -08:00
alloc_exec_test.go Refactor alloc exec command (#9718) 2021-01-05 09:33:04 -08:00
alloc_exec_unix.go gofmt all the files 2021-10-01 10:14:28 -04:00
alloc_exec_windows.go
alloc_fs.go Adds error handling for client error in getRandomJobAlloc. (#10787) 2021-06-18 16:26:43 -04:00
alloc_fs_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
alloc_logs.go cli: add -task flag to alloc signal, restart (#10859) 2021-07-07 09:58:16 -07:00
alloc_logs_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
alloc_restart.go cli: add -task flag to alloc signal, restart (#10859) 2021-07-07 09:58:16 -07:00
alloc_restart_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
alloc_signal.go fix nomad alloc signal help message (#10917) 2021-07-21 11:02:44 -04:00
alloc_signal_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
alloc_status.go lint: mark false positive or fix gocritic append lint errors. 2021-09-06 10:49:44 +02:00
alloc_status_test.go gofmt all the files 2021-10-01 10:14:28 -04:00
alloc_stop.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
alloc_stop_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
check.go command: remove -namespace from help options when not applicable 2020-11-19 16:28:39 -05:00
check_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
commands.go cli: Add nomad job allocs command (#11242) 2021-10-12 16:30:36 -04:00
commands_oss.go gofmt all the files 2021-10-01 10:14:28 -04:00
data_format.go vendor: explicit use of hashicorp/go-msgpack 2020-03-31 09:45:21 -04:00
data_format_test.go
deployment.go
deployment_fail.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
deployment_fail_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
deployment_list.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
deployment_list_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
deployment_pause.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
deployment_pause_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
deployment_promote.go command: give flag-helpers a better name 2020-12-14 10:07:27 -06:00
deployment_promote_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
deployment_resume.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
deployment_resume_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
deployment_status.go cli: Use glint to determine if os.Stdout is tty (#10926) 2021-07-23 11:27:47 -04:00
deployment_status_test.go cli: add monitor flag to deployment status 2021-06-09 16:18:45 -07:00
deployment_unblock.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
deployment_unblock_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
eval.go
eval_status.go bad boolean logic for List-on-Info commands 2021-02-03 21:29:05 +00:00
eval_status_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
event.go Add missing comma in help-text example. 2020-11-02 18:00:53 -05:00
event_test.go Add event sink API and CLI commands (#9226) 2020-11-02 09:57:35 -08:00
helper_devices.go
helper_devices_test.go
helpers.go chore: fix incorrect docstring formatting. 2021-08-30 11:08:12 +02:00
helpers_test.go tests: ensure that tests restore env-var values (#11309) 2021-10-13 17:26:56 -04:00
integration_test.go
job.go
job_allocs.go fix nomad job allocs command name (#11314) 2021-10-14 12:44:59 -04:00
job_allocs_test.go cli: Add nomad job allocs command (#11242) 2021-10-12 16:30:36 -04:00
job_deployments.go cli: improve wildcard namespace prefix matches (#10648) 2021-05-24 11:38:05 -04:00
job_deployments_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
job_dispatch.go cli: Improved autocomplete support for job dispatch and operator debug (#11270) 2021-10-12 20:01:54 -04:00
job_dispatch_test.go cli: Improved autocomplete support for job dispatch and operator debug (#11270) 2021-10-12 20:01:54 -04:00
job_eval.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
job_eval_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
job_history.go cli: improve wildcard namespace prefix matches (#10648) 2021-05-24 11:38:05 -04:00
job_history_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
job_init.bindata_assetfs.go consul: minor CR cleanup 2021-04-05 10:10:16 -06:00
job_init.go cli: Allow user to specify dest filename for nomad init (#6520) 2019-12-19 14:59:12 -05:00
job_init_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
job_inspect.go cli: improve wildcard namespace prefix matches (#10648) 2021-05-24 11:38:05 -04:00
job_inspect_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
job_periodic.go
job_periodic_force.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
job_periodic_force_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
job_plan.go command: give flag-helpers a better name 2020-12-14 10:07:27 -06:00
job_plan_test.go hclv1: tweak HCLv1 tests 2020-10-21 14:05:46 -04:00
job_promote.go cli: improve wildcard namespace prefix matches (#10648) 2021-05-24 11:38:05 -04:00
job_promote_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
job_revert.go cli: improve wildcard namespace prefix matches (#10648) 2021-05-24 11:38:05 -04:00
job_revert_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
job_run.go consul: plubming for specifying consul namespace in job/group 2021-04-05 10:03:19 -06:00
job_run_test.go hclv1: tweak HCLv1 tests 2020-10-21 14:05:46 -04:00
job_scale.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
job_scale_test.go cli: add scale and scaling-events commands to job cmd. 2020-10-06 09:58:46 +02:00
job_scaling_events.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
job_scaling_events_test.go cli: add scale and scaling-events commands to job cmd. 2020-10-06 09:58:46 +02:00
job_status.go cli: improve wildcard namespace prefix matches (#10648) 2021-05-24 11:38:05 -04:00
job_status_test.go testing: prevent panic when job status output changes (#10869) 2021-07-08 09:25:44 -04:00
job_stop.go cli: improve wildcard namespace prefix matches (#10648) 2021-05-24 11:38:05 -04:00
job_stop_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
job_validate.go chore: bump golangci-lint from v1.24 to v1.39 2021-04-03 09:50:23 +02:00
job_validate_test.go hclv1: tweak HCLv1 tests 2020-10-21 14:05:46 -04:00
license.go license: remove "Terminates At" from license get command 2021-04-28 12:00:30 -04:00
license_get.go license: update 'license get' command 2021-04-28 12:00:30 -04:00
license_get_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
meta.go Added support for -force-color to the CLI. (#10975) 2021-10-06 10:02:42 -04:00
meta_test.go tests: ensure that tests restore env-var values (#11309) 2021-10-13 17:26:56 -04:00
metrics.go Add gocritic to golangci-lint config (#9556) 2020-12-08 12:47:04 -08:00
metrics_test.go Metrics gotemplate support, debug bundle features (#9067) 2020-10-14 15:16:10 -04:00
monitor.go cli: include all possible scores in alloc status metric table (#11128) 2021-09-08 17:30:11 -04:00
monitor_test.go cli: include all possible scores in alloc status metric table (#11128) 2021-09-08 17:30:11 -04:00
namespace.go cli: Update namespace helptext guide URL (#10074) 2021-02-23 08:31:19 -08:00
namespace_apply.go command: give flag-helpers a better name 2020-12-14 10:07:27 -06:00
namespace_apply_test.go gofmt all the files 2021-10-01 10:14:28 -04:00
namespace_delete.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
namespace_delete_test.go gofmt all the files 2021-10-01 10:14:28 -04:00
namespace_inspect.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
namespace_inspect_test.go gofmt all the files 2021-10-01 10:14:28 -04:00
namespace_list.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
namespace_list_test.go gofmt all the files 2021-10-01 10:14:28 -04:00
namespace_status.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
namespace_status_test.go gofmt all the files 2021-10-01 10:14:28 -04:00
node.go command: Fix node help error 2020-11-30 11:12:06 -05:00
node_config.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
node_config_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
node_drain.go Node Drain Metadata (#10250) 2021-05-07 13:58:40 -04:00
node_drain_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
node_eligibility.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
node_eligibility_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
node_status.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
node_status_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
operator.go
operator_autopilot.go
operator_autopilot_get.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
operator_autopilot_get_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
operator_autopilot_set.go command: give flag-helpers a better name 2020-12-14 10:07:27 -06:00
operator_autopilot_set_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
operator_autopilot_test.go
operator_debug.go cli: rename paths in debug bundle for clarity (#11307) 2021-10-13 18:00:55 -04:00
operator_debug_test.go cli: rename paths in debug bundle for clarity (#11307) 2021-10-13 18:00:55 -04:00
operator_keygen.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
operator_keygen_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
operator_keyring.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
operator_raft.go
operator_raft_info.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
operator_raft_list.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
operator_raft_list_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
operator_raft_logs.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
operator_raft_remove.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
operator_raft_remove_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
operator_raft_state.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
operator_raft_test.go
operator_snapshot.go Implement snapshot save CLI 2020-05-21 20:04:38 -04:00
operator_snapshot_inspect.go cli: use <file> for consistency 2020-06-19 12:19:38 -04:00
operator_snapshot_inspect_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
operator_snapshot_restore.go command: remove -namespace from help options when not applicable 2020-11-19 16:28:39 -05:00
operator_snapshot_restore_test.go hclv1: tweak HCLv1 tests 2020-10-21 14:05:46 -04:00
operator_snapshot_save.go command: remove -namespace from help options when not applicable 2020-11-19 16:28:39 -05:00
operator_snapshot_save_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
operator_test.go
plugin.go csi: CLI for volume status, registration/deregistration and plugin status (#7193) 2020-03-23 13:58:30 -04:00
plugin_status.go cmd: validate the type flag when querying plugin status. 2021-06-07 13:53:28 +02:00
plugin_status_csi.go command/plugin_status_csi: plugin status :id keeps expected count 2020-08-31 13:56:54 -04:00
plugin_status_test.go cmd: validate the type flag when querying plugin status. 2021-06-07 13:53:28 +02:00
quota.go
quota_apply.go Port OSS changes for Enterprise Quota accounting (#10481) 2021-04-30 09:48:03 -04:00
quota_apply_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
quota_delete.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
quota_delete_test.go gofmt all the files 2021-10-01 10:14:28 -04:00
quota_init.go Port OSS changes for Enterprise Quota accounting (#10481) 2021-04-30 09:48:03 -04:00
quota_init_test.go cli: filename arg for volume init and quote init 2021-04-18 14:14:05 -04:00
quota_inspect.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
quota_inspect_test.go gofmt all the files 2021-10-01 10:14:28 -04:00
quota_list.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
quota_list_test.go gofmt all the files 2021-10-01 10:14:28 -04:00
quota_status.go cli: Handle nil MemoryMaxMB (#10620) 2021-05-19 16:56:06 -04:00
quota_status_test.go gofmt all the files 2021-10-01 10:14:28 -04:00
recommendation.go cli: add recommendation commands. 2020-11-06 11:16:24 +01:00
recommendation_apply.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
recommendation_apply_test.go recs cli: fixed bad composition 2020-11-11 20:52:57 +00:00
recommendation_dismiss.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
recommendation_dismiss_test.go recs cli: fixed bad composition 2020-11-11 20:52:57 +00:00
recommendation_info.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
recommendation_info_test.go recs cli: fixed bad composition 2020-11-11 20:52:57 +00:00
recommendation_list.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
recommendation_list_test.go auto-complete for recommendations CLI, plus OSS components of recommendations prefix search 2020-11-11 11:13:43 +00:00
scaling.go cli: add policy list and info to new scaling cmd. 2020-10-05 15:18:30 +02:00
scaling_policy.go cli: ensure scaling policy target doesn't have trailing comma 2020-10-06 12:18:17 +02:00
scaling_policy_info.go scaling policy -verbose flag, plus testing and other recommendations from review 2021-02-04 15:08:13 +00:00
scaling_policy_info_test.go scaling policy -verbose flag, plus testing and other recommendations from review 2021-02-04 15:08:13 +00:00
scaling_policy_list.go scaling policy -verbose flag, plus testing and other recommendations from review 2021-02-04 15:08:13 +00:00
scaling_policy_list_test.go added new policy capabilities for recommendations API 2020-10-28 14:32:16 +00:00
scaling_policy_test.go cli: ensure scaling policy target doesn't have trailing comma 2020-10-06 12:18:17 +02:00
sentinel.go
sentinel_apply.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
sentinel_apply_test.go
sentinel_delete.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
sentinel_delete_test.go
sentinel_list.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
sentinel_list_test.go
sentinel_read.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
sentinel_read_test.go
server.go
server_force_leave.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
server_force_leave_test.go
server_join.go command: remove -namespace from help options when not applicable 2020-11-19 16:28:39 -05:00
server_join_test.go
server_members.go Fix some errcheck errors (#9811) 2021-01-14 12:46:35 -08:00
server_members_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
status.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
status_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
system.go cli: add system command and subcmds to interact with system API. 2020-01-13 11:34:46 +01:00
system_gc.go cli: fixed system commands so they correctly use passed flags. 2021-06-28 10:57:50 +02:00
system_gc_test.go cli: fixed system commands so they correctly use passed flags. 2021-06-28 10:57:50 +02:00
system_reconcile.go cli: add system command and subcmds to interact with system API. 2020-01-13 11:34:46 +01:00
system_reconcile_summaries.go cli: fixed system commands so they correctly use passed flags. 2021-06-28 10:57:50 +02:00
system_reconcile_summaries_test.go cli: fixed system commands so they correctly use passed flags. 2021-06-28 10:57:50 +02:00
system_reconcile_test.go cli: add system command and subcmds to interact with system API. 2020-01-13 11:34:46 +01:00
system_test.go cli: add system command and subcmds to interact with system API. 2020-01-13 11:34:46 +01:00
ui.go add -show-url option for ui command (#11213) 2021-10-05 20:08:42 -04:00
util_test.go tests: ensure that tests restore env-var values (#11309) 2021-10-13 17:26:56 -04:00
version.go
version_test.go
volume.go CSI: CLI for create/delete/list 2021-03-31 16:37:09 -04:00
volume_create.go CSI: CLI for create/delete/list 2021-03-31 16:37:09 -04:00
volume_create_csi.go CSI: CLI for create/delete/list 2021-03-31 16:37:09 -04:00
volume_delete.go Display confirmation message on 'nomad volume delete' and 'nomad volume deregister' 2021-05-24 12:02:55 -04:00
volume_deregister.go Display confirmation message on 'nomad volume delete' and 'nomad volume deregister' 2021-05-24 12:02:55 -04:00
volume_detach.go CSI: remove prefix matching from CSIVolumeByID and fix CLI prefix matching (#10158) 2021-03-18 14:32:40 -04:00
volume_init.go cli: filename arg for volume init and quote init 2021-04-18 14:14:05 -04:00
volume_register.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
volume_register_csi.go CSI: correctly handly empty capacity fields during registration 2021-04-02 11:48:26 -04:00
volume_register_test.go CSI: correctly handly empty capacity fields during registration 2021-04-02 11:48:26 -04:00
volume_snapshot_create.go CSI: fix decoding error on snapshot create 2021-04-07 12:00:33 -04:00
volume_snapshot_delete.go CSI: volume snapshot 2021-04-01 11:16:52 -04:00
volume_snapshot_list.go CSI ListSnapshots secrets implementation 2021-07-28 11:30:29 -07:00
volume_status.go csi: don't truncate CSI volume IDs 2021-03-12 10:39:09 -05:00
volume_status_csi.go csi: fix CLI panic when formatting volume status with -verbose flag (#10818) 2021-06-25 16:17:37 -04:00
volume_status_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00