mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-15 06:43:54 +00:00
Add -s (--slient) option to curl.
This commit is contained in:
parent
8dbe48652d
commit
ba577bb5dd
@ -84,7 +84,7 @@ function set-allow-subnet-cidr-routes-overlap() {
|
|||||||
local access_token=$(gcloud auth print-access-token)
|
local access_token=$(gcloud auth print-access-token)
|
||||||
local request="{\"allowSubnetCidrRoutesOverlap\":$1, \"fingerprint\":\"${fingerprint}\"}"
|
local request="{\"allowSubnetCidrRoutesOverlap\":$1, \"fingerprint\":\"${fingerprint}\"}"
|
||||||
local subnetwork_url="${GCE_API_ENDPOINT}projects/${PROJECT}/regions/${REGION}/subnetworks/${IP_ALIAS_SUBNETWORK}"
|
local subnetwork_url="${GCE_API_ENDPOINT}projects/${PROJECT}/regions/${REGION}/subnetworks/${IP_ALIAS_SUBNETWORK}"
|
||||||
until curl --header "Content-Type: application/json" --header "Authorization: Bearer ${access_token}" \
|
until curl -s --header "Content-Type: application/json" --header "Authorization: Bearer ${access_token}" \
|
||||||
-X PATCH -d "${request}" "${subnetwork_url}" --output /dev/null; do
|
-X PATCH -d "${request}" "${subnetwork_url}" --output /dev/null; do
|
||||||
printf "."
|
printf "."
|
||||||
sleep 1
|
sleep 1
|
||||||
|
Loading…
Reference in New Issue
Block a user