Merge pull request #2202 from mickymiek/integrations-tests-k8s1.12

Add Kubernetes 1.12 to Jenkins tests
This commit is contained in:
Travis Nielsen
2018-10-10 14:00:16 -06:00
committed by GitHub
2 changed files with 12 additions and 5 deletions
Vendored
+2 -1
View File
@@ -71,7 +71,8 @@ pipeline {
"aws_1.8.x": "v1.8.5",
"gce_1.9.x": "v1.9.9",
"aws_1.10.x": "v1.10.5",
"aws_1.11.x": "v1.11.1"
"aws_1.11.x": "v1.11.1",
"aws_1.12.x": "v1.12.0"
]
testruns = [:]
for (kv in mapToList(data)) {
+10 -4
View File
@@ -7,6 +7,12 @@ tarfile="${WORK_DIR}/tests/${tarname}"
export KUBE_VERSION=${KUBE_VERSION:-"v1.8.5"}
if [[ $KUBE_VERSION == v1.12* ]] ; then
skippreflightcheck=--ignore-preflight-errors=all
else
skippreflightcheck=--skip-preflight-checks
fi
usage(){
echo "usage:" >&2
echo " $0 up " >&2
@@ -28,7 +34,7 @@ EOF
sudo systemctl daemon-reload
fi
sudo kubeadm init --skip-preflight-checks --kubernetes-version ${KUBE_VERSION}
sudo kubeadm init $skippreflightcheck --kubernetes-version ${KUBE_VERSION}
sudo cp /etc/kubernetes/admin.conf $HOME/
sudo chown $(id -u):$(id -g) $HOME/admin.conf
@@ -70,8 +76,8 @@ EOF
sudo systemctl daemon-reload
fi
echo "kubeadm join ${1} ${2} ${3} ${4} ${5} --skip-preflight-checks"
sudo kubeadm join ${1} ${2} ${3} ${4} ${5} --skip-preflight-checks || true
echo "kubeadm join ${1} ${2} ${3} ${4} ${5} $skippreflightcheck"
sudo kubeadm join ${1} ${2} ${3} ${4} ${5} $skippreflightcheck || true
}
#wait for all nodes in the cluster to be ready status
@@ -112,7 +118,7 @@ wait_for_ready(){
kubeadm_reset() {
kubectl delete -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')"
sudo kubeadm reset --skip-preflight-checks
sudo kubeadm reset $skippreflightcheck
sudo rm /usr/local/bin/kube*
sudo rm kubectl
rm $HOME/admin.conf