diff --git a/src/connectedk8s/azext_connectedk8s/custom.py b/src/connectedk8s/azext_connectedk8s/custom.py index f17a761e001..47f8f9f0ae8 100644 --- a/src/connectedk8s/azext_connectedk8s/custom.py +++ b/src/connectedk8s/azext_connectedk8s/custom.py @@ -383,9 +383,15 @@ def install_helm_client(): install_location_string = f'.azure\\helm\\{consts.HELM_VERSION}\\{operating_system}-amd64\\helm.exe' requestUri = f'{consts.HELM_STORAGE_URL}/helm/helm-{consts.HELM_VERSION}-{operating_system}-amd64.zip' elif(operating_system == 'linux' or operating_system == 'darwin'): - download_location_string = f'.azure/helm/{consts.HELM_VERSION}/helm-{consts.HELM_VERSION}-{operating_system}-amd64.tar.gz' - install_location_string = f'.azure/helm/{consts.HELM_VERSION}/{operating_system}-amd64/helm' - requestUri = f'{consts.HELM_STORAGE_URL}/helm/helm-{consts.HELM_VERSION}-{operating_system}-amd64.tar.gz' + # Set the right platform values for Linux + if(machine_type == 'aarch64'): + machine_type = 'arch64' + elif(machine_type == 'x86_64'): + machine_type = 'amd64' + download_location_string = f'.azure/helm/{consts.HELM_VERSION}/helm-{consts.HELM_VERSION}-{operating_system}-{machine_type}.tar.gz' + install_location_string = f'.azure/helm/{consts.HELM_VERSION}/{operating_system}-{machine_type}/helm' + requestUri = f'{consts.HELM_STORAGE_URL}/helm/helm-{consts.HELM_VERSION}-{operating_system}-{machine_type}.tar.gz' + logger.warning("Helm URI", requestUri) else: telemetry.set_exception(exception='Unsupported OS for installing helm client', fault_type=consts.Helm_Unsupported_OS_Fault_Type, summary=f'{operating_system} is not supported for installing helm client')