mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 08:17:26 +00:00
Merge pull request #8902 from brendandburns/fix
Turn off certificate checking for Mavericks, as the curl is borked.
This commit is contained in:
commit
2c20c3664c
@ -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 "."
|
||||
|
Loading…
Reference in New Issue
Block a user