Split implementations from generic code
This commit is contained in:
parent
d1e8a629ca
commit
ed9a416b01
107 changed files with 5777 additions and 3546 deletions
21
hack/e2e-internal/e2e-env.sh
Executable file
21
hack/e2e-internal/e2e-env.sh
Executable file
|
|
@ -0,0 +1,21 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
[[ $DEBUG ]] && set -x
|
||||
|
||||
export ETCD_VERSION=3.0.14
|
||||
export K8S_VERSION=1.4.5
|
||||
|
||||
export PWD=`pwd`
|
||||
export BASEDIR="$(dirname ${BASH_SOURCE})"
|
||||
export KUBECTL="${BASEDIR}/kubectl"
|
||||
export GOOS="${GOOS:-linux}"
|
||||
|
||||
if [ ! -e ${KUBECTL} ]; then
|
||||
echo "kubectl binary is missing. downloading..."
|
||||
curl -sSL http://storage.googleapis.com/kubernetes-release/release/v${K8S_VERSION}/bin/${GOOS}/amd64/kubectl -o ${KUBECTL}
|
||||
chmod u+x ${KUBECTL}
|
||||
fi
|
||||
|
||||
${KUBECTL} config set-cluster travis --server=http://0.0.0.0:8080
|
||||
${KUBECTL} config set-context travis --cluster=travis
|
||||
${KUBECTL} config use-context travis
|
||||
Loading…
Add table
Add a link
Reference in a new issue