Force LICENSES refresh on GCE images

Some test images have it baked in.
This commit is contained in:
Tim Hockin 2020-05-11 14:24:41 -07:00
parent 9b44fa4a07
commit d681a04541

View File

@ -573,6 +573,9 @@ function install-kube-binary-config {
mv "${src_dir}/kubelet" "${KUBE_BIN}"
mv "${src_dir}/kubectl" "${KUBE_BIN}"
# Some older images have LICENSES baked-in as a file. Presumably they will
# have the directory baked-in eventually.
rm -rf "${KUBE_HOME}"/LICENSES
mv "${KUBE_HOME}/kubernetes/LICENSES" "${KUBE_HOME}"
mv "${KUBE_HOME}/kubernetes/kubernetes-src.tar.gz" "${KUBE_HOME}"
fi