We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72e5ceb commit cf26fd1Copy full SHA for cf26fd1
cf-deploy-kubernetes.sh
@@ -38,9 +38,9 @@ else
38
fi
39
40
#check the cluster version and decide which version of kubectl to use:
41
-SERVER_VERSION=$(kubectl version --short=true | grep -i server | cut -c18-20 | tr -d .)
+SERVER_VERSION=$(kubectl version --short=true --context "${KUBECONTEXT}" | grep -i server | cut -c18-20 | tr -d .)
42
43
-if (( "$SERVER_VERSION" <= "16" )); then mv /usr/local/bin/kubectl1.6 /usr/local/bin/kubectl; fi
+if (( "$SERVER_VERSION" <= "16" )); then mv /usr/local/bin/kubectl1.6 /usr/local/bin/kubectl; fi 2>/dev/null
44
45
46
[ ! -f "${deployment_file}" ] && echo "Couldn't find $deployment_file file at $(pwd)" && exit 1;
0 commit comments