File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -478,8 +478,22 @@ def install_helm_rootlessly_to_venv():
478478 sys .exit (1 )
479479
480480 arch = os .uname ().machine
481- arch_map = {"x86_64" : "amd64" , "i386" : "386" , "aarch64" : "arm64" , "armv7l" : "arm" }
482- arch = arch_map .get (arch , arch )
481+ arch_map = {
482+ "x86_64" : "amd64" , # Maps 'x86_64' to 'amd64'
483+ "i686" : "i386" , # Maps 'i686' to 'i386'
484+ "i386" : "i386" , # Maps 'i386' to 'i386'
485+ "aarch64" : "arm64" , # Maps 'aarch64' (common on newer ARM) to 'arm64'
486+ "armv7l" : "arm" , # Maps 'armv7l' to 'arm' (32-bit ARM)
487+ "armv6l" : "arm" , # Maps 'armv6l' to 'arm' (32-bit ARM)
488+ "ppc64le" : "ppc64le" , # PowerPC Little Endian
489+ "s390x" : "s390x" , # IBM s390x architecture
490+ "riscv64" : "riscv64" , # RISC-V 64-bit
491+ }
492+ if arch in arch_map :
493+ arch = arch_map [arch ]
494+ else :
495+ click .secho (f"No Helm binary candidate for arch: { arch } " , fg = "red" )
496+ sys .exit (1 )
483497
484498 helm_filename = f"{ HELM_BINARY_NAME } -{ version } -{ os_name } -{ arch } .tar.gz"
485499 helm_url = f"{ HELM_DOWNLOAD_URL_STUB } { helm_filename } "
You can’t perform that action at this time.
0 commit comments