Helm generator generates invalid Helm runner arguments for empty objects and arrays · Issue #663 · capactio/capact · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The command capact manifest generate implementation helm ..., as well as the interactive capact manifest generate commands, generate invalid input arguments for Helm runner, when there are empty objects and arrays inside values.yaml file.
Uh oh!
There was an error while loading. Please reload this page.
Description
The command
capact manifest generate implementation helm ...
, as well as the interactivecapact manifest generate
commands, generate invalid input arguments for Helm runner, when there are empty objects and arrays insidevalues.yaml
file.Expected behavior
For the following values.yaml:
The result should be:
And for each object, we should include
additionalParameters: true
in JSON schema to highlight, that there might be custom properties to define.Actual behavior
where the
default(None) | tojson
jinja2 renders tonull
, and JSON schema says by default it is empty array:Also, an empty object is rendered as:
so, according to JSON schema, you cannot define any properties.
Steps to reproduce
Generate manifests:
See the generated Implementation manifest:
Observe the following:
Instead of:
The text was updated successfully, but these errors were encountered: