Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions src/connectedk8s/azext_connectedk8s/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down