DNS add option for display target machine info 82/103582/1
authorLucjan Bryndza <l.bryndza@samsung.com>
Thu, 12 Mar 2020 09:02:56 +0000 (10:02 +0100)
committerLucjan Bryndza <l.bryndza@samsung.com>
Thu, 12 Mar 2020 09:02:56 +0000 (10:02 +0100)
Add info option for displaying target machine
configuration manual when DNS server is already
deployed on the cluster

Signed-off-by: Lucjan Bryndza <l.bryndza@samsung.com>
Issue-ID: OOM-2289
Change-Id: Ia876fd9ee51fbe852fae2f9daf8f769ff32efe46

kubernetes/contrib/dns-server-for-vhost-ingress-testing/deploy_dns.sh

index a78bc07..81533b9 100755 (executable)
@@ -26,6 +26,8 @@ cat << ==usage
 $0 [cluster_domain] [helm_chart_args ...]
        [cluster_domain] Default value simpledemo.onap.org
        [helm_chart_args...] Optional arguments passed to helm install command
+$0 --help This message
+$0 --info Display howto configure target machine
 ==usage
 }
 
@@ -57,6 +59,8 @@ deploy() {
 
 if [[ $# -eq 1 ]] && [[ $1 == "-h" || $1 == "--help" ]]; then
        usage
+elif [[ $# -eq 1 ]] && [[ $1 == "--info" ]]; then
+       target_machine_notice_info
 else
        deploy $@
 fi