...
1#!/usr/bin/env bash
2
3# Copyright 2015 The Kubernetes Authors.
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
17export KUBERNETES_PROVIDER="kubemark"
18export KUBE_CONFIG_FILE="config-default.sh"
19
20KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/../..
21
22# We need an absolute path to KUBE_ROOT
23ABSOLUTE_ROOT=$(readlink -f "${KUBE_ROOT}")
24
25source "${KUBE_ROOT}/cluster/kubemark/util.sh"
26
27echo "Kubemark master name: ${MASTER_NAME}"
28echo "Kubemark master ip: ${KUBE_MASTER_IP}"
29
30export KUBE_MASTER_URL="https://${KUBE_MASTER_IP}"
31export KUBECONFIG="${ABSOLUTE_ROOT}/test/kubemark/resources/kubeconfig.kubemark"
32export E2E_MIN_STARTUP_PODS=0
33
34ARGS=("$@")
35
36if [[ "${ENABLE_KUBEMARK_CLUSTER_AUTOSCALER}" == "true" ]]; then
37 ARGS+=("--kubemark-external-kubeconfig=${DEFAULT_KUBECONFIG}")
38fi
39
40# Running locally.
41for ((i=0; i < ${#ARGS[@]}; i++)); do
42 ARGS[i]="$(echo "${ARGS[$i]}" | sed -e 's/\[/\\\[/g' -e 's/\]/\\\]/g' )"
43done
44"${KUBE_ROOT}/hack/ginkgo-e2e.sh" "--e2e-verify-service-account=false" "--dump-logs-on-failure=false" "${ARGS[@]}"
View as plain text