From b9b7305e54e6db25c4666f4cea916e923d9ea49a Mon Sep 17 00:00:00 2001 From: Jose Carlos Venegas Munoz Date: Thu, 23 May 2019 19:31:03 +0000 Subject: [PATCH] create_stack: Add init and cni subcommands Add more subcommands to to increase granularity init: start cluster cni: setup network This functionality already existed, we only handle subcommands in a more dynamic way. Fixes: #92 Signed-off-by: Jose Carlos Venegas Munoz --- clr-k8s-examples/create_stack.sh | 49 +++++++++++++++++++++----------- 1 file changed, 33 insertions(+), 16 deletions(-) diff --git a/clr-k8s-examples/create_stack.sh b/clr-k8s-examples/create_stack.sh index ffd811f6..61a0993a 100755 --- a/clr-k8s-examples/create_stack.sh +++ b/clr-k8s-examples/create_stack.sh @@ -8,8 +8,19 @@ CUR_DIR=$(pwd) SCRIPT_DIR="$(dirname "${BASH_SOURCE[0]}")" function print_usage_exit() { - echo $"Usage: $0 [minimal|all]" - exit 1 + exit_code=${1:-0} + cat <