mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
Merge pull request #8808 from fgrzadkowski/fix_warnings
Fix WARNING during kube-push.sh
This commit is contained in:
commit
e2c4a01b60
@ -406,7 +406,7 @@ function create-node-template {
|
|||||||
--network "${NETWORK}" \
|
--network "${NETWORK}" \
|
||||||
$2 \
|
$2 \
|
||||||
--can-ip-forward \
|
--can-ip-forward \
|
||||||
--metadata-from-file "$3" "$4"; then
|
--metadata-from-file "$3","$4"; then
|
||||||
if (( attempt > 5 )); then
|
if (( attempt > 5 )); then
|
||||||
echo -e "${color_red}Failed to create instance template $1 ${color_norm}" >&2
|
echo -e "${color_red}Failed to create instance template $1 ${color_norm}" >&2
|
||||||
exit 2
|
exit 2
|
||||||
@ -459,7 +459,7 @@ function add-instance-metadata-from-file {
|
|||||||
if ! gcloud compute instances add-metadata "${instance}" \
|
if ! gcloud compute instances add-metadata "${instance}" \
|
||||||
--project "${PROJECT}" \
|
--project "${PROJECT}" \
|
||||||
--zone "${ZONE}" \
|
--zone "${ZONE}" \
|
||||||
--metadata-from-file "${kvs[@]}"; then
|
--metadata-from-file $(IFS=, ; echo "${kvs[*]}"); then
|
||||||
if (( attempt > 5 )); then
|
if (( attempt > 5 )); then
|
||||||
echo -e "${color_red}Failed to add instance metadata in ${instance} ${color_norm}"
|
echo -e "${color_red}Failed to add instance metadata in ${instance} ${color_norm}"
|
||||||
exit 2
|
exit 2
|
||||||
|
Loading…
Reference in New Issue
Block a user