mirror of https://github.com/docker/cli.git
Make `--dispatcher-heartbeat-period` a duration
Make `--dispatcher-heartbeat-period` a duration in `docker swarm update`, allowing to express the value as "5s", "1h", etc. Signed-off-by: Arnaud Porterie (icecrime) <arnaud.porterie@docker.com>
This commit is contained in:
parent
49023a1c5f
commit
96150d3faa
|
@ -1641,7 +1641,7 @@ _docker_swarm_join() {
|
||||||
_docker_swarm_update() {
|
_docker_swarm_update() {
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
-*)
|
-*)
|
||||||
COMPREPLY=( $( compgen -W "--auto-accept --dispatcher-heartbeat-period --help --secret --task-history-limit" -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "--auto-accept --dispatcher-heartbeat --help --secret --task-history-limit" -- "$cur" ) )
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,11 @@ parent = "smn_cli"
|
||||||
update the Swarm.
|
update the Swarm.
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
--auto-accept value Acceptance policy (default [worker,manager])
|
--auto-accept value Auto acceptance policy (worker, manager or none)
|
||||||
|
--dispatcher-heartbeat duration Dispatcher heartbeat period (default 5s)
|
||||||
--help Print usage
|
--help Print usage
|
||||||
--secret string Set secret value needed to accept nodes into cluster
|
--secret string Set secret value needed to accept nodes into cluster
|
||||||
|
--task-history-limit int Task history retention limit (default 10)
|
||||||
|
|
||||||
Updates a Swarm cluster with new parameter values. This command must target a manager node.
|
Updates a Swarm cluster with new parameter values. This command must target a manager node.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue