Code Monkey home page Code Monkey logo

Comments (5)

grundhoeferj avatar grundhoeferj commented on June 10, 2024 2

I solve the problem. Thanks to @jdn-za and @goloroden 😊

My solution is exactly like the approach from @goloroden

Call:

$ ./deploy < values.txt

The values.txt file contains all interactive user input. Each line describes one user input:

1
v0.19.0
v2.2.1
168h
40Gi
1Gi
5.1.1
v0.15.0-rc.1
v0.16.0-rc.3
v1.3.1
http://127.0.0.1:9090
http://127.0.0.1:9093
N
N
N
admin
secretPassword

from prometheus-kubernetes.

jdn-za avatar jdn-za commented on June 10, 2024

Would also like to have this option, either from cli and/or file/env vars

from prometheus-kubernetes.

jdn-za avatar jdn-za commented on June 10, 2024

turns out you can however use a here document or string https://www.gnu.org/software/bash/manual/bashref.html#Here-Documents

from prometheus-kubernetes.

goloroden avatar goloroden commented on June 10, 2024

@jdn-za I didn't know here documents until now, but I wonder if they work, whether one could not simply redirect stdin to be read from a file, like this:

$ ./deploy < values.txt

Would this work as well?

from prometheus-kubernetes.

grundhoeferj avatar grundhoeferj commented on June 10, 2024

@jdn-za Would you like to share an example? It would help me a lot! 😊

from prometheus-kubernetes.

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.