Skip to content

Commit d681a04

Browse files
committed
Force LICENSES refresh on GCE images
Some test images have it baked in.
1 parent 9b44fa4 commit d681a04

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cluster/gce/gci/configure.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,9 @@ function install-kube-binary-config {
573573
mv "${src_dir}/kubelet" "${KUBE_BIN}"
574574
mv "${src_dir}/kubectl" "${KUBE_BIN}"
575575

576+
# Some older images have LICENSES baked-in as a file. Presumably they will
577+
# have the directory baked-in eventually.
578+
rm -rf "${KUBE_HOME}"/LICENSES
576579
mv "${KUBE_HOME}/kubernetes/LICENSES" "${KUBE_HOME}"
577580
mv "${KUBE_HOME}/kubernetes/kubernetes-src.tar.gz" "${KUBE_HOME}"
578581
fi

0 commit comments

Comments
 (0)