File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 72
72
SERVER_VERSION=$( kubectl version --short=true --context " ${KUBECONTEXT} " | grep -i server | cut -d ' :' -f2 | cut -d ' .' -f2 | sed ' s/[^0-9]*//g' )
73
73
echo " Server minor version: $SERVER_VERSION "
74
74
if (( "$SERVER_VERSION " <= "6 " )) ; then cp -f /usr/local/bin/kubectl1.6 /usr/local/bin/kubectl; fi 2> /dev/null
75
+ if (( "$SERVER_VERSION " == "11 " )) ; then cp -f /usr/local/bin/kubectl1.11 /usr/local/bin/kubectl; fi 2> /dev/null
76
+ if (( "$SERVER_VERSION " == "12 " )) ; then cp -f /usr/local/bin/kubectl1.12 /usr/local/bin/kubectl; fi 2> /dev/null
77
+ if (( "$SERVER_VERSION " == "13 " )) ; then cp -f /usr/local/bin/kubectl1.13 /usr/local/bin/kubectl; fi 2> /dev/null
75
78
if (( "$SERVER_VERSION " == "14 " )) ; then cp -f /usr/local/bin/kubectl1.14 /usr/local/bin/kubectl; fi 2> /dev/null
76
79
if (( "$SERVER_VERSION " >= "15 " )) ; then cp -f /usr/local/bin/kubectl1.15 /usr/local/bin/kubectl; fi 2> /dev/null
77
80
[ ! -f " ${deployment_file} " ] && echo " Couldn't find $deployment_file file at $( pwd) " && exit 1;
You can’t perform that action at this time.
0 commit comments