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

--dependency-update is not working as expected #12977

Open
JoniJnm opened this issue Apr 23, 2024 · 0 comments
Open

--dependency-update is not working as expected #12977

JoniJnm opened this issue Apr 23, 2024 · 0 comments

Comments

@JoniJnm
Copy link

JoniJnm commented Apr 23, 2024

helm upgrade --dependency-update is not updating the dependencies chart when the downloaded tgz version doesn't match with the chart.lock

I created a repository to reproduce the bug: https://github.com/JoniJnm/helm-bug

  • The main branch needs the dependency mysql:9.12.3
  • The v2 branch needs the dependency mysql:9.16.3

The steps:

$ cd /tmp
$ git clone https://github.com/JoniJnm/helm-bug
$ ls
Chart.lock  Chart.yaml  README.md
$ helm upgrade --install --dependency-update helm-bug .
Release "helm-bug" does not exist. Installing it now.
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 mysql from repo https://charts.bitnami.com/bitnami
Deleting outdated charts
NAME: helm-bug
LAST DEPLOYED: Tue Apr 23 18:42:47 2024
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None

This downloads the mysql-9.12.3.tgz file:

$ ls charts/
mysql-9.12.3.tgz

But now, when the Chart.lock changes, it doesn't update the dependency:

$ git switch v2
$ helm upgrade --install --dependency-update helm-bug .
Release "helm-bug" has been upgraded. Happy Helming!
NAME: helm-bug
LAST DEPLOYED: Tue Apr 23 18:45:15 2024
NAMESPACE: default
STATUS: deployed
REVISION: 2
TEST SUITE: None

The dependency is not updated:

$ cat Chart.lock | grep version
  version: 9.16.3
$ ls charts/
mysql-9.12.3.tgz
$ helm version
version.BuildInfo{Version:"v3.14.4", GitCommit:"81c902a123462fd4052bc5e9aa9c513c4c8fc142", GitTreeState:"clean", GoVersion:"go1.21.9"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant