mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Merge pull request #76655 from SataQiu/fix-shell-cluster-20190417
Fix shellcheck failures of cluster/gce/gci/shutdown.sh
This commit is contained in:
commit
2c2e7a01bb
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
# A script that let's gci preemptible nodes gracefully terminate in the event of a VM shutdown.
|
# A script that let's gci preemptible nodes gracefully terminate in the event of a VM shutdown.
|
||||||
preemptible=$(curl "http://metadata.google.internal/computeMetadata/v1/instance/scheduling/preemptible" -H "Metadata-Flavor: Google")
|
preemptible=$(curl "http://metadata.google.internal/computeMetadata/v1/instance/scheduling/preemptible" -H "Metadata-Flavor: Google")
|
||||||
if [ ${preemptible} == "TRUE" ]; then
|
if [ "${preemptible}" == "TRUE" ]; then
|
||||||
echo "Shutting down! Sleeping for a minute to let the node gracefully terminate"
|
echo "Shutting down! Sleeping for a minute to let the node gracefully terminate"
|
||||||
# https://cloud.google.com/compute/docs/instances/stopping-or-deleting-an-instance#delete_timeout
|
# https://cloud.google.com/compute/docs/instances/stopping-or-deleting-an-instance#delete_timeout
|
||||||
sleep 30
|
sleep 30
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
./cluster/gce/gci/flexvolume_node_setup.sh
|
./cluster/gce/gci/flexvolume_node_setup.sh
|
||||||
./cluster/gce/gci/health-monitor.sh
|
./cluster/gce/gci/health-monitor.sh
|
||||||
./cluster/gce/gci/master-helper.sh
|
./cluster/gce/gci/master-helper.sh
|
||||||
./cluster/gce/gci/shutdown.sh
|
|
||||||
./cluster/gce/list-resources.sh
|
./cluster/gce/list-resources.sh
|
||||||
./cluster/gce/upgrade-aliases.sh
|
./cluster/gce/upgrade-aliases.sh
|
||||||
./cluster/gce/upgrade.sh
|
./cluster/gce/upgrade.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user