mirror of
https://github.com/coredns/coredns.git
synced 2025-12-20 09:05:14 -05:00
kubernetes: hide contrib (#320)
This is purely travis (and maybe local testing). Does not warrent (IMHO) a contrib/ directory. Hide it in a .travis directory.
This commit is contained in:
23
.travis/kubernetes/10_setup_kubectl.sh
Executable file
23
.travis/kubernetes/10_setup_kubectl.sh
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
PWD=`pwd`
|
||||
BASEDIR=`readlink -e $(dirname ${0})`
|
||||
|
||||
cd ${BASEDIR}
|
||||
|
||||
echo "Setting up kubectl..."
|
||||
|
||||
if [ ! -e kubectl ]; then
|
||||
curl -O http://storage.googleapis.com/kubernetes-release/release/v1.3.7/bin/linux/amd64/kubectl
|
||||
chmod u+x kubectl
|
||||
fi
|
||||
|
||||
${BASEDIR}/kubectl config set-cluster test-doc --server=http://localhost:8080
|
||||
${BASEDIR}/kubectl config set-context test-doc --cluster=test-doc
|
||||
${BASEDIR}/kubectl config use-context test-doc
|
||||
|
||||
cd ${PWD}
|
||||
|
||||
alias kubctl="${BASEDIR}/kubectl"
|
||||
Reference in New Issue
Block a user