question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Helm chart in custom repo not found; provider dies (instead of re-downloading it)

See original GitHub issue

Hello!

  • Vote on this issue by adding a šŸ‘ reaction
  • To contribute a fix for this issue, leave a comment (and link to your pull request, if you’ve opened one already)

Issue details

When using a Helm chart and specifying an https URL for FetchOptions.Repo, local cache removal causes errors. The issue also affects developers with an unpopulated local cache who’d like to continue working on our Pulumi config on an already-deployed stack.

  • I’m using C# on windows
  • Pulumi 3.27.0
  • Pulumi.Kubernetes 3.17.0

Steps to reproduce

  1. Create a Chart object, e.g. with
new ChartArgs()
{
  Chart = "haproxy-ingress",
  Namespace = "haproxy",
  FetchOptions = new ChartFetchArgs()
  {
    Repo = "https://haproxy-ingress.github.io/charts"
  },
  Version = "0.13.6"
}
  1. Run pulumi up. Successful. (chart gets downloaded without user intervention)
  2. Delete %LOCALAPPDATA%\Temp\helm\repository.
  3. Run pulumi preview (or up or refresh)

Expected: Last pulumi command succeeds as well. Actual: The provider fails with: invocation of kubernetes:helm:template returned an error: failed to generate YAML for specified Helm chart: failed to pull chart: no cached repo found. (try 'helm repo update')

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:4
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
kralikbacommented, Jul 17, 2022

Thank you. Yes, this is one main use case. The other developer’s machine might not even have the helm cli installed on their system, requiring one more step from them. Another case is e.g. if the Temp directory gets cleaned up as part of routine system maintenance.

0reactions
danielrbradleycommented, Jul 14, 2022

I would not consider this resolved

No problem, can re-open. Appoligies for mis-understanding the issue here.

So, to ensure I understand the issue correctly as I wasn’t clear as to why you’d want to delete the cache folder…

  1. Deploy the project once
  2. Checkout the project on a clean machine (e.g. a CI server)
  3. Run pulumi preview
  4. It fails because the helm chart has not been downloaded.

Does this summarise the issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Helm not considering my remote repo - Stack Overflow
I am using helm 2.6.1 to deploy a package to my kubernetes cluster. I have created a nexus raw repository to host the...
Read more >
Release Notes — Airflow Documentation
If after upgrading you find your task logs are no longer accessible, try adding a row in the ... Create a new documentation...
Read more >
Home - Mirantis Secure Registry - Docs
Helm charts repositories. Deploying applications to Kubernetes can be complex. Setting up a single application can involve creating multiple interdependentĀ ...
Read more >
Bug listing with status UNCONFIRMED as at 2022/12/14 12 ...
Bug:128538 - "sys-apps/coreutils: /bin/hostname should be installed from coreutils not sys-apps/net-tools" status:UNCONFIRMED resolution: severity:enhancementĀ ...
Read more >
How to resolve Helm index.yaml virtual repository URL ... - JFrog
To resolve Helm charts from other local or remote Helm chart repositories, you'll need to aggregate them into a virtual Helm chart repository....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found