mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
exit if unable to query status from apiserver
This commit is contained in:
parent
63ec304e42
commit
4d4f1c645c
@ -349,6 +349,12 @@ function match-objects() {
|
|||||||
new_files=""
|
new_files=""
|
||||||
|
|
||||||
addon_nsnames_on_server=$(get-addon-nsnames-from-server "${obj_type}")
|
addon_nsnames_on_server=$(get-addon-nsnames-from-server "${obj_type}")
|
||||||
|
# if the api server is unavailable then abandon the update for this cycle
|
||||||
|
if [[ $? -ne 0 ]]; then
|
||||||
|
log ERR "unable to query ${obj_type} - exiting"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
addon_paths_in_files=$(get-addon-paths-from-disk "${addon_dir}" "${obj_type}")
|
addon_paths_in_files=$(get-addon-paths-from-disk "${addon_dir}" "${obj_type}")
|
||||||
|
|
||||||
log DB2 "addon_nsnames_on_server=${addon_nsnames_on_server}"
|
log DB2 "addon_nsnames_on_server=${addon_nsnames_on_server}"
|
||||||
|
Loading…
Reference in New Issue
Block a user