Coder Social home page Coder Social logo

Comments (7)

eddycharly avatar eddycharly commented on July 17, 2024 1

@naseemkullah I just tried to quote the 0 and it is working fine. Indeed the if in the template with the 0 was the issue.

Thank you for your help 👍

from helm-charts.

eddycharly avatar eddycharly commented on July 17, 2024 1

Sure, that’s why I suggested the array approach. It’s usually less error prone.

For exemple, as you don’t quote the value it could be problematic with strings that contain spaces, etc...

from helm-charts.

naseemkullah avatar naseemkullah commented on July 17, 2024

Hi @eddycharly it is intended to but there might be a bug, could you display the templated args via helm template ?

from helm-charts.

eddycharly avatar eddycharly commented on July 17, 2024

Sure, the templated args are as follows:

        args:
          - --es.num-shards=2
          - --es.num-replicas=0

How about making cmdlineParams an array instead of a map ? I could simply:

collector:
  cmdlineParams:
    - --es.num-shards
    - '2'
    - --es.num-replicas
    - '0'

from helm-charts.

naseemkullah avatar naseemkullah commented on July 17, 2024

Sure, the templated args are as follows:

        args:
          - --es.num-shards=2
          - --es.num-replicas=0

That's weird, I got

        args:
          - --es.num-replicas
          - --es.num-shards=2

which would explain the error you get. Could you try the templating again and double check?

However, in my case if quoting the 0 as "0" in the values file, it does result in the desired:

        args:
          - --es.num-replicas=0
          - --es.num-shards=2

which works.

Although not ideal, I believe that is the workaround we'll have to live with for now, please quote the 0 in your values file and let me know how it goes!

from helm-charts.

naseemkullah avatar naseemkullah commented on July 17, 2024

Great!

from helm-charts.

naseemkullah avatar naseemkullah commented on July 17, 2024

so we put that if there to accomodate valueless boolean type args @pavelnikolov just thought to keep you up to date, this can have negative consequences for values of 0 for int values such as replica count for es indices

from helm-charts.

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.