Azure-pipelines-tasks: HelmInstaller behind a corporate proxy

Created on 18 Feb 2020  路  3Comments  路  Source: microsoft/azure-pipelines-tasks

Question, Bug, or Feature?
Type: Question/Bug

Enter Task Name: HelmInstaller@1

Issue Description

We have the agent running in our private network, and configured to use out company proxy. The agent is configured to use our proxy (it installs and correcty connect using proxy).
The HelmInstaller seems to not use the proxy, if I curl from the machine https://get.helm.sh/helm-v3.1.0-linux-amd64.zip the file is downloaded correctly, but the agent task does not work, as it is not using the proxy.
Is the proxy correcty enabled in this task?

Release bug question

Most helpful comment

What is the sense of this task? Why not extend it to honor the proxy?

we are also running with a corporate proxy here, so it is more common and the task could reflect this.

All 3 comments

Task uses helm release locations directly to download. https://github.com/microsoft/azure-pipelines-tasks/blob/6b16ac5f867aa62d7e60f36f1b56568183865ad5/Tasks/Common/utility-common-v2/helmutility.ts#L51. Try using script task to download helm if task not working.

What is the sense of this task? Why not extend it to honor the proxy?

we are also running with a corporate proxy here, so it is more common and the task could reflect this.

@dirien, A work around for this is setting the http_proxy and https_proxy environment variables (and possibly the no_proxy variable as well) this will cause the task to go through the proxy,

Was this page helpful?
0 / 5 - 0 ratings