Skip to content

Helm chart numeric values bigger than or equal to 1000000 is converted to exponential form #3145

@maeb

Description

@maeb

Issue

We configured:

# values.yaml
max_pages_per_crawl: 1000000

This ends up in the configmap backend-env-config as:

MAX_PAGES_PER_CRAWL: "1e+06"

which does not play nice with:

maxPagesPerCrawl=int(os.environ.get("MAX_PAGES_PER_CRAWL", 0)),

The conversion to exponential form is helm's doing:

MAX_PAGES_PER_CRAWL: "{{ .Values.max_pages_per_crawl | default 0 }}"

See helm/helm#12195.

Workaround

Seems like a workaround is to use quotes (not tested):

# values.yaml
max_pages_per_crawl: "1000000"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions