-
Notifications
You must be signed in to change notification settings - Fork 630
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
Bitnami HelmChart resources failing #5089
Comments
I found the an issue about the changes by Bitnami. |
I found the solution: Add OCIRepository for each Helm chart apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: OCIRepository
metadata:
name: bitnami-mongodb
spec:
interval: 30m
url: oci://registry-1.docker.io/bitnamicharts/mongodb
ref:
semver: ">=16.3.1" # First available version of the software in OCIRepository Next step to update the HelmRelease source: apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: mongodb
namespace: flux-system
spec:
releaseName: mongodb
targetNamespace: default
chartRef:
kind: OCIRepository
name: bitnami-mongodb
namespace: flux-system
interval: 1m
install:
remediation:
retries: 3
rollback:
disableWait: true
disableWaitForJobs: true
disableHooks: true
recreate: true
force: true
cleanupOnFail: true
upgrade:
remediation:
retries: 3
remediateLastFailure: true
strategy: rollback
values:
architecture: standalone
replicaCount: 1
useStatefulSet: true |
I am trying to run bitnami postgres and following the recommended steps. Do you run into this as well?
Do I need docker pull secrets? I thought this is a public registry. Repo: ---
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/refs/heads/main/ocirepository-source-v1beta2.json
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: OCIRepository
metadata:
name: bitnami
namespace: flux-system
spec:
interval: 12h
url: oci://registry-1.docker.io/bitnamicharts/postgres
ref:
semver: "^16.4.3" |
Looks like you made a simple typo. The URL, based on the documentation is not correct (need postgresql instead of postgres at the end of the URL) Documentation: https://artifacthub.io/packages/helm/bitnami/postgresql/16.4.3 Your OCIRepository resource should be like this after URL fix: ---
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/refs/heads/main/ocirepository-source-v1beta2.json
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: OCIRepository
metadata:
name: bitnami
namespace: flux-system
spec:
interval: 12h
url: oci://registry-1.docker.io/bitnamicharts/postgresql
ref:
semver: "^16.4.3" |
Thank you very much! Classic mistake... |
I suggest you name the |
@stefanprodan I used this (old) way too and I just refreshed URL and I added the apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: bitnami
namespace: flux-system
spec:
interval: 12h
url: oci://registry-1.docker.io/bitnamicharts
type: oci Update: Based on @stefanprodan 's reply, this way is not recommend to use ( for Bitnami repositories). |
Using a HelmRepo means you can't reuse a chart across multiple releases, even if you deploy the same postgresql 10 times, you'll pull it ten times from bitnami and get rate limited, instead of just one time (what you can do with OCIRepo). |
Thank you @stefanprodan ! |
Describe the bug
More of our HelmChart (generated automatically by FluxCD) are failing. Only the Bitnami based repositories affected. I found they are moving to OCI format, but looks like they are breaking the normal rules under FluxCD. As I see well, the Bitnami are not changing the repository format to OCI, just replace the chart source to OCI protocol. So HelmRepository with OCI chart source.
Same happened few days ago with RabbitMQ and now the MongoDB deployments.
In this case I got error message from Flux for many Bitnami based Helm charts:
I have no idea, it is a not implemented feature in the FluxCD or the Bitnami tries to do something non usual with their changes. I hope you will have idea, how it is possible to solve it. I am happy about any solution.
Thanks guys!
Steps to reproduce
Expected behavior
The created HelmChart should be support OCI connection (or the Bitnami implementation is not compatible with FluxCD)
Screenshots and recordings
No response
OS / Distro
MacOS, K8s clusters are using Ubuntu
Flux version
flux: v2.4.0
Flux check
► checking prerequisites
✔ Kubernetes 1.29.9 >=1.28.0-0
► checking version in cluster
✔ distribution: flux-v2.4.0
✔ bootstrapped: true
► checking controllers
✔ helm-controller: deployment ready
► ghcr.io/fluxcd/helm-controller:v1.1.0
✔ image-automation-controller: deployment ready
► ghcr.io/fluxcd/image-automation-controller:v0.39.0
✔ image-reflector-controller: deployment ready
► ghcr.io/fluxcd/image-reflector-controller:v0.33.0
✔ kustomize-controller: deployment ready
► ghcr.io/fluxcd/kustomize-controller:v1.4.0
✔ notification-controller: deployment ready
► ghcr.io/fluxcd/notification-controller:v1.4.0
✔ source-controller: deployment ready
► ghcr.io/fluxcd/source-controller:v1.4.1
► checking crds
✔ alerts.notification.toolkit.fluxcd.io/v1beta3
✔ buckets.source.toolkit.fluxcd.io/v1
✔ gitrepositories.source.toolkit.fluxcd.io/v1
✔ helmcharts.source.toolkit.fluxcd.io/v1
✔ helmreleases.helm.toolkit.fluxcd.io/v2
✔ helmrepositories.source.toolkit.fluxcd.io/v1
✔ imagepolicies.image.toolkit.fluxcd.io/v1beta2
✔ imagerepositories.image.toolkit.fluxcd.io/v1beta2
✔ imageupdateautomations.image.toolkit.fluxcd.io/v1beta2
✔ kustomizations.kustomize.toolkit.fluxcd.io/v1
✔ ocirepositories.source.toolkit.fluxcd.io/v1beta2
✔ providers.notification.toolkit.fluxcd.io/v1beta3
✔ receivers.notification.toolkit.fluxcd.io/v1
✔ all checks passed
Git provider
Gitlab Enterprise (self-hosted)
Container Registry provider
DockerHub
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: