-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Application fails to synchronize - error: plugin sidecar failed. error generating manifests in cmp #13539
Comments
same here |
There may be an underlying issue. An unrelated application deployed to a separate K8s cluster (managed with ArgoCD) seems to be suffering a similar problem. The error seen in ArgoCD for this app is slightly different, but the nested error seems to be the same: I have found existing tickets that seem to be very relevant. helm/helm#11369 and helm/helm#11372. |
Hi guys, I got a similar issue but I am in argocd 2.7.1 and the helm repository in the Chart.yaml is private which required username and password to login. I did set the repository correctly in ArgoCD level [ref] Wondering if this behaviour is expected, at this moment I am thinking to embed the helm repo in a customise plugin image as a workaround. |
same here EDITED, In my case it is caused by the argo-vault-plugin so once I uninstalled the argo-vault-plugin the problem has gone |
It's expected. We can't safely send all repo credentials to the sidecar, because it's likely more credentials than 1) the app needs and 2) the app's project has access to. We need to design a way, ideally, for the sidecar to request exactly what credentials it needs and then for Argo CD to supply those if and only if the project has access to them. Someone in Slack a few days ago mentioned they'd write a proposal. Related: #8820 |
Any updates on this issue? |
You can get This can be automated by parsing the result of # add the helm repos for the chart dependencies
helm dependency list --max-col-width 10000 "./path/to/chart" | awk 'NR>1 {print $1,$3}' | while read -r name url; do
if [[ -n "$name" && -n "$url" ]]; then
helm repo add "$name" "$url" --insecure-skip-tls-verify
fi
done
# update the helm dependencies
helm dependency update "./path/to/chart" Note, I added |
@thesuperzapper Thanks for commenting on this issue. I used the same workaround to add the required Helm repositories during the init phase. I would like to see here a definitive solution to propagate the credentials from the Argo CD container into the CMP containers. |
Hi everyone, I have found a few issues with my solution from #13539 (comment):
Here is my new solution: # add the helm repos for the chart dependencies
helm dependency list --max-col-width 10000 "./path/to/chart" | awk 'NR>1 {print $1,$3}' | while read -r name url; do
if [[ -n "$name" && -n "$url" && "$url" =~ "^https?://" ]]; then
helm repo add "$name" "$url" --force-update
fi
done
# update the helm dependencies
helm dependency update "./path/to/chart" |
Bumped into the same issue when migrated from 2.7.3 to 2.8.x What seems to work for us is to remove requirements.yaml and move any dependencies to Chart.yaml... |
Hi there, Maybe I'm missing something, but I can't understand the workaround mentioned of using helm repo add The conclusion at the moment is that you cannot use the avp plugin with helm repos with credentials ? Thanks in advance. |
Checklist:
argocd version
.Describe the bug
We have a Kubernetes cluster where we use ArgoCD to manage and synchronize updates. We recently upgraded ArgoCD to version v2.5.15 and also did the work to switch from using plugins to sidecars. Everything appears to be in good condition, with one exception. An application fails to synchronize with the message:
The application is deployed via a Helm chart. The chart does not have any external dependencies.
To Reproduce
Not sure what to tell you here. As mentioned above, it is an internal application that is failing to synchronize with ArgoCD. This is happening within our company internal network.
Expected behavior
For the application to be successfully synchronized when updates are committed to our GitLab repository being monitored by ArgoCD.
Screenshots
Version
Paste the output from `argocd version` here. argocd: v2.5.15+64a7bb8 BuildDate: 2023-03-16T22:34:19Z GitCommit: 64a7bb8f02238777ec45752d7655dba505eed889 GitTreeState: clean GoVersion: go1.18.10 Compiler: gc Platform: linux/amd64
Logs
I do not know if it would be helpful, but I am including what I think are relevant files.
The main Chart.yaml:
and the associated values.yaml:
A K8s cluster-specific Chart.yaml to deploy the app to the cluster:
and its values.yaml:
Our cmp-plugin:
The text was updated successfully, but these errors were encountered: