argoproj-labs / argocd-operator

A Kubernetes operator for managing Argo CD clusters.

Home Page:https://argocd-operator.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multi-source app with plugin doesn't fill ref variable with source path

jpruciak opened this issue · comments

Describe the bug
App like this:

project: default
destination:
  server: 'https://kubernetes.default.svc'
  namespace: gitlab-runner
syncPolicy:
  syncOptions:
    - CreateNamespace=true
sources:
  - repoURL: 'https://gitlab.com/gitlab-org/charts/gitlab-runner.git'
    path: .
    targetRevision: v0.52.0
    plugin:
      name: argocd-vault-plugin-helm
      parameters:
        - name: VALUES_FILE
          string: $values/gitlab-runner/values.yaml
  - repoURL: 'git@gitlab.internal:deployment.git'
    targetRevision: main
    ref: values

Sends PARAM_VALUES_FILE=$values/gitlab-runner/values.yaml variable instead of replacing $values with path to second source.

Same thing with direct helm (not plugin) works as intended.

Additional context
argo version: 2.7.1