chart icon indicating copy to clipboard operation
chart copied to clipboard

Helm chart cannot be updated, dependencies are too old

Open metal3d opened this issue 2 years ago • 6 comments

Steps to reproduce the problem

  1. Get mastodon repo, use whatever the tag you want (stable-3.4, release-3.5.3...)
  2. Go to chart
  3. Type help dep update

Expected behaviour

The dependencies should be downloaded

Actual behaviour

An error occured

Detailed description

$ helm dep update
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "bitnami" chart repository
Update Complete. ⎈Happy Helming!⎈
Error: can't get a valid version for repositories elasticsearch, postgresql, redis. Try changing the version constraint in Chart.yaml

Specifications

Whatever the version of Mastodon :)

Actually, none of the versions are actually OK, Going to artifacthub.io to check, the listed versions in the Chart.yaml file are now very old and not listed.

metal3d avatar Nov 13 '22 07:11 metal3d

I can't duplicate that. Have you tried using a modern version rather than a old tag?

╰─❯ helm dep update 
Getting updates for unmanaged Helm repositories...
...Successfully got an update from the "https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami" chart repository
...Successfully got an update from the "https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami" chart repository
...Successfully got an update from the "https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami" chart repository
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 3 charts
Downloading elasticsearch from repo https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami
Downloading postgresql from repo https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami
Downloading redis from repo https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami
Deleting outdated charts

bocan avatar Nov 14 '22 02:11 bocan

Wow... what the hell... The Chart.yaml now points on archives from github (in the main branch) and it's OK for this branch.

But... I want to update my Mastodon instance from 3.5.1 to 3.5.3. Using the v3.5.3 tag, the problem persists because the dependencies are outdated:

dependencies:
  - name: elasticsearch
    version: 15.10.3
    repository: https://charts.bitnami.com/bitnami
    condition: elasticsearch.enabled
  - name: postgresql
    version: 8.10.14
    repository: https://charts.bitnami.com/bitnami
    condition: postgresql.enabled
  - name: redis
    version: 10.9.0
    repository: https://charts.bitnami.com/bitnami

The problem heppens on release branches so.

metal3d avatar Nov 14 '22 06:11 metal3d

So, the “fix” is to change the repository to https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami for all the Bitnami dependencies.

metal3d avatar Nov 14 '22 06:11 metal3d

I don't think that's right? There's nothing at https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami and bitnami says to use the https://charts.bitnami.com/bitnami url.

thejefflarson avatar Nov 23 '22 02:11 thejefflarson

The index you mention doesn't find the older versions of dependencies - we need to use the archive to ensure that we can get them.

metal3d avatar Nov 23 '22 06:11 metal3d

This is already done right?

deepy avatar Dec 14 '22 11:12 deepy