argo-cd: helm dependency build is failing with subchart
Error
rpc error: code = Unknown desc = `sh -c helm dependency build` failed exit status 1: Error: no cached repository for helm-manager-ebe10bb4e257360e3453a37c457759ba554bc3a2fd86e79d6f93e4d119b0e1e2 found. (try 'helm repo update'): open /home/argocd/.cache/helm/repository/helm-manager-ebe10bb4e257360e3453a37c457759ba554bc3a2fd86e79d6f93e4d119b0e1e2-index.yaml: no such file or directory
Chart.yaml
apiVersion: v2
name: cert-manager
version: 0.0.1
dependencies:
- name: cert-manager
version: v1.4.0
repository: https://charts.jetstack.io
Plugin
configManagementPlugins: |-
- name: argocd-vault-plugin-helm
init:
command: ["sh", "-c"]
args: ["helm dependency build"]
generate:
command: ["sh", "-c"]
args: ["helm template ${helm_args} . > all.yaml && argocd-vault-plugin generate all.yaml"]
Versions
argocd@argocd-server-7d859b554f-kl9m4:~$ helm version
version.BuildInfo{Version:"v3.6.0", GitCommit:"7f2df6467771a75f5646b7f12afb408590ed1755", GitTreeState:"clean", GoVersion:"go1.16.3"}
argocd@argocd-server-7d859b554f-kl9m4:~$ argocd version
argocd: v2.1.1+aab9542
BuildDate: 2021-08-25T15:12:04Z
GitCommit: aab9542f8b3354f0940945c4295b67622f0af296
GitTreeState: clean
GoVersion: go1.16.5
Compiler: gc
Platform: linux/amd64
FATA[0000] Argo CD server address unspecified
https://www.gitmemory.com/issue/unbroken-dome/gradle-helm-plugin/102/850499759
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 4
- Comments: 33 (27 by maintainers)
Commits related to this issue
- #7144 fix: add custom volume as Helm working dir (#7162) #7144 fix: add custom volume as Helm working dir (#7162) Signed-off-by: irizzant <i.rizzante@gmail.com> — committed to argoproj/argo-cd by irizzant 3 years ago
- #7144 fix: add custom volume as Helm working dir (#7162) #7144 fix: add custom volume as Helm working dir (#7162) Signed-off-by: irizzant <i.rizzante@gmail.com> Signed-off-by: viktorplakida <plakyda... — committed to plakyda-codefresh/argo-cd by irizzant 3 years ago
Please review https://github.com/argoproj/argo-cd/pull/7162
To me this works like a charm.
Waiting for the approval, you can also use the following kustomize patch:
@rwong2888 I did not use argocd-vault-plugin. In my plugin, I used below to test if plugin can resolve dependencies.