DockerCLI/cli/command/service
Drew Erny 9375644e34 Add jobs support to CLI
* Added two new modes accepted by the `--mode` flag
  * `replicated-job` creates a replicated job
  * `global-job` creates a global job.
* When using `replicated-job` mode, the `replicas` flag sets the
  `TotalCompletions` parameter of the job. This is the total number of
  tasks that will run
* Added a new flag, `max-concurrent`, for use with `replicated-job`
  mode. This flag sets the `MaxConcurrent` parameter of the job, which
  is the maximum number of replicas the job will run simultaneously.
* When using `replicated-job` or `global-job` mode, using any of the
  update parameter flags will result in an error, as jobs cannot be
  updated in the traditional sense.
* Updated the `docker service ls` UI to include the completion status
  (completed vs total tasks) if the service is a job.
* Updated the progress bars UI for service creation and update to
  support jobs. For jobs, there is displayed a bar covering the overall
  progress of the job (the number of tasks completed over the total
  number of tasks to complete).
* Added documentation explaining the use of the new flags, and of jobs
  in general.

Signed-off-by: Drew Erny <derny@mirantis.com>
2020-04-24 11:22:10 -05:00
..
progress Add jobs support to CLI 2020-04-24 11:22:10 -05:00
testdata Add jobs support to CLI 2020-04-24 11:22:10 -05:00
client_test.go service: remove unused opts from newService() (unparam) 2019-10-31 19:22:43 +01:00
cmd.go Error out on orchestrator command that don't support k8s yet 2017-12-26 11:46:59 +01:00
create.go Add jobs support to CLI 2020-04-24 11:22:10 -05:00
create_test.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-23 00:28:55 +01:00
formatter.go Add jobs support to CLI 2020-04-24 11:22:10 -05:00
formatter_test.go Add jobs support to CLI 2020-04-24 11:22:10 -05:00
generic_resource_opts.go Added support for generic resource update 2017-11-28 18:03:10 +01:00
generic_resource_opts_test.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-23 00:28:55 +01:00
helpers.go Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
inspect.go formatter package heavy refactoring 2018-10-23 17:05:44 +02:00
inspect_test.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-23 00:28:55 +01:00
list.go Add jobs support to CLI 2020-04-24 11:22:10 -05:00
list_test.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-23 00:28:55 +01:00
logs.go Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
opts.go Add jobs support to CLI 2020-04-24 11:22:10 -05:00
opts_test.go Add jobs support to CLI 2020-04-24 11:22:10 -05:00
parse.go Add CredentialSpec tests 2019-04-12 11:17:34 -05:00
ps.go Migrate to non-deprecated functions of `api/types/filters` 2018-07-27 15:37:43 +02:00
ps_test.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-23 00:28:55 +01:00
remove.go Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
rollback.go Update code for upstream cobra 2017-10-25 14:49:26 -04:00
rollback_test.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-23 00:28:55 +01:00
scale.go Add jobs support to CLI 2020-04-24 11:22:10 -05:00
trust.go Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
update.go cli/command: fix formatting of comments, and minor linting issues 2020-01-16 12:47:12 +01:00
update_test.go Add "host-gateway" to tests for extra_hosts / --add-host 2020-04-15 09:52:55 +02:00