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

Helm: subcharts are downloaded again at every execution #8287

Open
KoltesDigital opened this issue Dec 29, 2022 · 1 comment
Open

Helm: subcharts are downloaded again at every execution #8287

KoltesDigital opened this issue Dec 29, 2022 · 1 comment
Labels
area/cache area/dev deploy/helm kind/bug Something isn't working priority/p2 May take a couple of releases

Comments

@KoltesDigital
Copy link

I'm using Helm. My service needs a DB so I added postgresql as a chart dependency.

The subchart is downloaded once (helm dependency build) and corresponding .tgz file is located in the charts subfolder.

However, every time I launch skaffold dev, the file is downloaded again.

Expected behavior

The file is already there, there's nothing to do (regarding subcharts).

Actual behavior

Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "bitnami" chart repository
Update Complete. ⎈Happy Helming!⎈
Saving 1 charts
Downloading postgresql from repo https://charts.bitnami.com/bitnami
Deleting outdated charts

A subfolder tmpcharts appears for less than a second.

Information

  • Skaffold version: 2.0.4 and 2.0.2
  • Operating system: Win 10 x64
  • Installed via: Chocolatey

Steps to reproduce the behavior

  1. git clone ... && cd skaffold/examples/helm-deployment

  2. Add the following in charts\Chart.yaml:

    dependencies:
      - name: postgresql
        version: 12.1.3
        repository: https://charts.bitnami.com/bitnami
  3. cd charts && helm dependency build && cd ..
    You may need to helm repo add bitnami https://charts.bitnami.com/bitnami first.
    Observe that charts\charts\postgresql-12.1.3.tgz is created.

  4. skaffold dev
    Observe that postgresql is downloaded again.

@aaron-prindle aaron-prindle added deploy/helm kind/bug Something isn't working area/dev area/cache priority/p2 May take a couple of releases labels Dec 29, 2022
@ericzzzzzzz
Copy link
Contributor

ericzzzzzzz commented Jan 5, 2023

Here is some context about helm dep build #116 , we also have a flag to skip build dependencies under release stanza

deploy:
  helm:
    releases:
    - name: xxx
      .... 
      skipBuildDependencies: true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cache area/dev deploy/helm kind/bug Something isn't working priority/p2 May take a couple of releases
Projects
None yet
Development

No branches or pull requests

3 participants