X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=ci%2Fk8.sh;fp=ci%2Fk8.sh;h=40e8eb8fcaf82756cc03814e18a2ab5c0bd0272d;hb=976a5aa1011379c4a82b13f8dde4b76cbec1ba16;hp=2b901d7e37d672abff325d06e0462d096a4b9d08;hpb=50695387dfff29897a1b6c4c9442f786a4bc4398;p=joid.git diff --git a/ci/k8.sh b/ci/k8.sh index 2b901d7e..40e8eb8f 100755 --- a/ci/k8.sh +++ b/ci/k8.sh @@ -5,15 +5,13 @@ opnfvfeature=$1 juju scp kubernetes-master/0:/home/ubuntu/config ~/joid_config/config -export KUBECONFIG=~/joid_config/config -export KUBERNETES_PROVIDER=local export KUBE_MASTER_IP=`juju status kubernetes-master --format=yaml | grep public-address | cut -d ":" -f 2 | head -1 | sed "s/^[ \t]*//g"` export KUBE_MASTER_URL=http://${KUBE_MASTER_IP}:6443 configk8(){ cat <<-EOF -export KUBECONFIG=${KUBECONFIG} -export KUBERNETES_PROVIDER=${KUBERNETES_PROVIDER} +export KUBECONFIG=~/joid_config/config +export KUBERNETES_PROVIDER=local export KUBE_MASTER_IP=${KUBE_MASTER_IP} export KUBE_MASTER_URL=${KUBE_MASTER_URL} EOF