Add --proxy option to enable/disable proxy.
Weave Net initially had the ability to start a single component at a time with `launch-proxy` and `launch-router`. This change enables this again via `--proxy=false` despite the merge of the proxy and the router. Note that by default: - `launch` passes `--proxy` which enables the proxy and keeps behaviour consistent with `launch` pre-merge, - `weaver` defaults `--proxy` to `false` which disables the proxy and keeps behaviour consistent with `weaver` pre-merge (as it was `weaveproxy`'s responsibility).
This commit is contained in:
1 parent
2c7693b2c5
commit
5cf973f03a
3 files changed
+16
-11
No files matched your search
@@ -48,7 +48,7 @@ weave launch [--password <pass>] [--trusted-subnets <cidr>,...]
|
||||
[--no-restart] [--resume] [--no-discovery] [--no-dns]
|
||||
[--ipalloc-init <mode>]
|
||||
[--ipalloc-range <cidr> [--ipalloc-default-subnet <cidr>]]
|
||||
[--plugin]
|
||||
[--plugin=false] [--proxy=false]
|
||||
[-H <endpoint>] [--without-dns] [--no-multicast-route]
|
||||
[--no-rewrite-hosts] [--no-default-ipalloc]
|
||||
[--hostname-from-label <labelkey>]
|
||||
@@ -1509,7 +1509,8 @@ EOF
|
||||
deprecation_warnings "$@"
|
||||
check_not_running router $CONTAINER_NAME $BASE_IMAGE
|
||||
check_not_running_plugin_v2
|
||||
launch --plugin "$@"
|
||||
# Plugin and proxy are started by default. Should users additionally pass --plugin=false or --proxy=false, their overrides will take precedence when parsed by Go.
|
||||
launch --plugin --proxy "$@"
|
||||
echo "$WEAVE_CONTAINER"
|
||||
;;
|
||||
env)
|
||||
|
||||
Reference in new issue
Block a user