travisghansen / argo-cd-helmfile

Integration between argo-cd and helmfile
MIT License
213 stars 55 forks source link

Not allow helm valuesFiles path or Values file as block file with plugin helmfile #46

Open fabiocruzcoelho opened 9 months ago

fabiocruzcoelho commented 9 months ago

Hello, I would like to know if it is possible to configure the argocd application using the helmfile plugin.

E.g: argocd app Values file as block file

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: sample-app
  namespace: argocd
  labels:
    project: sample-app
  finalizers:
    - resources-finalizer.argocd.argoproj.io

spec:
  destination:
    namespace: sample-app
    server: https://kubernetes.default.svc

  project: sample-app
  source:
    path: helm
    repoURL: https://gitlab.hub.seguros.vitta.com.br/devops/sample-app.git
    targetRevision: develop

    # helm specific config
    helm:
      parameters:

      # Release name override (defaults to application name)
      releaseName: sample-app

      # Values file as block file
      values: |
        pods:
          image:
            name: ghcr.io/benc-uk/nodejs-demoapp
            tag: latest
        ingress:
          enabled: true
          ingressClassName: "nginx"
          hosts:
            - sample-app.devops.com
  syncPolicy:
    automated:
      prune: true
      selfHeal: true

E.g: argocd app ValuesFiles

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: sample-app
  namespace: argocd
  labels:
    project: sample-app
  finalizers:
    - resources-finalizer.argocd.argoproj.io

spec:
  destination:
    namespace: sample-app
    server: https://kubernetes.default.svc

  project: sample-app
  source:
    path: helm
    repoURL: https://gitlab.hub.seguros.vitta.com.br/devops/sample-app.git
    targetRevision: develop

    # helm specific config
    helm:
     - values-prod.yaml
     - values-dev.yaml
  syncPolicy:
    automated:
      prune: true
      selfHeal: true

When I pass the spec plugin {} with the spec helm it doesn't work, is this possible and can you help me.

Thanks