ComparisonError: Failed to load target state: failed to generate manifest for source 1 of 1: rpc error: code = Unknown desc = unable to resolve '0.10.5' to a commit SHA. Retrying attempt #3 at 12:49AM.
Additional context
The cluster-addons applications that point to 3rd party Helm charts (external-secrets, kube-prometheus-stack) would fail to sync and not deploy correctly. Helm charts and kustomize sources under cluster-addons would deploy without issues
external-secrets and kube-prometheus-stack fail to sync with the error message above.
Fix
Update the ApplicationSet to differentiate the applications it produces from those defined within cluster-addons:
template:
metadata:
name: '{{.path.basename}}-application' # used to be '{{.path.basename}}'
The code to reproduce the issue is available in this GitHub repository. The main branch contains the code that reproduces the bug, and the fix-name-conflict branch includes the fix.
Checklist:
argocd version
.Describe the bug
There is a naming conflict in a nested structure that prevents certain applications from deploying correctly.
To Reproduce Using the
main
branch of this repoappsets
folder containing an ApplicationSet.cluster-addons
folder.cluster-addons
folder contains:cluster-addons
are also named the same as their folder names:Expected behavior
Argo CD should provide helpful feedback on what is going wrong when it tries to deploy the applications.
Screenshots
Version
Logs
Additional context
The
cluster-addons
applications that point to 3rd party Helm charts (external-secrets, kube-prometheus-stack) would fail to sync and not deploy correctly. Helm charts and kustomize sources under cluster-addons would deploy without issuesexternal-secrets
andkube-prometheus-stack
fail to sync with the error message above.Fix
Update the ApplicationSet to differentiate the applications it produces from those defined within
cluster-addons
:The code to reproduce the issue is available in this GitHub repository. The
main
branch contains the code that reproduces the bug, and thefix-name-conflict
branch includes the fix.