open-nomad/command
Luiz Aoqui e012d9411e
Task lifecycle restart (#14127)
* allocrunner: handle lifecycle when all tasks die

When all tasks die the Coordinator must transition to its terminal
state, coordinatorStatePoststop, to unblock poststop tasks. Since this
could happen at any time (for example, a prestart task dies), all states
must be able to transition to this terminal state.

* allocrunner: implement different alloc restarts

Add a new alloc restart mode where all tasks are restarted, even if they
have already exited. Also unifies the alloc restart logic to use the
implementation that restarts tasks concurrently and ignores
ErrTaskNotRunning errors since those are expected when restarting the
allocation.

* allocrunner: allow tasks to run again

Prevent the task runner Run() method from exiting to allow a dead task
to run again. When the task runner is signaled to restart, the function
will jump back to the MAIN loop and run it again.

The task runner determines if a task needs to run again based on two new
task events that were added to differentiate between a request to
restart a specific task, the tasks that are currently running, or all
tasks that have already run.

* api/cli: add support for all tasks alloc restart

Implement the new -all-tasks alloc restart CLI flag and its API
counterpar, AllTasks. The client endpoint calls the appropriate restart
method from the allocrunner depending on the restart parameters used.

* test: fix tasklifecycle Coordinator test

* allocrunner: kill taskrunners if all tasks are dead

When all non-poststop tasks are dead we need to kill the taskrunners so
we don't leak their goroutines, which are blocked in the alloc restart
loop. This also ensures the allocrunner exits on its own.

* taskrunner: fix tests that waited on WaitCh

Now that "dead" tasks may run again, the taskrunner Run() method will
not return when the task finishes running, so tests must wait for the
task state to be "dead" instead of using the WaitCh, since it won't be
closed until the taskrunner is killed.

* tests: add tests for all tasks alloc restart

* changelog: add entry for #14127

* taskrunner: fix restore logic.

The first implementation of the task runner restore process relied on
server data (`tr.Alloc().TerminalStatus()`) which may not be available
to the client at the time of restore.

It also had the incorrect code path. When restoring a dead task the
driver handle always needs to be clear cleanly using `clearDriverHandle`
otherwise, after exiting the MAIN loop, the task may be killed by
`tr.handleKill`.

The fix is to store the state of the Run() loop in the task runner local
client state: if the task runner ever exits this loop cleanly (not with
a shutdown) it will never be able to run again. So if the Run() loops
starts with this local state flag set, it must exit early.

This local state flag is also being checked on task restart requests. If
the task is "dead" and its Run() loop is not active it will never be
able to run again.

* address code review requests

* apply more code review changes

* taskrunner: add different Restart modes

Using the task event to differentiate between the allocrunner restart
methods proved to be confusing for developers to understand how it all
worked.

So instead of relying on the event type, this commit separated the logic
of restarting an taskRunner into two methods:
- `Restart` will retain the current behaviour and only will only restart
  the task if it's currently running.
- `ForceRestart` is the new method where a `dead` task is allowed to
  restart if its `Run()` method is still active. Callers will need to
  restart the allocRunner taskCoordinator to make sure it will allow the
  task to run again.

* minor fixes
2022-08-24 17:43:07 -04:00
..
agent Task lifecycle restart (#14127) 2022-08-24 17:43:07 -04:00
assets docker: update images to reference hashicorpdev Docker organization (#12903) 2022-06-08 15:06:00 -04:00
raft_tools command: switch from raft-boltdb to raft-boltdb/v2 2022-02-23 14:43:59 -06:00
test-resources
testdata cli: correctly use and validate job with vault token set 2022-05-19 12:13:34 -05:00
acl.go command: improve help text when invalid arguments are given 2018-04-18 12:02:11 -04:00
acl_bootstrap.go allow ACL policies to be associated with workload identity (#14140) 2022-08-22 16:41:21 -04:00
acl_bootstrap_test.go cleanup: first pass at fixing command package warnings 2022-08-17 15:33:37 -05: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 allow ACL policies to be associated with workload identity (#14140) 2022-08-22 16:41:21 -04:00
acl_policy_apply_test.go cleanup: first pass at fixing command package warnings 2022-08-17 15:33:37 -05: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 cleanup: first pass at fixing command package warnings 2022-08-17 15:33:37 -05:00
acl_policy_info.go allow ACL policies to be associated with workload identity (#14140) 2022-08-22 16:41:21 -04:00
acl_policy_info_test.go cleanup: first pass at fixing command package warnings 2022-08-17 15:33:37 -05:00
acl_policy_list.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
acl_policy_list_test.go cleanup: first pass at fixing command package warnings 2022-08-17 15:33:37 -05:00
acl_token.go command: improve help text when invalid arguments are given 2018-04-18 12:02:11 -04:00
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 cleanup: first pass at fixing command package warnings 2022-08-17 15:33:37 -05: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 cleanup: first pass at fixing command package warnings 2022-08-17 15:33:37 -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 cleanup: first pass at fixing command package warnings 2022-08-17 15:33:37 -05:00
acl_token_list.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
acl_token_list_test.go cleanup: first pass at fixing command package warnings 2022-08-17 15:33:37 -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 cleanup: first pass at fixing command package warnings 2022-08-17 15:33:37 -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 cleanup: first pass at fixing command package warnings 2022-08-17 15:33:37 -05:00
agent_info.go fix agent-info help message formatting (#10747) 2021-06-11 15:39:28 -04:00
agent_info_test.go cleanup: fixing warnings and refactoring of command package, part 2 2022-08-18 09:43:39 -05:00
agent_monitor.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
agent_monitor_test.go cleanup: fixing warnings and refactoring of command package, part 2 2022-08-18 09:43:39 -05:00
alloc.go command: improve help text when invalid arguments are given 2018-04-18 12:02:11 -04:00
alloc_checks.go cli: display nomad service check status output in CLI commands 2022-08-19 09:18:29 -05:00
alloc_checks_test.go cli: display nomad service check status output in CLI commands 2022-08-19 09:18:29 -05:00
alloc_exec.go feat: docker/docker/pkg/term has been deprecated in favor of moby/term 2022-06-26 15:35:27 +02:00
alloc_exec_test.go cleanup: fixing warnings and refactoring of command package, part 2 2022-08-18 09:43:39 -05:00
alloc_exec_unix.go gofmt all the files 2021-10-01 10:14:28 -04:00
alloc_exec_windows.go add CLI commands for nomad exec 2019-05-12 22:04:50 -04:00
alloc_fs.go chore: fixup inconsistent method receiver names. (#11704) 2021-12-20 11:44:21 +01:00
alloc_fs_test.go cleanup: fixing warnings and refactoring of command package, part 2 2022-08-18 09:43:39 -05:00
alloc_logs.go chore: fixup inconsistent method receiver names. (#11704) 2021-12-20 11:44:21 +01:00
alloc_logs_test.go cleanup: fixing warnings and refactoring of command package, part 2 2022-08-18 09:43:39 -05:00
alloc_restart.go Task lifecycle restart (#14127) 2022-08-24 17:43:07 -04:00
alloc_restart_test.go cleanup: fixing warnings and refactoring of command package, part 2 2022-08-18 09:43:39 -05:00
alloc_signal.go chore: fixup inconsistent method receiver names. (#11704) 2021-12-20 11:44:21 +01:00
alloc_signal_test.go cli: display nomad service check status output in CLI commands 2022-08-19 09:18:29 -05:00
alloc_status.go cli: display nomad service check status output in CLI commands 2022-08-19 09:18:29 -05:00
alloc_status_test.go cli: display nomad service check status output in CLI commands 2022-08-19 09:18:29 -05:00
alloc_stop.go chore: fixup inconsistent method receiver names. (#11704) 2021-12-20 11:44:21 +01:00
alloc_stop_test.go cleanup: fixing warnings and refactoring of command package, part 2 2022-08-18 09:43:39 -05:00
check.go command: remove -namespace from help options when not applicable 2020-11-19 16:28:39 -05:00
check_test.go cleanup: fixing warnings and refactoring of command package, part 2 2022-08-18 09:43:39 -05:00
commands.go cli: display nomad service check status output in CLI commands 2022-08-19 09:18:29 -05:00
commands_oss.go gofmt all the files 2021-10-01 10:14:28 -04:00
config.go Add config command and config validate subcommand to nomad CLI (#9198) 2022-02-08 16:52:35 -05:00
config_validate.go Add config command and config validate subcommand to nomad CLI (#9198) 2022-02-08 16:52:35 -05:00
config_validate_test.go cleanup: fixing warnings and refactoring of command package, part 2 2022-08-18 09:43:39 -05:00
data_format.go build: run gofmt on all go source files 2022-08-16 11:14:11 -05:00
data_format_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
deployment.go Fixed typo in deployment help text 2018-05-24 12:44:21 -04:00
deployment_fail.go cli: fix detach handling (#13405) 2022-06-21 06:01:23 -04:00
deployment_fail_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
deployment_list.go Add go-bexpr filters to evals and deployment list endpoints (#12034) 2022-02-16 11:40:30 -05:00
deployment_list_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
deployment_pause.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
deployment_pause_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
deployment_promote.go cli: fix detach handling (#13405) 2022-06-21 06:01:23 -04:00
deployment_promote_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
deployment_resume.go cli: fix detach handling (#13405) 2022-06-21 06:01:23 -04:00
deployment_resume_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
deployment_status.go cli: do not import structs, use API package only. (#13938) 2022-08-02 16:33:08 +02:00
deployment_status_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
deployment_unblock.go cli: fix detach handling (#13405) 2022-06-21 06:01:23 -04:00
deployment_unblock_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
eval.go cli: improve output of eval commands (#13581) 2022-07-07 13:13:34 -04:00
eval_delete.go cli: improve output of eval commands (#13581) 2022-07-07 13:13:34 -04:00
eval_delete_test.go core: allow deleting of evaluations (#13492) 2022-07-06 16:30:11 +02:00
eval_list.go cli: improve output of eval commands (#13581) 2022-07-07 13:13:34 -04:00
eval_list_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
eval_status.go cli: improve output of eval commands (#13581) 2022-07-07 13:13:34 -04:00
eval_status_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
event.go Add missing comma in help-text example. 2020-11-02 18:00:53 -05:00
event_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
helper_devices.go device attributes in nomad node status -verbose 2018-12-10 12:18:24 -05:00
helper_devices_test.go cleanup: replace TypeToPtr helper methods with pointer.Of (#14151) 2022-08-17 18:26:34 +02:00
helpers.go artifact: fix numerous go-getter security issues 2022-05-24 16:29:39 -04:00
helpers_test.go cleanup: first pass at fixing command package warnings 2022-08-17 15:33:37 -05:00
integration_test.go ci: switch to 22.04 LTS for GHA Core CI tests 2022-05-25 08:19:40 -05:00
job.go command: improve help text when invalid arguments are given 2018-04-18 12:02:11 -04:00
job_allocs.go Code cleanup: Remove extra if clause. 2021-10-19 16:52:11 -07:00
job_allocs_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
job_deployments.go Code cleanup: Remove extra if clause. 2021-10-19 16:52:11 -07:00
job_deployments_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
job_dispatch.go add dispatch idempotency token support in the CLI (#10930) 2021-10-22 12:39:05 -04:00
job_dispatch_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
job_eval.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
job_eval_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
job_history.go Code cleanup: Remove extra if clause. 2021-10-19 16:52:11 -07:00
job_history_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
job_init.bindata_assetfs.go client: add support for checks in nomad services 2022-07-12 17:09:50 -05: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 test: use T.TempDir to create temporary test directory (#12853) 2022-05-12 11:42:40 -04:00
job_inspect.go Code cleanup: Remove extra if clause. 2021-10-19 16:52:11 -07:00
job_inspect_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
job_periodic.go gofmt/goimport and test formatting 2019-04-12 20:55:55 +00:00
job_periodic_force.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
job_periodic_force_test.go cleanup: replace TypeToPtr helper methods with pointer.Of (#14151) 2022-08-17 18:26:34 +02:00
job_plan.go cli: respect vault token in plan command 2022-08-11 08:54:08 -05:00
job_plan_test.go cli: respect vault token in plan command 2022-08-11 08:54:08 -05:00
job_promote.go cli: fix detach handling (#13405) 2022-06-21 06:01:23 -04:00
job_promote_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
job_revert.go Return evalID if -detach flag is passed to job revert (#13364) 2022-06-15 14:20:29 -04:00
job_revert_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
job_run.go cleanup: replace TypeToPtr helper methods with pointer.Of (#14151) 2022-08-17 18:26:34 +02:00
job_run_test.go cli: add -json flag to support job commands (#12591) 2022-04-21 13:20:36 -07:00
job_scale.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
job_scale_test.go cleanup: replace TypeToPtr helper methods with pointer.Of (#14151) 2022-08-17 18:26:34 +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 cleanup: replace TypeToPtr helper methods with pointer.Of (#14151) 2022-08-17 18:26:34 +02:00
job_status.go cli: do not import structs, use API package only. (#13938) 2022-08-02 16:33:08 +02:00
job_status_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
job_stop.go provide -no-shutdown-delay flag for job/alloc stop (#11596) 2021-12-13 14:54:53 -05:00
job_stop_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
job_validate.go cleanup: replace TypeToPtr helper methods with pointer.Of (#14151) 2022-08-17 18:26:34 +02:00
job_validate_test.go cli: correctly use and validate job with vault token set 2022-05-19 12:13:34 -05: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 ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
meta.go cli: update namespace wildcard help to be non-specific. 2022-03-23 12:56:48 +01:00
meta_test.go cleanup: first pass at fixing command package warnings 2022-08-17 15:33:37 -05:00
metrics.go Add gocritic to golangci-lint config (#9556) 2020-12-08 12:47:04 -08:00
metrics_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
monitor.go cli: do not import structs, use API package only. (#13938) 2022-08-02 16:33:08 +02:00
monitor_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
namespace.go cli: Update namespace helptext guide URL (#10074) 2021-02-23 08:31:19 -08:00
namespace_apply.go cli: detect directory when applying namespace spec file (#12738) 2022-04-21 14:53:45 -04:00
namespace_apply_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
namespace_delete.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
namespace_delete_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
namespace_inspect.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
namespace_inspect_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
namespace_list.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
namespace_list_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
namespace_status.go cli: namespace meta should be formatted consistently 2022-03-04 14:13:48 -08:00
namespace_status_oss_test.go cli: namespace tests should be run on oss 2022-03-04 14:13:48 -08:00
namespace_status_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05: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 ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
node_drain.go cli: ensure node status and drain use correct cmd name. (#13656) 2022-07-11 09:50:42 +02:00
node_drain_test.go cleanup: replace TypeToPtr helper methods with pointer.Of (#14151) 2022-08-17 18:26:34 +02:00
node_eligibility.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
node_eligibility_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
node_status.go cleanup: replace TypeToPtr helper methods with pointer.Of (#14151) 2022-08-17 18:26:34 +02:00
node_status_test.go cli: add -quiet to nomad node status command. (#12426) 2022-04-05 15:53:43 -04:00
operator.go command: improve help text when invalid arguments are given 2018-04-18 12:02:11 -04:00
operator_api.go cli: fix op api method handling 2022-03-01 16:44:15 -08:00
operator_api_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
operator_autopilot.go command: improve help text when invalid arguments are given 2018-04-18 12:02:11 -04:00
operator_autopilot_get.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
operator_autopilot_get_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05: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 ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
operator_autopilot_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
operator_debug.go cli: do not import structs, use API package only. (#13938) 2022-08-02 16:33:08 +02:00
operator_debug_test.go cleanup: replace TypeToPtr helper methods with pointer.Of (#14151) 2022-08-17 18:26:34 +02:00
operator_gossip_keyring.go move gossip keyring command to their own subcommands (#13383) 2022-07-11 13:34:06 -04:00
operator_gossip_keyring_generate.go move gossip keyring command to their own subcommands (#13383) 2022-07-11 13:34:06 -04:00
operator_gossip_keyring_install.go move gossip keyring command to their own subcommands (#13383) 2022-07-11 13:34:06 -04:00
operator_gossip_keyring_list.go move gossip keyring command to their own subcommands (#13383) 2022-07-11 13:34:06 -04:00
operator_gossip_keyring_remove.go move gossip keyring command to their own subcommands (#13383) 2022-07-11 13:34:06 -04:00
operator_gossip_keyring_test.go move gossip keyring command to their own subcommands (#13383) 2022-07-11 13:34:06 -04:00
operator_gossip_keyring_use.go move gossip keyring command to their own subcommands (#13383) 2022-07-11 13:34:06 -04:00
operator_keyring.go move gossip keyring command to their own subcommands (#13383) 2022-07-11 13:34:06 -04:00
operator_raft.go cli: unhide advanced operator raft debugging commands (#11682) 2021-12-16 10:32:11 -05:00
operator_raft_info.go cli: unhide advanced operator raft debugging commands (#11682) 2021-12-16 10:32:11 -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 ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
operator_raft_logs.go cli: stream raft logs to operator raft logs subcommand (#11684) 2021-12-16 13:38:58 -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 ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
operator_raft_state.go cli: unhide advanced operator raft debugging commands (#11682) 2021-12-16 10:32:11 -05:00
operator_raft_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
operator_scheduler.go core: allow pausing and un-pausing of leader broker routine (#13045) 2022-07-06 16:13:48 +02:00
operator_scheduler_get_config.go core: allow pausing and un-pausing of leader broker routine (#13045) 2022-07-06 16:13:48 +02:00
operator_scheduler_get_config_test.go core: allow pausing and un-pausing of leader broker routine (#13045) 2022-07-06 16:13:48 +02:00
operator_scheduler_set_config.go core: allow pausing and un-pausing of leader broker routine (#13045) 2022-07-06 16:13:48 +02:00
operator_scheduler_set_config_test.go core: allow pausing and un-pausing of leader broker routine (#13045) 2022-07-06 16:13:48 +02:00
operator_secure_variables_keyring.go keyring: use nanos for CreateTime in key metadata (#13849) 2022-07-20 14:46:57 -04:00
operator_secure_variables_keyring_install.go docs: keyring commands (#13690) 2022-07-20 14:14:10 -04:00
operator_secure_variables_keyring_list.go keyring CLI: refactor to use subcommands (#13351) 2022-07-11 13:34:05 -04:00
operator_secure_variables_keyring_remove.go keyring CLI: refactor to use subcommands (#13351) 2022-07-11 13:34:05 -04:00
operator_secure_variables_keyring_rotate.go keyring CLI: refactor to use subcommands (#13351) 2022-07-11 13:34:05 -04:00
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 test: use T.TempDir to create temporary test directory (#12853) 2022-05-12 11:42:40 -04: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 test: use T.TempDir to create temporary test directory (#12853) 2022-05-12 11:42:40 -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 test: use T.TempDir to create temporary test directory (#12853) 2022-05-12 11:42:40 -04:00
operator_snapshot_state.go snapshot restore-from-archive streaming and filtering (#13658) 2022-07-11 10:48:00 -04:00
operator_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
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 CSI: presentation improvements (#12325) 2022-03-22 09:48:38 -04:00
plugin_status_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
quota.go command: improve help text when invalid arguments are given 2018-04-18 12:02:11 -04:00
quota_apply.go secure vars: enforce ENT quotas (OSS work) (#13951) 2022-08-02 09:32:09 -04:00
quota_apply_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
quota_delete.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
quota_delete_test.go fix minor issues found durint ENT merge (#14250) 2022-08-23 17:22:18 -04:00
quota_init.go secure vars: enforce ENT quotas (OSS work) (#13951) 2022-08-02 09:32:09 -04:00
quota_init_test.go test: use T.TempDir to create temporary test directory (#12853) 2022-05-12 11:42:40 -04:00
quota_inspect.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
quota_inspect_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
quota_list.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
quota_list_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
quota_status.go secure vars: enforce ENT quotas (OSS work) (#13951) 2022-08-02 09:32:09 -04:00
quota_status_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05: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 ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
recommendation_dismiss.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
recommendation_dismiss_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
recommendation_info.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
recommendation_info_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
recommendation_list.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
recommendation_list_test.go tests: wait on client in a couple of tests 2022-03-30 08:48:23 -05: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 chore: fixup inconsistent method receiver names. (#11704) 2021-12-20 11:44:21 +01:00
scaling_policy_info_test.go cleanup: replace TypeToPtr helper methods with pointer.Of (#14151) 2022-08-17 18:26:34 +02: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 cleanup: replace TypeToPtr helper methods with pointer.Of (#14151) 2022-08-17 18:26:34 +02:00
scaling_policy_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
sentinel.go command: improve help text when invalid arguments are given 2018-04-18 12:02:11 -04:00
sentinel_apply.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
sentinel_apply_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
sentinel_delete.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
sentinel_delete_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
sentinel_list.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
sentinel_list_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
sentinel_read.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
sentinel_read_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
server.go command: improve help text when invalid arguments are given 2018-04-18 12:02:11 -04:00
server_force_leave.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
server_force_leave_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
server_join.go command: remove -namespace from help options when not applicable 2020-11-19 16:28:39 -05:00
server_join_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
server_members.go cli: display Raft version in server members (#12317) 2022-03-17 14:15:10 -04:00
server_members_test.go cli: display Raft version in server members (#12317) 2022-03-17 14:15:10 -04:00
service.go cli: add service commands for list, info, and delete. 2022-03-21 11:59:03 +01:00
service_delete.go api: move serviceregistration client to servics to match CLI. 2022-03-24 09:08:45 +01:00
service_delete_test.go cli: fixup service test delete by using more atomic actions. 2022-04-06 08:36:23 +01:00
service_info.go services: fix imports 2022-04-22 09:15:51 -05:00
service_info_test.go services: enable setting arbitrary address value in service registrations 2022-04-22 09:14:29 -05:00
service_list.go api: move serviceregistration client to servics to match CLI. 2022-03-24 09:08:45 +01:00
service_list_test.go test: move remaining tests to use ci.Parallel. 2022-03-24 08:45:13 +01:00
status.go chore: fixup inconsistent method receiver names. (#11704) 2021-12-20 11:44:21 +01:00
status_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05: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 ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05: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 ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
system_reconcile_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
system_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
testing_test.go cli: display nomad service check status output in CLI commands 2022-08-19 09:18:29 -05:00
ui.go cli: allow setting namespace and region in the nomad ui command (#11364) 2021-10-21 16:24:39 -04:00
ui_test.go cleanup: first pass at fixing command package warnings 2022-08-17 15:33:37 -05:00
var.go SV: CLI: var list command (#13707) 2022-07-12 12:49:39 -04:00
var_init.go SV CLI: var init (#13820) 2022-08-15 13:43:29 -04:00
var_list.go SV: CLI: var list command (#13707) 2022-07-12 12:49:39 -04:00
var_list_test.go SV: CLI: var list command (#13707) 2022-07-12 12:49:39 -04:00
version.go command: improve help text when invalid arguments are given 2018-04-18 12:02:11 -04:00
version_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
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 CSI: Add secrets flag support for delete volume (#11245) 2022-04-05 08:59:11 -04:00
volume_deregister.go csi: respect -verbose flag for allocs in volume status (#12153) 2022-03-01 07:57:29 -05:00
volume_detach.go csi: respect -verbose flag for allocs in volume status (#12153) 2022-03-01 07:57:29 -05:00
volume_init.go csi: allow namespace field to be passed in volume spec (#12400) 2022-03-29 14:46:39 -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: allow updates to volumes on re-registration (#12167) 2022-03-07 11:06:59 -05:00
volume_register_test.go csi: allow namespace field to be passed in volume spec (#12400) 2022-03-29 14:46:39 -04:00
volume_snapshot.go csi: subcommand for volume snapshot (#12152) 2022-03-01 13:30:30 -05:00
volume_snapshot_create.go csi: add -secret and -parameter flag to volume snapshot create (#12360) 2022-03-24 10:29:50 -04:00
volume_snapshot_delete.go csi: add -secret and -parameter flag to volume snapshot create (#12360) 2022-03-24 10:29:50 -04:00
volume_snapshot_list.go cleanup: purge github.com/pkg/errors 2022-04-01 19:24:02 -05:00
volume_status.go CSI: presentation improvements (#12325) 2022-03-22 09:48:38 -04:00
volume_status_csi.go cli: do not import structs, use API package only. (#13938) 2022-08-02 16:33:08 +02:00
volume_status_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00