Giter Site home page Giter Site logo

Comments (6)

abrarcv170 avatar abrarcv170 commented on September 18, 2024 1
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: testapp
  namespace: default
spec:
  destination:
    namespace: default
    server: https://kubernetes.default.svc
  project: default
  source:
    repoURL: https://github.com/abrarcv170/helmfiletest.git
    #targetRevision: main
    path: new/
    plugin:
      env:
      - name: HELMFILE_GLOBAL_OPTIONS
        value: --file new/helmfile.yaml  
      name: helmfile 
      ```

from argo-cd-helmfile.

travisghansen avatar travisghansen commented on September 18, 2024

I’ll need more info. Can you send over the deployment and also the application yaml you’re attempting to use?

from argo-cd-helmfile.

abrarcv170 avatar abrarcv170 commented on September 18, 2024

https://github.com/abrarcv170/helmfiletest.git ,this is a public repo you can check the helmfile .

from argo-cd-helmfile.

abrarcv170 avatar abrarcv170 commented on September 18, 2024
kubeVersionOverride: "1.16.15"
repoServer:
  initContainers:
  - name: download-tools
    image: alpine:3.8
    command: [sh, -c]
    args:
      - wget -qO /custom-tools/argo-cd-helmfile.sh https://raw.githubusercontent.com/travisghansen/argo-cd-helmfile/master/src/argo-cd-helmfile.sh &&
        chmod +x /custom-tools/argo-cd-helmfile.sh &&
        wget -qO /custom-tools/helmfile https://github.com/roboll/helmfile/releases/download/v0.138.7/helmfile_linux_amd64 &&
        chmod +x /custom-tools/helmfile
    volumeMounts:
      - mountPath: /custom-tools
        name: custom-tools
  volumeMounts:
  - mountPath: /usr/local/bin/argo-cd-helmfile.sh
    name: custom-tools
    subPath: argo-cd-helmfile.sh
  - mountPath: /usr/local/bin/helmfile
    name: custom-tools
    subPath: helmfile
  volumes:
  - name: custom-tools
    emptyDir: {}

This is the helm value file of argocd

from argo-cd-helmfile.

travisghansen avatar travisghansen commented on September 18, 2024

ok, and in the server config you'll need something like this:

    configManagementPlugins: |
      - name: helmfile
        init:                          # Optional command to initialize application source directory
          command: ["argo-cd-helmfile.sh"]
          args: ["init"]
        generate:                      # Command to generate manifests YAML
          command: ["argo-cd-helmfile.sh"]
          args: ["generate"]

do you have that?

from argo-cd-helmfile.

abrarcv170 avatar abrarcv170 commented on September 18, 2024

yes i have .
[[ -v HELMFILE_HELMFILE ]]\n+ [[ ! -d .__argo-cd-helmfile.sh__helmfile.d ]]\n+ mkdir -p /tmp/argo-cd-helmfile.sh/apps/testapp\n+ [[ 3 -eq 2 ]]\n+ [[ 3 -eq 3 ]]\n+ export HELMFILE_HELM3=1\n+ HELMFILE_HELM3=1\n+ '[' '!' -z '' ']'\n+ /usr/local/bin/helmfile --helm-binary /usr/local/bin/helm --no-color --allow-no-matching-release --namespace default --file new/helmfile.yaml**repos\nspecified state file new/helmfile.yaml is not found"**grpc.code=Unknown grpc.method=GenerateManifest grpc.request.deadline="2022-08-31T08:31:47Z" grpc.service=repository.RepoServerService grpc.start_time="2022-08-31T08:30:47Z" grpc.time_ms=3.066 span.kind=server system=grpc

this is the logs from repo server pod

from argo-cd-helmfile.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.