mastodon / chart

Helm chart for Mastodon deployment in Kubernetes
GNU Affero General Public License v3.0
158 stars 92 forks source link

Helm chart cannot be updated, dependencies are too old #23

Open metal3d opened 1 year ago

metal3d commented 1 year ago

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.

bocan commented 1 year ago

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
metal3d commented 1 year ago

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 commented 1 year ago

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

thejefflarson commented 1 year ago

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.

metal3d commented 1 year ago

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.

deepy commented 1 year ago

This is already done right?