Merge pull request #90998 from thockin/fix_license_again_again

Force LICENSES refresh on GCE images
This commit is contained in:
Kubernetes Prow Robot
2020-05-12 00:08:21 -07:00
committed by GitHub

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