Skip to content
This repository was archived by the owner on May 18, 2020. It is now read-only.

Commit 53f6491

Browse files
committed
chore(tests): updating Minikube and Kubernetes verions
Signed-off-by: subnetmarco <[email protected]>
1 parent b62b7e1 commit 53f6491

File tree

4 files changed

+22
-22
lines changed

4 files changed

+22
-22
lines changed

.travis.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
dist: trusty
1+
dist: xenial
22
sudo: required
33

44
language: java
55
jdk:
6-
- oraclejdk8
6+
- openjdk8
77

88
services:
99
- docker
1010

1111
before_install:
12-
# install nsenter which is required for port forwarding
12+
# install conntrack which is required for minikube
13+
- sudo apt-get -qq -y install conntrack
14+
# install nsenter which is required for port forwarding
1315
- travis/ubuntu-compile-nsenter.sh && sudo cp $HOME/nsenter/util-linux-2.30.2/nsenter /usr/bin
1416
- travis/install-start-minikube.sh && export PATH=`pwd`:${PATH} # set minikube and kubectl to PATH
1517
- kubectl get all --all-namespaces

all-in-one/jaeger-all-in-one-template.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright 2017-2019 The Jaeger Authors
2+
# Copyright 2017-2020 The Jaeger Authors
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
55
# in compliance with the License. You may obtain a copy of the License at

jaeger-production-template.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright 2017-2019 The Jaeger Authors
2+
# Copyright 2017-2020 The Jaeger Authors
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
55
# in compliance with the License. You may obtain a copy of the License at

travis/install-start-minikube.sh

+15-17
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
#
3-
# Copyright 2017-2018 The Jaeger Authors
3+
# Copyright 2017-2020 The Jaeger Authors
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
66
# in compliance with the License. You may obtain a copy of the License at
@@ -13,25 +13,23 @@
1313
# the License.
1414
#
1515

16-
curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.25.0/minikube-linux-amd64 && chmod +x minikube
17-
curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.9.0/bin/linux/amd64/kubectl && chmod +x kubectl
18-
16+
export CHANGE_MINIKUBE_NONE_USER=true
1917
export MINIKUBE_WANTUPDATENOTIFICATION=false
2018
export MINIKUBE_WANTREPORTERRORPROMPT=false
2119
export MINIKUBE_HOME=$HOME
2220
export CHANGE_MINIKUBE_NONE_USER=true
23-
mkdir $HOME/.kube || true
24-
touch $HOME/.kube/config
25-
2621
export KUBECONFIG=$HOME/.kube/config
27-
sudo -E ./minikube start --vm-driver=none
2822

29-
# this for loop waits until kubectl can access the api server that minikube has created
30-
for i in {1..150} # timeout for 5 minutes
31-
do
32-
./kubectl get po &> /dev/null
33-
if [ $? -ne 1 ]; then
34-
break
35-
fi
36-
sleep 2
37-
done
23+
curl -Lo minikube https://storage.googleapis.com/minikube/releases/v1.8.1/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
24+
curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.18.1/bin/linux/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
25+
26+
mkdir -p $HOME/.kube $HOME/.minikube
27+
touch $KUBECONFIG
28+
29+
sudo minikube start --profile=minikube --vm-driver=none --kubernetes-version=v1.18.1
30+
minikube update-context --profile=minikube
31+
32+
eval "$(minikube docker-env --profile=minikube)" && export DOCKER_CLI='docker'
33+
34+
# Wait for kube-dns to be ready.
35+
JSONPATH='{range .items[*]}{@.metadata.name}:{range @.status.conditions[*]}{@.type}={@.status};{end}{end}'; until kubectl -n kube-system get pods -lk8s-app=kube-dns -o jsonpath="$JSONPATH" 2>&1 | grep -q "Ready=True"; do sleep 1;echo "waiting for kube-dns to be available"; kubectl get pods --all-namespaces; done

0 commit comments

Comments
 (0)