Skip to content

Commit

Permalink
Pin python and pip to v2 version
Browse files Browse the repository at this point in the history
Otherwise, in the newer kubekins versions pip points to pip3 while python points to python2. It results in setup errors and test failures

Fixes kubernetes/kubernetes#94473
  • Loading branch information
mm4tt committed Sep 7, 2020
1 parent a138c61 commit 1a87854
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dns/run
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ outDir=${2:-"out"}
nodeLocalIP=${4:-"169.254.20.10"}
mkdir -p ${outDir}

pip install numpy
pip2 install numpy

case "$1" in
kube-dns )
python py/run_perf.py --params params/kubedns/default.yaml --out-dir ${outDir} --use-cluster-dns
python2 py/run_perf.py --params params/kubedns/default.yaml --out-dir ${outDir} --use-cluster-dns
;;
core-dns )
python py/run_perf.py --params params/coredns/default.yaml --out-dir ${outDir} --use-cluster-dns
python2 py/run_perf.py --params params/coredns/default.yaml --out-dir ${outDir} --use-cluster-dns
;;
node-local-dns )
python py/run_perf.py --params params/nodelocaldns/default.yaml --out-dir ${outDir} --nodecache-ip ${nodeLocalIP}
python2 py/run_perf.py --params params/nodelocaldns/default.yaml --out-dir ${outDir} --nodecache-ip ${nodeLocalIP}
;;
esac

Expand Down

0 comments on commit 1a87854

Please sign in to comment.