-
Notifications
You must be signed in to change notification settings - Fork 600
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
unable to leverage chart version as label with OCIRepository
#4910
Comments
Having the same issue with the same Chart. |
Hmm they should've used AppVersion like Helm recommends: https://github.com/actions/actions-runner-controller/blob/a152741a1a6afa992f8d836a029d551984149c8f/charts/gha-runner-scale-set/templates/_helpers.tpl#L41 The workaround is to replace the label value: apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
spec:
postRenderers:
- kustomize:
patches:
- target:
kind: Deployment
patch: |
- op: replace
path: /spec/template/metadata/labels/app.kubernetes.io~1version
value: latest |
Ah this worked like a charm! Thanks for the quick workaround @stefanprodan |
I have the same issue with this chart: https://artifacthub.io/packages/helm/dagger/dagger-helm. Installing it with flux I get error
I then check what flux has rendered:
So flux renders the version as I then try to render the same locally with the helm cli tool:
In this case it renders as |
Describe the bug
When applying an helm chart from an oci repository, chart version appended with a suffix leading to edge cases on some charts.
Steps to reproduce
Given this :
will lead to this error:
Maybe related to this line:
https://github.com/actions/actions-runner-controller/blob/a152741a1a6afa992f8d836a029d551984149c8f/charts/gha-runner-scale-set-controller/templates/deployment.yaml#L28
Expected behavior
Charts should be able to leverage chart version, as label. Ideally, it should not be modified, as some chart authors may not have this in mind, leading to problems that are difficult to resolve.
Screenshots and recordings
No response
OS / Distro
Ubuntu 24.04
Flux version
v2.3.0
Flux check
flux check default on (eu-west-1) took 6h49m38s
► checking prerequisites
✔ Kubernetes 1.29.6+k3s2 >=1.28.0-0
► checking version in cluster
✔ distribution: flux-v2.3.0
✔ bootstrapped: true
► checking controllers
✔ helm-controller: deployment ready
► ghcr.io/fluxcd/helm-controller:v1.0.1
✔ image-automation-controller: deployment ready
► ghcr.io/fluxcd/image-automation-controller:v0.38.0
✔ image-reflector-controller: deployment ready
► ghcr.io/fluxcd/image-reflector-controller:v0.32.0
✔ kustomize-controller: deployment ready
► ghcr.io/fluxcd/kustomize-controller:v1.3.0
✔ notification-controller: deployment ready
► ghcr.io/fluxcd/notification-controller:v1.3.0
✔ source-controller: deployment ready
► ghcr.io/fluxcd/source-controller:v1.3.0
► checking crds
✔ alerts.notification.toolkit.fluxcd.io/v1beta3
✔ buckets.source.toolkit.fluxcd.io/v1beta2
✔ 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
No response
Container Registry provider
No response
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: