5 ARCHITECTURES="arm arm64 amd64 ppc64le"
6 DOWNLOADS="kubelet kubectl kubeadm"
7 DOWNLOAD_DIR="tmp/kubeadm_hasher"
9 if [ -z "$VERSIONS" ]; then
10 echo "USAGE: $0 <versions>"
14 mkdir -p ${DOWNLOAD_DIR}
15 for download in ${DOWNLOADS}; do
16 echo -e "\n\n${download}_checksums:"
17 for arch in ${ARCHITECTURES}; do
19 for version in ${VERSIONS}; do
20 TARGET="${DOWNLOAD_DIR}/${download}-$version-$arch"
21 if [ ! -f ${TARGET} ]; then
22 curl -L -f -S -s -o ${TARGET} "https://storage.googleapis.com/kubernetes-release/release/${version}/bin/linux/${arch}/${download}"
24 echo -e " ${version}: $(sha256sum ${TARGET} | awk '{print $1}')"
28 echo -e "\n\nAdd these values to roles/download/defaults/main.yml"