mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
fix SC2267 GNU xargs -i is deprecated in favor of -I{} in cluster/gce/util.sh
see: https://www.shellcheck.net/wiki/SC2267
This commit is contained in:
parent
95d08c58e3
commit
4c7189f54b
@ -2631,7 +2631,7 @@ function delete-subnetworks() {
|
|||||||
# This value should be kept in sync with number of regions.
|
# This value should be kept in sync with number of regions.
|
||||||
local parallelism=9
|
local parallelism=9
|
||||||
gcloud compute networks subnets list --network="${NETWORK}" --project "${NETWORK_PROJECT}" --format='value(region.basename())' | \
|
gcloud compute networks subnets list --network="${NETWORK}" --project "${NETWORK_PROJECT}" --format='value(region.basename())' | \
|
||||||
xargs -i -P ${parallelism} gcloud --quiet compute networks subnets delete "${NETWORK}" --project "${NETWORK_PROJECT}" --region="{}" || true
|
xargs -I {} -P ${parallelism} gcloud --quiet compute networks subnets delete "${NETWORK}" --project "${NETWORK_PROJECT}" --region="{}" || true
|
||||||
elif [[ "${CREATE_CUSTOM_NETWORK:-}" == "true" ]]; then
|
elif [[ "${CREATE_CUSTOM_NETWORK:-}" == "true" ]]; then
|
||||||
echo "Deleting custom subnet..."
|
echo "Deleting custom subnet..."
|
||||||
gcloud --quiet compute networks subnets delete "${SUBNETWORK}" --project "${NETWORK_PROJECT}" --region="${REGION}" || true
|
gcloud --quiet compute networks subnets delete "${SUBNETWORK}" --project "${NETWORK_PROJECT}" --region="${REGION}" || true
|
||||||
|
Loading…
Reference in New Issue
Block a user