mirror of https://github.com/docker/cli.git
completion: remove options related to deprecated cluster-store
This removes completion for flags related to legacy overlay networks using an external k/v store. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
1fafae3efc
commit
5eb24bfd11
|
@ -2523,9 +2523,6 @@ _docker_daemon() {
|
||||||
--bip
|
--bip
|
||||||
--bridge -b
|
--bridge -b
|
||||||
--cgroup-parent
|
--cgroup-parent
|
||||||
--cluster-advertise
|
|
||||||
--cluster-store
|
|
||||||
--cluster-store-opt
|
|
||||||
--config-file
|
--config-file
|
||||||
--containerd
|
--containerd
|
||||||
--containerd-namespace
|
--containerd-namespace
|
||||||
|
@ -2574,15 +2571,6 @@ _docker_daemon() {
|
||||||
|
|
||||||
__docker_complete_log_driver_options && return
|
__docker_complete_log_driver_options && return
|
||||||
|
|
||||||
key=$(__docker_map_key_of_current_option '--cluster-store-opt')
|
|
||||||
case "$key" in
|
|
||||||
kv.*file)
|
|
||||||
cur=${cur##*=}
|
|
||||||
_filedir
|
|
||||||
return
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
local key=$(__docker_map_key_of_current_option '--storage-opt')
|
local key=$(__docker_map_key_of_current_option '--storage-opt')
|
||||||
case "$key" in
|
case "$key" in
|
||||||
dm.blkdiscard|dm.override_udev_sync_check|dm.use_deferred_removal|dm.use_deferred_deletion)
|
dm.blkdiscard|dm.override_udev_sync_check|dm.use_deferred_removal|dm.use_deferred_deletion)
|
||||||
|
@ -2609,16 +2597,6 @@ _docker_daemon() {
|
||||||
__docker_complete_plugins_bundled --type Authorization
|
__docker_complete_plugins_bundled --type Authorization
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
--cluster-store)
|
|
||||||
COMPREPLY=( $( compgen -W "consul etcd zk" -S "://" -- "$cur" ) )
|
|
||||||
__docker_nospace
|
|
||||||
return
|
|
||||||
;;
|
|
||||||
--cluster-store-opt)
|
|
||||||
COMPREPLY=( $( compgen -W "discovery.heartbeat discovery.ttl kv.cacertfile kv.certfile kv.keyfile kv.path" -S = -- "$cur" ) )
|
|
||||||
__docker_nospace
|
|
||||||
return
|
|
||||||
;;
|
|
||||||
--config-file|--containerd|--init-path|--pidfile|-p|--tlscacert|--tlscert|--tlskey|--userland-proxy-path)
|
--config-file|--containerd|--init-path|--pidfile|-p|--tlscacert|--tlscert|--tlskey|--userland-proxy-path)
|
||||||
_filedir
|
_filedir
|
||||||
return
|
return
|
||||||
|
|
|
@ -2731,9 +2731,6 @@ __docker_subcommand() {
|
||||||
"($help -b --bridge)"{-b=,--bridge=}"[Attach containers to a network bridge]:bridge:_net_interfaces" \
|
"($help -b --bridge)"{-b=,--bridge=}"[Attach containers to a network bridge]:bridge:_net_interfaces" \
|
||||||
"($help)--bip=[Network bridge IP]:IP address: " \
|
"($help)--bip=[Network bridge IP]:IP address: " \
|
||||||
"($help)--cgroup-parent=[Parent cgroup for all containers]:cgroup: " \
|
"($help)--cgroup-parent=[Parent cgroup for all containers]:cgroup: " \
|
||||||
"($help)--cluster-advertise=[Address or interface name to advertise]:Instance to advertise (host\:port): " \
|
|
||||||
"($help)--cluster-store=[URL of the distributed storage backend]:Cluster Store:->cluster-store" \
|
|
||||||
"($help)*--cluster-store-opt=[Cluster store options]:Cluster options:->cluster-store-options" \
|
|
||||||
"($help)--config-file=[Path to daemon configuration file]:Config File:_files" \
|
"($help)--config-file=[Path to daemon configuration file]:Config File:_files" \
|
||||||
"($help)--containerd=[Path to containerd socket]:socket:_files -g \"*.sock\"" \
|
"($help)--containerd=[Path to containerd socket]:socket:_files -g \"*.sock\"" \
|
||||||
"($help)--containerd-namespace=[Containerd namespace to use]:containerd namespace:" \
|
"($help)--containerd-namespace=[Containerd namespace to use]:containerd namespace:" \
|
||||||
|
@ -2792,22 +2789,6 @@ __docker_subcommand() {
|
||||||
"($help)--validate[Validate daemon configuration and exit]" && ret=0
|
"($help)--validate[Validate daemon configuration and exit]" && ret=0
|
||||||
|
|
||||||
case $state in
|
case $state in
|
||||||
(cluster-store)
|
|
||||||
if compset -P '*://'; then
|
|
||||||
_message 'host:port' && ret=0
|
|
||||||
else
|
|
||||||
store=('consul' 'etcd' 'zk')
|
|
||||||
_describe -t cluster-store "Cluster Store" store -qS "://" && ret=0
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
(cluster-store-options)
|
|
||||||
if compset -P '*='; then
|
|
||||||
_files && ret=0
|
|
||||||
else
|
|
||||||
opts=('discovery.heartbeat' 'discovery.ttl' 'kv.cacertfile' 'kv.certfile' 'kv.keyfile' 'kv.path')
|
|
||||||
_describe -t cluster-store-opts "Cluster Store Options" opts -qS "=" && ret=0
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
(users-groups)
|
(users-groups)
|
||||||
if compset -P '*:'; then
|
if compset -P '*:'; then
|
||||||
_groups && ret=0
|
_groups && ret=0
|
||||||
|
|
Loading…
Reference in New Issue