helmfile / vals

Helm-like configuration values loader with support for various sources
Apache License 2.0
515 stars 69 forks source link

Fetch integer value from JSON #190

Open artiotest opened 9 months ago

artiotest commented 9 months ago

Hello, I'm trying to fetch integer values from AWS SECRET MANAGER json document, but with vals seems not possibile. Is there a supported solution out of the box ?

Example JSON { "secret": { "test": 1 } }

ref+awssecrets://dev?region=eu-central-1#/secret/test

Result using vals eval -f: expand awssecrets://dev?region=eu-central-1#/secret/test: no value found for key secret/test

Thanks in advance

yxxhero commented 8 months ago

@ArtioDev PR is welcome.

jpascal commented 5 months ago

I looked through code and found problem, if value of key is not string you will get "no value found for key" error. I have no time to fix it, but I want to do it for support all types (int, string, array). @ArtioDev