You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When specifying a semver in a HelmChart or HelmRelease the following error is thrown:
chart pull error: failed to get chart version for remote reference:
could not get tags for "{{ some chart name }}": unable to locate any tags in
provided repository: oci://{{ registry }}.azurecr.io/helm/{{some chart name}}
if a specific value is provided it will succeed:
pulled '{{ some chart name }}' chart with version 'v1.1.0'
I tested the provided example within the documentation using the podinfo oci://ghcr.io/stefanprodan/charts repo and it was able to pull chart 6.3.0 so looks as though this is an azure cr specific issue. I can work around this by creating image repo's and policies, updating the chart version with the image automation tools but it seems unnecessary if this should be a supported feature.
Steps to reproduce
Upload helm chart as oci artifact to azure cr
register helm repository with type oci
reference helm repo in either HelmChart or HelmRepository
Use a semver under spec.version
Expected behavior
Tags from oci repository are pulled and evaluated base on SemVer and Chart or Release is created successfully
This is out of scope of this project and the source controller as it seems to reside in the registry client used for oci repositories within the source controller. I'll direct my issue there. Sorry for the noise
The issue was our chart version was "v1.1.0". The prefixed "v" although valid using Masterminds/semver is not a "valid" semver. Changing our tag names to exclude the "v" fixed the issue.
Describe the bug
When specifying a semver in a HelmChart or HelmRelease the following error is thrown:
if a specific value is provided it will succeed:
I tested the provided example within the documentation using the podinfo
oci://ghcr.io/stefanprodan/charts
repo and it was able to pull chart 6.3.0 so looks as though this is an azure cr specific issue. I can work around this by creating image repo's and policies, updating the chart version with the image automation tools but it seems unnecessary if this should be a supported feature.Steps to reproduce
spec.version
Expected behavior
Tags from oci repository are pulled and evaluated base on SemVer and Chart or Release is created successfully
Screenshots and recordings
No response
OS / Distro
ubuntu 20.04 LTS
Flux version
v0.38.3
Flux check
34 ► checking prerequisites
33 ✔ Kubernetes 1.24.6 >=1.20.6-0
32 ► checking controllers
31 ✔ helm-controller: deployment ready
30 ► ghcr.io/fluxcd/helm-controller:v0.28.1
29 ✔ image-automation-controller: deployment ready
28 ► ghcr.io/fluxcd/image-automation-controller:v0.28.0
27 ✔ image-reflector-controller: deployment ready
26 ► ghcr.io/fluxcd/image-reflector-controller:v0.23.1
25 ✔ kustomize-controller: deployment ready
24 ► ghcr.io/fluxcd/kustomize-controller:v0.32.0
23 ✔ notification-controller: deployment ready
22 ► ghcr.io/fluxcd/notification-controller:v0.30.2
21 ✔ source-controller: deployment ready
20 ► ghcr.io/fluxcd/source-controller:v0.33.0
19 ► checking crds
18 ✔ alerts.notification.toolkit.fluxcd.io/v1beta2
17 ✔ buckets.source.toolkit.fluxcd.io/v1beta2
16 ✔ gitrepositories.source.toolkit.fluxcd.io/v1beta2
15 ✔ helmcharts.source.toolkit.fluxcd.io/v1beta2
14 ✔ helmreleases.helm.toolkit.fluxcd.io/v2beta1
13 ✔ helmrepositories.source.toolkit.fluxcd.io/v1beta2
12 ✔ imagepolicies.image.toolkit.fluxcd.io/v1beta1
11 ✔ imagerepositories.image.toolkit.fluxcd.io/v1beta1
10 ✔ imageupdateautomations.image.toolkit.fluxcd.io/v1beta1
9 ✔ kustomizations.kustomize.toolkit.fluxcd.io/v1beta2
8 ✔ ocirepositories.source.toolkit.fluxcd.io/v1beta2
7 ✔ providers.notification.toolkit.fluxcd.io/v1beta2
6 ✔ receivers.notification.toolkit.fluxcd.io/v1beta2
5 ✔ all checks passed
Git provider
No response
Container Registry provider
Azure cr
Additional context
This is successful in pulling
This is not
Code of Conduct
The text was updated successfully, but these errors were encountered: