diff --git a/docs/assets/scripts/developer/k3d-dev.sh b/docs/assets/scripts/developer/k3d-dev.sh index 5c75ce99cde906801115f1ed6298ac981bb93348..0379a2ac0222a8c951e29040dbffe505bbc573e7 100755 --- a/docs/assets/scripts/developer/k3d-dev.sh +++ b/docs/assets/scripts/developer/k3d-dev.sh @@ -61,15 +61,18 @@ function process_arguments { case "$1" in -t|--project-tag) + echo "-t|--project-tag option passed to use additional tags on instance" shift PROJECTTAG=$1 ;; -b|--big-instance) + echo "-b|--big-instance option passed for big k3d cluster using M5 instance" BIG_INSTANCE=true ;; -p|--use-private-ip) + echo "-p|--use-private-ip option passed to create k3d cluster with private ip" if [[ "${ATTACH_SECONDARY_IP}" = false ]]; then PRIVATE_IP=true else @@ -78,28 +81,34 @@ function process_arguments { ;; -m|--use-metallb) + echo "-m option is deprecated (default behavior is to install and use metallb)" ;; -M|--disable-metallb) + echo "Disabling metalLB" METAL_LB=false ;; -a|--attach-secondary-public-ip) + echo "-a option passed to create secondary public IP (-p and -m flags are skipped if set)" PRIVATE_IP=false METAL_LB=false ATTACH_SECONDARY_IP=true ;; -d|--destroy-cloud-instance) + echo "-d option passed to destroy the AWS resources" action=destroy_instances ;; -i|--init-script) + echo "-i option passed to send init script to k3d instance" shift INIT_SCRIPT=$1 ;; -H|--existing-public-ip) + echo "-H option passed to use existing system public IP" shift PublicIP=$1 PROVISION_CLOUD_INSTANCE=false @@ -107,26 +116,31 @@ function process_arguments { ;; -P|--existing-private-ip) + echo "-P option passed to use existing system private IP" shift PrivateIP=$1 ;; -U|--ssh-username) + echo "-U option passed to provide username for connecting to existing system" shift SSHUSER=$1 ;; -k|--ssh-keyfile) + echo "-k option passed to provide SSH key for connecting to existing system" shift SSHKEY=$1 ;; -c|--cloud-provider) + echo "-c option passed to specify cloud provider" shift CLOUDPROVIDER=$1 ;; -T|--no-terminate) + echo "-T option passed to prevent instance termination" TERMINATE_INSTANCE=false ;; -q|--quiet) @@ -176,8 +190,6 @@ function process_arguments { echo " -T|--no-terminate Don't terminate the instance after" echo " 8 hours" echo " -q|--quiet suppress the final completion message" - echo " -I|--print-instructions Print the instructional message for the" - echo " instance described or discovered and exit" echo echo "========= These options override -c and use your own infrastructure =======" echo @@ -193,14 +205,11 @@ function process_arguments { echo " -h|--help output this help" exit 0 ;; - -I|--print-instructions) - action=print_instructions - ;; -K|--recreate-k3d) RESET_K3D=true ;; -R|--recreate-cloud-instance) - export CLOUD_RECREATE_INSTANCE=true + CLOUD_RECREATE_INSTANCE=true ;; -u|--update-cloud-instance) action=update_instances @@ -211,6 +220,7 @@ function process_arguments { ;; -w|--use-weave-cni) + echo "-w option passed to use Weave CNI" USE_WEAVE=true ;;