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
commit 1cad79ee2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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