From 6a4fd33a030f322514c149cf5cd57b6bcda7152a Mon Sep 17 00:00:00 2001 From: mgiessing Date: Fri, 4 Feb 2022 09:14:00 +0100 Subject: [PATCH] Added ppc64le support (#8505) * Added ppc64le support * Fixed linting errors --- roles/download/defaults/main.yml | 118 ++++++++++++++++++++++++++++++- scripts/download_hash.py | 2 +- scripts/download_hash.sh | 2 +- 3 files changed, 119 insertions(+), 3 deletions(-) diff --git a/roles/download/defaults/main.yml b/roles/download/defaults/main.yml index 0979af344..ca0048673 100644 --- a/roles/download/defaults/main.yml +++ b/roles/download/defaults/main.yml @@ -165,6 +165,10 @@ crictl_checksums: v1.23.0: b754f83c80acdc75f93aba191ff269da6be45d0fc2d3f4079704e7d1424f1ca8 v1.22.0: 45e0556c42616af60ebe93bf4691056338b3ea0001c0201a6a8ff8b1dbc0652a v1.21.0: 85c78a35584971625bf1c3bcd46e5404a90396f979d7586f18b11119cb623e24 + ppc64le: + v1.23.0: 53db9e605a3042ea77bbf42a01a4e248dea8839bcab544c491745874f73aeee7 + v1.22.0: c78bcea20c8f8ca3be0762cca7349fd2f1df520c304d0b2ef5e8fa514f64e45f + v1.21.0: 0770100d30d430dbb67a58119ffed459856163ba01b6d71ac6fd4be7336253cf # Checksum # Kubernetes versions above Kubespray's current target version are untested and should be used with caution. @@ -235,6 +239,25 @@ kubelet_checksums: v1.21.2: aaf144b19c0676e1fe34a93dc753fb38f4de057a0e2d7521b0bef4e82f8ccc28 v1.21.1: e77ff3ea404b2e69519ea4dce41cbdf11ae2bcba75a86d409a76eecda1c76244 v1.21.0: 681c81b7934ae2bf38b9f12d891683972d1fbbf6d7d97e50940a47b139d41b35 + ppc64le: + v1.23.3: 055a9c9e8679c9ff963e43d1dc7d7aa3670a8aa56b96725de85c816e682c24bb + v1.23.2: 6fdee30ee13149845aac8d110ad6a1894bb35f953e1ecb562ce7c59f63329dca + v1.23.1: 9c3dc8ba6888b610e204d4066f0460d5b24037219300bb5f5b254ea7e8d5a4d1 + v1.23.0: 25c841e08ab2655486813287aa97cadf7524277040599e95c32ed9f206308753 + v1.22.6: 4e64366b96abaf7b45d14c72f6f84fb51c84a66ea0f25e93e50f986e6af7d29e + v1.22.5: 130ad083528ffaca317070828a308a5bb13e79309ec7e82bdf2bfa981a696a73 + v1.22.4: 4f71ef4083bff268c4007c2edc59cb89c1deb4e9f6ecd09fbe009644f3c059bd + v1.22.3: 1d8bcb12d956512c2fb215e9161d4b196684a61836ce528e8bbde933ff36a8b5 + v1.22.2: 9b4e555110f747569393220ef12a54ae26eb4168eefb77d4b1e6c1d123f71438 + v1.22.1: a8c379fce4b1c1bc40238dfea67db286ec8ffec56ed701d581b53a941f7031bb + v1.22.0: 957dcc6ae45078ce971af183c0061d60168c15f484dcd978588cc6380236423f + v1.21.6: 84c4b957b0882fbada3db04c55edf176cd53ff9d36879fac626438b41e38e3e4 + v1.21.5: 463a265ac3cf3e7b9782590d01868b9f1ce7e324b0565188b33c216b9b76bfb3 + v1.21.4: ff0bac8cc95dd8ba66d241d448888c5d45659ff0fa77fc3c8f637d96dcbb1b97 + v1.21.3: d60b7be7c58d23aa21689bd5e233b3b83f56af41bc5239bcfdbe2340849ab929 + v1.21.2: ec53cf29c1238a5c1073e91804239a470a68ffc5b28f7617b95d580e9221ee1f + v1.21.1: 8473aaa3e90937c23d681b1b3f8d603cd099a1e7c8573ff3b76cda186a9fdd09 + v1.21.0: ac4ad7c275516b761b79b1c238d1745aafbf6bddb4c80931c02e16fcda9ff8c0 kubectl_checksums: arm: v1.23.3: bc41382fbd3f6b33cb5ccb1819c5a38f2e6f3c9ce22acfedd6970b0b9b7748da @@ -302,6 +325,25 @@ kubectl_checksums: v1.21.2: 55b982527d76934c2f119e70bf0d69831d3af4985f72bb87cd4924b1c7d528da v1.21.1: 58785190e2b4fc6891e01108e41f9ba5db26e04cebb7c1ac639919a931ce9233 v1.21.0: 9f74f2fa7ee32ad07e17211725992248470310ca1988214518806b39b1dad9f0 + ppc64le: + v1.23.3: 7297e595ed549bac93decda41c9830a3e032fd374467d679c98ef35dcdd1d2aa + v1.23.2: 97d50dc4ff0a6c70bbfcbd45f6959e6201c6317392b2894008017380669f6015 + v1.23.1: 514e50afdb5b8953adfffe4941e903748348830bdd82805fd4489c3334a02a4a + v1.23.0: e96f2b16d8a10fe6531dfac9143efa4960432cf2ae8b26ffd174fa00eb28a851 + v1.22.6: d9acb45bcbcead81e8f61572dd800d82e605af2532edb4be1633b732b009d2e2 + v1.22.5: a613f330b10b24992780149184ea3257210932ea9f569af323f84e9debfea535 + v1.22.4: a89d158be97df1f7b4d56ed28b219c8f09427511283b78917352b9e90b9f37bf + v1.22.3: b55409b40c60fddf24e6e93cbcee2e33c3c5d8f4a6b3f9c8cf4eb1f23119388d + v1.22.2: f8c8c4734846c56a8eae6e5c877c84e38513337ea1ca08d63e019ffe82114342 + v1.22.1: 4eced82fb83c405937c35c18de5ac25befa68ca5ab016b3d279011d7f3701eea + v1.22.0: 7ea30171a5db9dfbdc240674f5cde00fb75a8193ef73783950b8d10c810b6a5b + v1.21.6: c16d92482eafabf78c23ae49c6e823c141a0d96f0e24a5b653469591533b3340 + v1.21.5: a65361555f9286b723876c5db6c960341ed2fd722a2dadd78fa0cb658f9b543a + v1.21.4: 8a2bde6528b82381178c2a93238bd70d5238120a4ea476c5b226fff1b991ffae + v1.21.3: 6fd63f4abe4331f314af17cfae2f42850b134fc7707d38f4b3ac617d23fb1d52 + v1.21.2: 0f410281654b654b3d61dcc3754d1bb1d90d8648b8a56f8eaf4dd82ef19a39f8 + v1.21.1: 42d648988f45bbeb6d2660156332ad0c3ca9a5df40f5cf4a4272249ec2c2749e + v1.21.0: 3d8702c2d341bbed07f6e9c952815c558034d817e3d1a672c1d7d042b021e9c0 kubeadm_checksums: arm: v1.23.3: cb2513531111241bfb0f343cff18f7b504326252ae080bb69ad1ccf3e31a2753 @@ -369,6 +411,25 @@ kubeadm_checksums: v1.21.2: 6a83e52e51f41d67658a13ce8ac9deb77a6d82a71ced2d106756f6d38756ec00 v1.21.1: 1553c07a6a777c4cf71d45d5892915f0ea6586b8a80f9fea39e7a659d6315d42 v1.21.0: 7bdaf0d58f0d286538376bc40b50d7e3ab60a3fe7a0709194f53f1605129550f + ppc64le: + v1.23.3: fd87d972db45dd6f623dd4ca06075e7e697f1bdaa7936c5c06924d1189ba7ff8 + v1.23.2: 2d76c4d9795e25867b9b6fe7853f94efb8c2f2b3052adab4073fddca93eedc01 + v1.23.1: 6b645c868834197bcb25104f468c601477967341aba6326bdf5d0957dcaa9edc + v1.23.0: 895c84055bca698f50ecdf1fc01d2f368563f77384b1dd00bdacbf6d0c825cc1 + v1.22.6: a3aed2613b0566d1c829c15ff1206c25743bade24c4087b039824860d07de517 + v1.22.5: d877c380f3fe4ee3c68f02ffa185252129aaba390129fd6a3542f6d9c5e88a6f + v1.22.4: 3e4cc45da8067f0da56e848b39531874c0a144840f4794731a4fb3b4689a8de2 + v1.22.3: f993698da6f64a222edb92e352331c46516dbef9e235b12471c9d697aac74524 + v1.22.2: 115bdf1e9e4821cf02aa77875930b4640cfba6b3560492ac75fe6159e897be6f + v1.22.1: 45e5145abf4700ddb5de3469ddb6b316e7588595e4a3e64f44064738808b9c97 + v1.22.0: 22a7d995e78e93abca2999c911b065d63f51f33982dc305f23762a8d7c045d25 + v1.21.6: b292528714c770c6164bb5120f8499ff05134b97f2b35ca269a6109ff49f48b1 + v1.21.5: cc74675911c1ac86ebcee97ff9b6b655b88222ccb167805e3767d356638cbcce + v1.21.4: b0a03a001680d4a3f3477b363dcc110a30f2a846dfa6e968be002b6c318c7b9b + v1.21.3: c320777c6c018379865206fa90d23e0d1f48476eec5c1dd1d748243149997607 + v1.21.2: e961cf2f8900344e7aa088ea788a37d1f354e0683a6fcfef612b12ec168475db + v1.21.1: d9e386b726742efb966ed1e75d72fdf4c6016c7d640a3401504bfbf0cd41046c + v1.21.0: 4cea170557e57a8937fbdc9be1a25243770cfe6c1ff2bb7229c9aeb2d6974ca9 etcd_binary_checksums: # Etcd does not have arm32 builds at the moment, having some dummy value is @@ -382,6 +443,9 @@ etcd_binary_checksums: amd64: v3.5.0: 864baa0437f8368e0713d44b83afe21dce1fb4ee7dae4ca0f9dd5f0df22d01c4 v3.5.1: 728a14914217ce60de2e1299fc1a2c2c5564e7ffd0d9dadf3f5073103ab619b4 + ppc64le: + v3.5.0: bde45588b66ed2fe0a7082b1cdb08124efff4960edfa6af4dd2f645886004a86 + v3.5.1: 4c2598f43c1565428f8b645e741739a1e84300d5f2af3e4b335982862c98dc6f flannel_cni_binary_checksums: arm: @@ -390,6 +454,8 @@ flannel_cni_binary_checksums: v1.0.0: eb7183498b5d1ae4034dde6184e4396270e29ed88482b295f81b93eb3120c61c amd64: v1.0.0: 22dc9152571167f30d59d1e512bb7f4b4978175ddd46a30b24ad247c8c843dd7 + ppc64le: + v1.0.0: 994d206a84013b050677d3e09b53485faaa9e769a43065cf4674efb52fafb18c cni_binary_checksums: arm: @@ -398,6 +464,8 @@ cni_binary_checksums: v1.0.1: 2d4528c45bdd0a8875f849a75082bc4eafe95cb61f9bcc10a6db38a031f67226 amd64: v1.0.1: 5238fbb2767cbf6aae736ad97a7aa29167525dcd405196dfbc064672a730d3cf + ppc64le: + v1.0.1: f078e33067e6daaef3a3a5010d6440f2464b7973dec3ca0b5d5be22fdcb1fd96 calicoctl_binary_checksums: arm: @@ -412,6 +480,11 @@ calicoctl_binary_checksums: v3.21.2: 94c1bec6b7661243f053314d901df54d2e3e5bf4eb746af09b29b07e4654f4b9 v3.20.3: 63683f21515a20ceee8f234a9aba0e5efb342860940026d0ba6f281cc76aa1e3 v3.19.3: ec3cfbd2dccbd614ac353be8c9abf8e336d8700fbd2b9b76da1c3c4c14a6dfe2 + ppc64le: + v3.21.2: 1c1c8a6887bdcc8d49a93fc3ba6aa538b167088f4fea436af447e84b555fe170 + v3.20.3: d8b2a383a490ef6327ce99a3858ac322982afd47c7884411fa06471da7425028 + v3.19.3: ccb66efa2f01dfeee421ab35650458cde980faac57357a7fe314ce0714786b0d + calico_crds_archive_checksums: v3.21.2: 6f1342ac8b3d9ebfa9714f06aa92f4f0eea0d2b09d7e77ed73c0c9de0bb0aee8 v3.20.3: 2a3a5cbe05c60fa2fc850252c4eecfa36dd6629191ed805eea31f9b5c740bc4c @@ -425,6 +498,9 @@ krew_archive_checksums: v0.4.2: 7581be80d803536acc63cceb20065023b96f07fd7eb9f4ee495dce0294a866eb amd64: v0.4.2: 203bfd8006b304c1e58d9e96f9afdc5f4a055e0fbd7ee397fac9f36bf202e721 + ppc64le: + v0.4.2: 0 + darwin: arm: v0.4.2: 0 @@ -432,6 +508,9 @@ krew_archive_checksums: v0.4.2: a69d48f8cad7d87b379071129cde3ee4abcaaa1c3f3692bc80887178b2cc7d33 amd64: v0.4.2: 47c6b5b647c5de679a2302444f75a36a70530fa4751cb655e0edd5da56a5f110 + ppc64le: + v0.4.2: 0 + windows: arm: v0.4.2: 0 @@ -439,6 +518,8 @@ krew_archive_checksums: v0.4.2: 0 amd64: v0.4.2: 3150ff0291ac876ebe4fe0e813ee90a18aa2bc0510c3adcfae6117dec44ef269 + ppc64le: + v0.4.2: 0 helm_archive_checksums: @@ -448,6 +529,8 @@ helm_archive_checksums: v3.8.0: 23e08035dc0106fe4e0bd85800fd795b2b9ecd9f32187aa16c49b0a917105161 amd64: v3.8.0: 8408c91e846c5b9ba15eb6b1a5a79fc22dd4d33ac6ea63388e5698d1b2320c8b + ppc64le: + v3.8.0: 5070fa5188e7bc798dd54bc1ea9fc4cda623d9ff45eedb05ec93db234309f391 runc_checksums: arm: @@ -462,9 +545,16 @@ runc_checksums: v1.0.2: 44d1ba01a286aaf0b31b4be9c6abc20deab0653d44ecb0d93b4d0d20eac3e0b6 v1.0.3: 5d4c0e5a4e8d6ccbb9c6696bb239f31cfab8d94b15801bafe09aaee600714f61 v1.1.0: ab1c67fbcbdddbe481e48a55cf0ef9a86b38b166b5079e0010737fd87d7454bb + ppc64le: + v1.0.2: 0 + v1.0.3: 0 + v1.1.0: 4a6b2f43c0f2371b1948b2eceb906fd8b9d8f5e9f6bab7d21bc037f5b300f43e crun_checksums: - arm: 0 + arm: + 1.2: 0 + 1.3: 0 + 1.4: 0 amd64: 1.2: 2228a8e0e0f10920b230f9b8bc7c4fd951b603b278ccf0ebdba794339a49c33b 1.3: 020a2e74d48f1e52f888a31b8bf873a1a99e9f89713ac9ff9403e14b2b9d5c18 @@ -473,6 +563,10 @@ crun_checksums: 1.2: 3aee1057196b40b9786a08c875569c9046e58f97d29333b454359668b6088fb1 1.3: c0955cf6d3d832c0249bbaa71ed235abb35b8ca45fe07f2bd4501a00afb9bdc4 1.4: 8e8081562503308f39f571acfe94afc663816ea0cb8f922145e2aaf0991415d7 + ppc64le: + 1.2: 0 + 1.3: 0 + 1.4: 0 youki_checksums: arm: @@ -481,6 +575,8 @@ youki_checksums: 0.0.1: 8bd712fe95c8a81194bfbc54c70516350f95153d67044579af95788fbafd943b arm64: 0.0.1: 0 + ppc64le: + 0.0.1: 0 kata_containers_binary_checksums: arm: @@ -501,6 +597,12 @@ kata_containers_binary_checksums: 2.2.2: 0 2.2.3: 0 2.3.0: 0 + ppc64le: + 2.0.4: 0 + 2.1.1: 0 + 2.2.2: 0 + 2.2.3: 0 + 2.3.0: 0 gvisor_runsc_binary_checksums: arm: @@ -509,6 +611,8 @@ gvisor_runsc_binary_checksums: 20210921: 0 amd64: 20210921: af5b4527b2d63eea6d0cc2c5522b1e76163df695e9484475e378ec29f7baa661 + ppc64le: + 20210921: 0 gvisor_containerd_shim_binary_checksums: arm: @@ -517,6 +621,8 @@ gvisor_containerd_shim_binary_checksums: 20210921: 0 amd64: 20210921: 9ed085fcdbf6f300474e10f2f32b323038568342ce8130298f56e13d14484daa + ppc64le: + 20210921: 0 nerdctl_archive_checksums: arm: @@ -525,6 +631,8 @@ nerdctl_archive_checksums: 0.16.0: 81e0c13e3c3036c1c5ef5d3c2e02c7b3e980e1856d732779b9e4e5afb9df4c6d amd64: 0.16.0: 00abb395a6c7c19f2e0612a65e413534b6ec42e995bfbcabd59886b99ca5e43e + ppc64le: + 0.16.0: 6d23959abbdb32e4614c823c0a95bda945f3a68a50d111d6aeafe98e857eba1a containerd_archive_checksums: arm: @@ -551,6 +659,14 @@ containerd_archive_checksums: 1.5.7: 109fc95b86382065ea668005c376360ddcd8c4ec413e7abe220ae9f461e0e173 1.5.8: feeda3f563edf0294e33b6c4b89bd7dbe0ee182ca61a2f9b8c3de2766bcbc99b 1.5.9: a457793a1643657588baf46d3ffbf44fae0139b65076064e237ddf29cd838ba4 + ppc64le: + 1.4.9: 0 + 1.4.11: 0 + 1.4.12: 0 + 1.5.5: 0 + 1.5.7: 0 + 1.5.8: 0 + 1.5.9: 0 etcd_binary_checksum: "{{ etcd_binary_checksums[image_arch][etcd_version] }}" flannel_cni_binary_checksum: "{{ flannel_cni_binary_checksums[image_arch][flannel_cni_version] }}" diff --git a/scripts/download_hash.py b/scripts/download_hash.py index 30f276b75..1a1b38571 100644 --- a/scripts/download_hash.py +++ b/scripts/download_hash.py @@ -25,7 +25,7 @@ def open_main_yaml(): def download_hash(versions): - architectures = ["arm", "arm64", "amd64"] + architectures = ["arm", "arm64", "amd64", "ppc64le"] downloads = ["kubelet", "kubectl", "kubeadm"] data, yaml = open_main_yaml() diff --git a/scripts/download_hash.sh b/scripts/download_hash.sh index ec4b16786..e15dc2aff 100644 --- a/scripts/download_hash.sh +++ b/scripts/download_hash.sh @@ -2,7 +2,7 @@ set -eo pipefail VERSIONS="$@" -ARCHITECTURES="arm arm64 amd64" +ARCHITECTURES="arm arm64 amd64 ppc64le" DOWNLOADS="kubelet kubectl kubeadm" DOWNLOAD_DIR="tmp/kubeadm_hasher"