Merge pull request #8902 from brendandburns/fix

Turn off certificate checking for Mavericks, as the curl is borked.
This commit is contained in:
Tim Hockin 2015-05-28 15:32:50 -07:00
commit 2c20c3664c

View File

@ -670,8 +670,18 @@ function kube-up {
echo " up."
echo
# curl in mavericks is borked.
secure=""
if which sw_vers > /dev/null; then
if [[ $(sw_vers | grep ProductVersion | awk '{print $2}') = "10.9."* ]]; then
secure="--insecure"
fi
fi
until curl --cacert "${CERT_DIR}/pki/ca.crt" \
-H "Authorization: Bearer ${KUBE_BEARER_TOKEN}" \
${secure} \
--max-time 5 --fail --output /dev/null --silent \
"https://${KUBE_MASTER_IP}/api/v1beta3/pods"; do
printf "."