diff --git a/hack/e2e-suite/services.sh b/hack/e2e-suite/services.sh index 2ccb2a4bf3c..b517c49f863 100755 --- a/hack/e2e-suite/services.sh +++ b/hack/e2e-suite/services.sh @@ -64,6 +64,19 @@ function do_teardown() { ${KUBECTL} delete namespace "${NAMESPACE}" } +function make_namespace() { + echo "Making namespace '${NAMESPACE}'" + ${KUBECTL} create -f - << __EOF__ +{ + "kind": "Namespace", + "apiVersion": "v1beta3", + "metadata": { + "name": "${NAMESPACE}" + } +} +__EOF__ +} + # Args: # $1: service name # $2: service port @@ -292,6 +305,9 @@ detect-minions test_node="${MINION_NAMES[0]}" master="${MASTER_NAME}" +# Make our namespace +make_namespace + # Launch some pods and services. svc1_name="service1" svc1_port=80