argoproj / argo-cd

Declarative Continuous Deployment for Kubernetes
https://argo-cd.readthedocs.io
Apache License 2.0
18.07k stars 5.53k forks source link

Deploy an application in ArgoCD using two plugins together #16246

Open devopsInterviews opened 1 year ago

devopsInterviews commented 1 year ago

Checklist:

Describe the bug

I am trying to deploy a Helm chart that uses argocd-vault-plugin using a Helmfile. When trying to use each plugin separately (helmfile plugin\ vault plugin) it works. When trying to depoy an app that needs to use both plugins the app is deployed but stays empty. Its status is synced and ok. There are no errors or information in the log that suggest what the problem is.

To Reproduce

Helmfile plugin configmap:

image

ArgoCD deployment patch for helmfile plugin:

image

ArgoCD vault plugin configmap:

image

ArgoCD deployment patch for vault plugin:

image
  1. When the application.yaml looks like this the mongodb chart is deployed but the vault secret values are not changed:
image

configmap manifest in argocd:

image
  1. When the application.yaml has no plugin specified or has the argocd-vault-plugin-helm specified the mongodb chart is not deployed but the application's status is ok:

    image
  2. When deploying the mongodb chart without a helmfile with the source being a helm repository and not a git repository it is deployed and the vault secret values are changed:

    image

Expected behavior

The vault secret values will be changed as expected when using a helmfile.yaml to deploy a chart that requires the argocd vault plugin

Screenshots

Version

argocd: v2.8.4+c279299
  BuildDate: 2023-09-13T19:43:37Z
  GitCommit: c27929928104dc37b937764baf65f38b78930e59
  GitTreeState: clean
  GoVersion: go1.20.7
  Compiler: gc
  Platform: linux/amd64
argocd-server: v2.8.3+77556d9

Logs

Paste any relevant application logs here.
reggie-k commented 3 months ago

Can https://github.com/crumbhole/argocd-lovely-plugin help?

andrii-korotkov-verkada commented 3 weeks ago

ArgoCD versions 2.10 and below have reached EOL. Can you upgrade and let us know if the issue is still present, please?