Describe the bug
Argocd pull unexisting version of oci chart.
I'm using OCI harbor registry on premise. On specific application Argo is set on helm repository with tag policy "0.x" it seem argocd trying to pull wrong version of chart.
To Reproduce
On same harbor projet create :
- 1 container tag v0.0.19
- 1 helm release 0.0.17
Create argo application :
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: myapp
namespace: argocd
spec:
destination:
namespace: ns
server: https://kubernetes.default.svc
project: argoproj
source:
chart: chartname
repoURL: harbor.tld/project
targetRevision: 0.x
syncPolicy:
automated:
prune: true
Expected behavior
Argo should fetch the most recent version of the Helm chart that aligns with the release pattern policy.
helm show all oci://harbor.tld/project/mychart
Pulled: harbor.tld/project/mychart:0.0.17
Digest: sha256:93f5c1671b9ae9b50b29f49e73f770c9f0feec65e11cc1ab58ce28d414167ab9
apiVersion: v2
appVersion: v0.0.19
description: blabla
name: mychart
type: application
version: 0.0.17
Version
argocd version
argocd: v3.0.3+a14b012
BuildDate: 2025-05-21T18:19:53Z
GitCommit: a14b0125fe02ff953caffc59e55016e5872d45bf
GitTreeState: clean
GoVersion: go1.24.1
Compiler: gc
Platform: linux/amd64
Logs
time="2025-05-24T11:48:21Z" level=info msg="took to get tags" chart=back-client repo=harbor.tld/project seconds=0.372356883
time="2025-05-24T11:48:21Z" level=warning msg="Failed to store tags list cache for repo: harbor.tld/project/mychart: helm index data is nil, skipping cache"
time="2025-05-24T11:48:21Z" level=info msg="manifest cache miss: &ApplicationSource{RepoURL:harbor.tld/project,Path:,TargetRevision:0.x,Helm:nil,Kustomize:nil,Directory:nil,Plugin:nil,Chart:back-client,Ref:,Name:,}/0.0.19"
time="2025-05-24T11:48:21Z" level=info msg="helm registry login harbor.tld/project --username ****** --password ******" dir= execID=0a048
time="2025-05-24T11:48:22Z" level=info msg=Trace args="[helm registry login harbor.tld/project --username ****** --password ******" dir= operation_name="exec helm" time_ms=527.192011
time="2025-05-24T11:48:22Z" level=info msg="helm pull oci://harbor.tld/project/mychart --version 0.0.19 --destination /tmp/8edc4057-0e64-4c4b-b6de-720d9442a902" dir= execID=9a984
time="2025-05-24T11:48:22Z" level=error msg="`helm pull oci://harbor.tld/project/mychart --version 0.0.19 --destination /tmp/8edc4057-0e64-4c4b-b6de-720d9442a902` failed exit status 1: Error: harbor.tld/project/mychart:0.0.19: not found" execID=9a984
time="2025-05-24T11:48:22Z" level=info msg=Trace args="[helm pull oci://harbor.tld/project/mychart --version 0.0.19 --destination /tmp/8edc4057-0e64-4c4b-b6de-720d9442a902]" dir= operation_name="exec helm" time_ms=352.630436
time="2025-05-24T11:48:22Z" level=info msg="helm registry logout harbor.tld/project" dir= execID=a7369
time="2025-05-24T11:48:22Z" level=info msg=Trace args="[helm registry logout harbor.tld/project]" dir= operation_name="exec helm" time_ms=97.365621
time="2025-05-24T11:48:22Z" level=error msg="finished call" grpc.code=Unknown grpc.component=server grpc.error="error pulling OCI chart: failed to pull OCI chart: failed to get command args to log: `helm pull oci://harbor.tld/project/mychart --version 0.0.19 --destination /tmp/8edc4057-0e64-4c4b-b6de-720d9442a902` failed exit status 1: Error: harbor.tld/project/mychart:0.0.19: not found" grpc.method=GenerateManifest grpc.method_type=unary grpc.service=repository.RepoServerService grpc.start_time="2025-05-24T11:48:21Z" grpc.time_ms=1356.282 peer.address="10.42.1.240:33292" protocol=grpc
Describe the bug
Argocd pull unexisting version of oci chart.
I'm using OCI harbor registry on premise. On specific application Argo is set on helm repository with tag policy "0.x" it seem argocd trying to pull wrong version of chart.
To Reproduce
On same harbor projet create :
Create argo application :
Expected behavior
Argo should fetch the most recent version of the Helm chart that aligns with the release pattern policy.
Version
Logs