Commit 5a9f4666 authored by Lantao Liu's avatar Lantao Liu

Fix NPD preload.

parent 4c7141ca
...@@ -175,15 +175,15 @@ function install-node-problem-detector { ...@@ -175,15 +175,15 @@ function install-node-problem-detector {
local -r npd_version="${DEFAULT_NPD_VERSION}" local -r npd_version="${DEFAULT_NPD_VERSION}"
local -r npd_sha1="${DEFAULT_NPD_SHA1}" local -r npd_sha1="${DEFAULT_NPD_SHA1}"
fi fi
local -r npd_tar="node-problem-detector-${npd_version}.tar.gz"
if is-preloaded "node-problem-detector" "${npd_sha1}"; then if is-preloaded "${npd_tar}" "${npd_sha1}"; then
echo "node-problem-detector is preloaded." echo "node-problem-detector is preloaded."
return return
fi fi
echo "Downloading node problem detector." echo "Downloading node problem detector."
local -r npd_release_path="https://storage.googleapis.com/kubernetes-release" local -r npd_release_path="https://storage.googleapis.com/kubernetes-release"
local -r npd_tar="node-problem-detector-${npd_version}.tar.gz"
download-or-bust "${npd_sha1}" "${npd_release_path}/node-problem-detector/${npd_tar}" download-or-bust "${npd_sha1}" "${npd_release_path}/node-problem-detector/${npd_tar}"
local -r npd_dir="${KUBE_HOME}/node-problem-detector" local -r npd_dir="${KUBE_HOME}/node-problem-detector"
mkdir -p "${npd_dir}" mkdir -p "${npd_dir}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment