Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to pull helm charts through proxy #74

Open
philippart opened this issue Aug 31, 2022 · 3 comments
Open

Unable to pull helm charts through proxy #74

philippart opened this issue Aug 31, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@philippart
Copy link

I am getting this error caused by our corporate proxy:
[1] KNV1068: failed to run kustomize build in /repo/source/d523134f8a76659526b7ab6b0ea3cc3908a00100/cert-manager, stdout: : Error: accumulating resources: accumulation err='accumulating resources from 'base': '/repo/source/d523134f8a76659526b7ab6b0ea3cc3908a00100/cert-manager/base' must resolve to a file': recursed accumulation of path '/repo/source/d523134f8a76659526b7ab6b0ea3cc3908a00100/cert-manager/base': Error: looks like "https://charts.jetstack.io" is not a valid chart repository or cannot be reached: Get "https://charts.jetstack.io/index.yaml": dial tcp 172.66.44.147:443: connect: connection timed out : unable to run: 'helm pull --untar --untardir /repo/source/d523134f8a76659526b7ab6b0ea3cc3908a00100/cert-manager/base/charts --repo https://charts.jetstack.io cert-manager --version v1.5.3' with env=[HELM_CONFIG_HOME=/tmp/kustomize-helm-924204340/helm HELM_CACHE_HOME=/tmp/kustomize-helm-924204340/helm/.cache HELM_DATA_HOME=/tmp/kustomize-helm-924204340/helm/.data] (is 'helm' installed?) For more information, see https://g.co/cloud/acm-errors#knv1068

How do you configure the corresponding namespace reconciler to use a proxy? Editing the ns-reconciler (or reconciler-manager) configmap to add an HTTPS_PROXY environment variable doesn't seem to be possible (automatically overridden).

Thanks.
Laurent Philippart

@philippart
Copy link
Author

Just confirmed that with the proper environment helm pull works fine in the hydration-controller:

export HELM_CONFIG_HOME=/tmp/kustomize-helm-723481838/helm
export HELM_CACHE_HOME=/tmp/kustomize-helm-723481838/helm/.cache
export HELM_DATA_HOME=/tmp/kustomize-helm-723481838/helm/.data
export HTTPS_PROXY=<our proxy>
helm pull --untar --untardir /repo/source/358e7d8ecf8a79d1f70b1a561f744f96a2894474/cert-manager/base/charts --repo https://charts.jetstack.io cert-manager --version v1.5.3
ls -al /repo/source/358e7d8ecf8a79d1f70b1a561f744f96a2894474/cert-manager/base/charts
total 16
drwxr-sr-x 4 65533 65533 4096 Aug 31 14:23 .
drwxr-sr-x 3 65533 65533 4096 Aug 31 14:23 ..
drwxr-sr-x 3 65533 65533 4096 Aug 31 14:23 cert-manager
drwxr-sr-x 2 65533 65533 4096 Aug 31 14:23 cert-manager-v1.5.3.tgz

@mikebz
Copy link
Contributor

mikebz commented Sep 7, 2022

@philippart is the issue that there is no setting for the HTTPS proxy in the ConfigSync API?

@mikebz mikebz added the enhancement New feature or request label Sep 7, 2022
@philippart
Copy link
Author

philippart commented Sep 9, 2022

yes and alternatively I don't see how I would be able to customize the configmap to inject an environment variable in the reconciler container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants