Merge pull request #1780 from weaveworks/1748-no-with-dns
Remove WITH_DNS variable from weave script
This commit is contained in:
commit
7015ab8717
3 files changed
+3
-6
No files matched your search
@@ -27,6 +27,5 @@ start_container $HOST1 $TARGET_IP/24 --name c2 -h $TARGET
|
|||||||
|
|
||||||
check_dns assert_no_dns_record --without-dns
|
check_dns assert_no_dns_record --without-dns
|
||||||
check_dns assert_dns_record
|
check_dns assert_dns_record
|
||||||
check_dns assert_dns_record --with-dns
|
|
||||||
|
|
||||||
end_suite
|
end_suite
|
||||||
+1
-1
@@ -151,7 +151,7 @@ start_container() {
|
|||||||
start_container_with_dns() {
|
start_container_with_dns() {
|
||||||
host=$1
|
host=$1
|
||||||
shift 1
|
shift 1
|
||||||
weave_on $host run --with-dns "$@" -t $DNS_IMAGE /bin/sh
|
weave_on $host run "$@" -t $DNS_IMAGE /bin/sh
|
||||||
}
|
}
|
||||||
|
|
||||||
start_container_local_plugin() {
|
start_container_local_plugin() {
|
||||||
|
|||||||
@@ -62,8 +62,7 @@ weave connect [--replace] [<peer> ...]
|
|||||||
weave forget <peer> ...
|
weave forget <peer> ...
|
||||||
weave status [targets | connections | peers | dns]
|
weave status [targets | connections | peers | dns]
|
||||||
weave report [-f <format>]
|
weave report [-f <format>]
|
||||||
weave run [--with-dns | --without-dns]
|
weave run [--without-dns] [--no-rewrite-hosts] [--no-multicast-route]
|
||||||
[--no-rewrite-hosts] [--no-multicast-route]
|
|
||||||
[<addr> ...] <docker run args> ...
|
[<addr> ...] <docker run args> ...
|
||||||
weave start [<addr> ...] <container_id>
|
weave start [<addr> ...] <container_id>
|
||||||
weave attach [<addr> ...] <container_id>
|
weave attach [<addr> ...] <container_id>
|
||||||
@@ -1094,12 +1093,11 @@ dns_args() {
|
|||||||
NAME_ARG=""
|
NAME_ARG=""
|
||||||
HOSTNAME_SPECIFIED=
|
HOSTNAME_SPECIFIED=
|
||||||
DNS_SEARCH_SPECIFIED=
|
DNS_SEARCH_SPECIFIED=
|
||||||
WITH_DNS=
|
|
||||||
WITHOUT_DNS=
|
WITHOUT_DNS=
|
||||||
while [ $# -gt 0 ] ; do
|
while [ $# -gt 0 ] ; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
--with-dns)
|
--with-dns)
|
||||||
WITH_DNS=1
|
echo "Warning: $1 is deprecated; it is on by default" >&2
|
||||||
;;
|
;;
|
||||||
--without-dns)
|
--without-dns)
|
||||||
WITHOUT_DNS=1
|
WITHOUT_DNS=1
|
||||||
|
|||||||
Reference in new issue
Block a user