-
-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jsonnet input type cannot output a string #431
Labels
Comments
uberspot
added a commit
that referenced
this issue
Dec 10, 2019
…an object with items. Now kapitan will convert to object before outputting.
uberspot
added a commit
that referenced
this issue
Dec 10, 2019
…an object with items. Now kapitan will convert to object before outputting.
uberspot
added a commit
that referenced
this issue
Dec 10, 2019
…an object with items. Now kapitan will convert to object before outputting. Also cover list and non-string use-cases
uberspot
added a commit
that referenced
this issue
Dec 10, 2019
…an object with items. Now kapitan will convert to object before outputting. Also cover list and non-string use-cases
uberspot
added a commit
that referenced
this issue
Dec 10, 2019
Fix issue #431: jsonnet compile fails for a single string that isn't …
Fixed on master. Added a test + a small doc update for it as well. |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug/feature
If a jsonnet component outputs a string instead of an object, Kapitan will crash during compilation:
To Reproduce
Steps to reproduce the behavior:
inventory/targets/test.yml
inventory/classes/test.yml
components/test.jsonnet
'test'
kapitan compile
Expected behavior
The output file contains a double-quoted string, which is valid JSON.
** If it's a bug (please complete the following information):**
python --version
: Python 2.7.16pip3 --version
: Not installed.Are you using pyenv or virtualenv?
: Neither, using static kapitan binary on Ubuntu 19.10The text was updated successfully, but these errors were encountered: