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

Chart repo problems? #30609

Closed
brightdroid opened this issue Nov 24, 2024 · 9 comments
Closed

Chart repo problems? #30609

brightdroid opened this issue Nov 24, 2024 · 9 comments
Assignees
Labels
solved tech-issues The user has a technical issue about an application triage Triage is needed

Comments

@brightdroid
Copy link
Contributor

brightdroid commented Nov 24, 2024

Name and Version

different, e.g. postgresql

What architecture are you using?

None

What steps will reproduce the bug?

  1. helm show chart --repo https://charts.bitnami.com/bitnami postgresql --version 16.2.2

What is the expected behavior?

Chart info for version 16.2.2

What do you see instead?

Error: invalid_reference: invalid tag

Additional information

helm show chart of version 16.2.1 works without problem.

@brightdroid brightdroid added the tech-issues The user has a technical issue about an application label Nov 24, 2024
@github-actions github-actions bot added the triage Triage is needed label Nov 24, 2024
@rjacks24
Copy link

rjacks24 commented Nov 25, 2024

I'm getting the same for helm show chart --repo https://charts.bitnami.com/bitnami rabbitmq --version 15.0.7
15.0.6 works First noticed this at November 22, 2024 at 5:32am

@carrodher
Copy link
Member

This is likely related to this upstream issue: helm/helm#13466.

As announced at #30110, we recently changed the URL field in the index.yaml to use OCI.

@brightdroid
Copy link
Contributor Author

So the repo at https://charts.bitnami.com/bitnami is deprecated and only oci will be available?

Problem: kustomize does not support OCI repos - is there any solution for this?

@carrodher
Copy link
Member

As reported in helm/helm#13466, this problem stems from how the helm ... --repo ... command handles an index.yaml file containing OCI URLs.

Why is this issue appearing now?

Historically, Bitnami Helm charts were accessed by adding the Bitnami repository to the Helm CLI:

$ helm repo add bitnami https://charts.bitnami.com/bitnami

or by directly installing/pulling a specific Helm chart using the --repo flag:

$ helm pull --repo https://charts.bitnami.com/bitnami foo

In April 2023, Bitnami introduced support for the OCI format, recommending OCI-based installation as the primary method going forward. For example:

helm pull oci://registry-1.docker.io/bitnamicharts/external-dns --version 8.6.0

As detailed in our recent announcement and #30110, the traditional method is now being deprecated. Consequently, the index.yaml served at https://charts.bitnami.com/bitnami now uses OCI URLs, exposing the above mentioned issue in the Helm CLI's handling of these URLs.

@brightdroid
Copy link
Contributor Author

Problem two: kustomize does not support OCI repos

So no more kustomize with bitnami charts?

@cglacet
Copy link

cglacet commented Nov 26, 2024

Do we have to migrate everything? What are the minimal changes that can be made to migrate? Is there any solution for skaffold?

@bh-tt
Copy link
Contributor

bh-tt commented Nov 27, 2024

We noticed this as well, and ran into problems with our setup that does not have direct internet access. Helm does not seem to provide a way to change the hostnames to our own mirror, which means we cannot deploy any bitnami helm charts. Quite strange, since most container-related tooling allows defining mirrors for each upstream registry (e.g. when you need to go to registry-1.docker.io for a container, instead use the docker-io.registry.example.com host to circumvent rate limits).

I suppose its just as well we recently changed most of our bitnami charts to kustomize bases from the upstream itself or our own plain yaml (see #30136).

@jasaltvik
Copy link

jasaltvik commented Nov 27, 2024

Problem two: kustomize does not support OCI repos

So no more kustomize with bitnami charts?

I think they actually do support it, but it's been quite the confusing journey: kubernetes-sigs/kustomize#5167 (fixed in 5.2.1)

This works for me with kustomize build --enable-helm

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

helmCharts:
- name: redis
  repo: oci://registry-1.docker.io/bitnamicharts/bitnami
  version: 20.3.0
  releaseName: redis-sentinel
  valuesFile: configs/helm-redis.yaml
  namespace: test
❯ kustomize version
v5.5.0

Unless I'm misunderstanding something here 😅

@brightdroid
Copy link
Contributor Author

Thanks tried it again, got it working in argocd with this config:

---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

helmCharts:
  - name: postgresql
    repo: oci://registry-1.docker.io/bitnamicharts
    releaseName: pg17
    namespace: postgres
    version: 16.2.2
    valuesFile: values.yaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
solved tech-issues The user has a technical issue about an application triage Triage is needed
Projects
None yet
Development

No branches or pull requests

6 participants