cluster/update-storage-objects.sh: Fix to ignore deleted objects

This commit is contained in:
Kazuki Suda
2018-03-22 14:47:33 +09:00
parent cba7843cb4
commit e0237315f5

View File

@@ -104,7 +104,8 @@ do
# This happens when the instance has been deleted. We can hence ignore # This happens when the instance has been deleted. We can hence ignore
# this instance. # this instance.
echo "Looks like ${instance} got deleted. Ignoring it" echo "Looks like ${instance} got deleted. Ignoring it"
continue success=1
break
fi fi
output=$("${KUBECTL}" replace -f "${filename}" --namespace="${namespace}") || true output=$("${KUBECTL}" replace -f "${filename}" --namespace="${namespace}") || true
rm "${filename}" rm "${filename}"