mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
Merge pull request #89664 from spiffxp/ignore-list-resources-fails
Allow list-resources.sh to continue if a resource fails to list
This commit is contained in:
commit
6a552da932
@ -75,6 +75,9 @@ echo "Provider: ${KUBERNETES_PROVIDER:-}"
|
||||
|
||||
# List resources related to instances, filtering by the instance prefix if
|
||||
# provided.
|
||||
|
||||
set +e # do not stop on error
|
||||
|
||||
gcloud-list compute instance-templates "name ~ '${INSTANCE_PREFIX}.*'"
|
||||
gcloud-list compute instance-groups "${ZONE:+"zone:(${ZONE}) AND "}name ~ '${INSTANCE_PREFIX}.*'"
|
||||
gcloud-list compute instances "${ZONE:+"zone:(${ZONE}) AND "}name ~ '${INSTANCE_PREFIX}.*'"
|
||||
@ -95,3 +98,5 @@ gcloud-list compute forwarding-rules ${REGION:+"region=(${REGION})"}
|
||||
gcloud-list compute target-pools ${REGION:+"region=(${REGION})"}
|
||||
|
||||
gcloud-list logging sinks
|
||||
|
||||
set -e
|
||||
|
Loading…
Reference in New Issue
Block a user