mirror of https://github.com/k3s-io/k3s
Merge pull request #60801 from jingax10/gce_util_branch
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Suppress error message from grep when checking whether a subnet has a secondary range or not. **What this PR does / why we need it**: Get rid of stdrr caused by grep command when running cluster/kube-up.sh for GCE. **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes # N/A **Special notes for your reviewer**: No behavior change. **Release note**: ```release-note "NONE" ```pull/8/head
commit
e3af2374a6
|
@ -1750,7 +1750,7 @@ function create-subnetworks() {
|
|||
--secondary-range "services-default=${SERVICE_CLUSTER_IP_RANGE}"
|
||||
echo "Created subnetwork ${IP_ALIAS_SUBNETWORK}"
|
||||
else
|
||||
if ! echo ${subnet} | grep --quiet secondaryIpRanges ${subnet}; then
|
||||
if ! echo ${subnet} | grep --quiet secondaryIpRanges; then
|
||||
echo "${color_red}Subnet ${IP_ALIAS_SUBNETWORK} does not have a secondary range${color_norm}"
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue