Merge pull request #21132 from petermd/kubeaddon-api-status

Auto commit by PR queue bot
pull/6/head
k8s-merge-robot 2016-02-16 02:57:17 -08:00
commit 4f3c89ce81
1 changed files with 6 additions and 0 deletions

View File

@ -349,6 +349,12 @@ function match-objects() {
new_files=""
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}")
log DB2 "addon_nsnames_on_server=${addon_nsnames_on_server}"