-
Notifications
You must be signed in to change notification settings - Fork 198
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
sh -c helm dependency build
failed exit status 1: Error: no cached repository
#393
Comments
This might help argoproj/argo-cd#7768 i dont think this is an AVP issue but a larger Helm with Argo CD thing. |
You get this error Here, setting the HOME environment variable to /tmp has solved the issue. |
For more fine-grained control, it's also possible to set just Helm variables:
After this, there may still be an error because Helm doesn't know about the dependency repo.
|
I think I ran into a similar issue. I got the following error in my ArgoCD UI:
I also used |
Add env |
I spent quite some time trying to set this plugin up for applications with dependencies. Turns out it's easier to not go through all these hoops to restore default behavior and instead use https://github.com/crumbhole/argocd-lovely-plugin which has a nice feature to chain plugins. There's also a build of it which has this vault plugin bundled and ready to use out of the box. |
Describe the bug
An Argo CD application is configured to use the vault plugin with an umbrella Helm Chart hosted in git:
The umbrella Chart has another Helm Chart as dependency.
The plugin is configured like this:
Both the git repo and the Helm repo are successfully added in Argo CD as repositories.
The "helm dependency build" command fails with the following error message:
Expected behavior
Dependencies should be downloaded
Additional context
Red Hat OpenShift GitOps 1.5.5
argocd-vault-plugin v1.12.0
OpenShift version 4.8.44
Kubernetes version v1.21.11+6b3cbdd
Argo CD
{
"Version": "v2.3.7+unknown",
"BuildDate": "2022-08-01T21:40:18Z",
"GitTreeState": "clean",
"GoVersion": "go1.17.12",
"Compiler": "gc",
"Platform": "linux/amd64",
"KsonnetVersion": "unable to determine ksonnet version: exec: "ks": executable file not found in $PATH",
"KustomizeVersion": "v4.4.1 1970-01-01T00:00:00Z",
"HelmVersion": "v3.8.0+g7ddadb4",
"KubectlVersion": "v0.23.1",
"JsonnetVersion": "v0.18.0"
}
The text was updated successfully, but these errors were encountered: