mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Update after review comment
This commit is contained in:
parent
c33672b010
commit
ec9065f2c1
@ -2371,12 +2371,11 @@ function create-subnetworks() {
|
|||||||
|
|
||||||
# Look for the alias subnet, it must exist and have a secondary
|
# Look for the alias subnet, it must exist and have a secondary
|
||||||
# range configured.
|
# range configured.
|
||||||
# Deliberately declare and assign at the same time or the CI pipeline fails
|
local subnet
|
||||||
# shellcheck disable=SC2155
|
subnet=$(gcloud compute networks subnets describe \
|
||||||
local subnet=$(gcloud compute networks subnets describe \
|
|
||||||
--project "${NETWORK_PROJECT}" \
|
--project "${NETWORK_PROJECT}" \
|
||||||
--region ${REGION} \
|
--region ${REGION} \
|
||||||
${IP_ALIAS_SUBNETWORK} 2>/dev/null)
|
${IP_ALIAS_SUBNETWORK} 2>/dev/null || true)
|
||||||
if [[ -z ${subnet} ]]; then
|
if [[ -z ${subnet} ]]; then
|
||||||
echo "Creating subnet ${NETWORK}:${IP_ALIAS_SUBNETWORK}"
|
echo "Creating subnet ${NETWORK}:${IP_ALIAS_SUBNETWORK}"
|
||||||
gcloud compute networks subnets create \
|
gcloud compute networks subnets create \
|
||||||
|
Loading…
Reference in New Issue
Block a user