Giter Site home page Giter Site logo

Comments (7)

travisghansen avatar travisghansen commented on July 17, 2024 1

Never used it but looks cool. The idea would be to pass the entire output through vals as a post processing pass?

from argo-cd-helmfile.

travisghansen avatar travisghansen commented on July 17, 2024 1

I didn't even read that, but this works as well:

# both syntaxes below work for me
releases:
- name: grafana
  namespace: monitoring
  chart: stable/grafana
  set:
  - name: adminPassword
    value: ref+envsubst://$VAR1
  ...
  values:
  - adminPassword: ref+envsubst://$VAR1

from argo-cd-helmfile.

travisghansen avatar travisghansen commented on July 17, 2024

https://github.com/travisghansen/argo-cd-helmfile/blob/master/src/argo-cd-helmfile.sh#L406

from argo-cd-helmfile.

crabique avatar crabique commented on July 17, 2024

Yes, in my specific use case I'm interested in fetching data directly from terraform statefile on an S3 bucket into the environment helmfile so it's available as a .StateValue, but it seems there's no real difference as the processing can only happen after helmfile template output.

from argo-cd-helmfile.

travisghansen avatar travisghansen commented on July 17, 2024

Yeah, so basically all we need to do would be something like this:

  export HELMFILE_POST_PROCESS=" | vals eval -f - "

    ${helmfile} \
      template \
      --skip-deps ${INTERNAL_HELMFILE_TEMPLATE_OPTIONS} \
      --args "${INTERNAL_HELM_TEMPLATE_OPTIONS} ${HELM_TEMPLATE_OPTIONS}" \
      ${HELMFILE_TEMPLATE_OPTIONS} ${HELMFILE_POST_PROCESS}
    ;;

from argo-cd-helmfile.

travisghansen avatar travisghansen commented on July 17, 2024

From what I can tell helmfile already has support for this built-in. My testing shows the refs/values being rendered without even installing the vals binary independently.

from argo-cd-helmfile.

crabique avatar crabique commented on July 17, 2024

Oh my, you are right, I just searched their documentation by ref keyword and found this: https://helmfile.readthedocs.io/en/latest/remote-secrets/

Sorry 😄

Thanks for the very quick response!

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.