Skip to content
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

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

Open
fabiocruzcoelho opened this issue Nov 29, 2023 · 0 comments

Comments

@fabiocruzcoelho
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant