Unverified Commit 5de7d827 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Remove uses from setup script

parent 38c0ebdd
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -2,14 +2,12 @@
set -eu

USAGE="Usage:
$0 [-h] [-i INTERFACE] [-d DOMAIN] [-t TOKEN] [-u <control|gateway>] [--skip-upgrade]
$0 [-h] [-i INTERFACE] [-d DOMAIN] [-t TOKEN] [--skip-upgrade]

-h|--help       Show this usage and exit
-i|--interface  Use the first address of INTERFACE as a API advertisement address
-d|--domain     Use DOMAIN as the control plane nodes' shared DNS name
-t|--token      Join a cluster using TOKEN
-u|--use        Configure the node for the comma separated uses. 
                Choices out of: control, gateway
--skip-upgrade  Skip the package manager upgrades step
"

@@ -30,7 +28,6 @@ while let $#; do
		-i|--interface) INTERFACE=$2; shift ;;
		-d|--domain) API_DOMAIN=$2; shift ;;
		-t|--token) TOKEN=$2; shift ;;
		-u|--use) split uses "$2"; shift ;;
		--skip-upgrade) SKIP_UPGRADE=true ;;
	esac
	shift
@@ -100,5 +97,4 @@ else
	kubeadm init "${kubeadm_args[@]}"
	export KUBECONFIG=/etc/kubernetes/admin.conf
	kubectl kustomize --enable-helm . | kubectl apply -f-
	uses+=(control)
fi