-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add JSON output to CLI pipeline validation #313
Comments
I have also found that this |
Thanks for opening this! We have added it to the backlog and will assess priority |
Perhaps also an option to resolve templates, but with an acknowledgement that since templates can contain logic, they may not be expandable by the tool. I guess this could be worked around by allowing the user to specify environment variable values and telling the user what they need to supply when it's missing. Bonus points if there's a way for Go templates to list what variables they expect… |
The current behavior as of v0.17.0 now outputs the rendered template in YAML, but it also still outputs the "is valid" message, so piping the output to a |
Description
The Vela CLI tool can validate
.vela.yml
but it just outputs an "it's ok" message when evaluating locally. It'd be great if it could output the config as JSON as seemingly the remote validation can.Value
I'd like to extract information from .vela.yml via the commonly-installed
jq
program without having to install other tooling, e.g.yq
or writing a script that converts YAML to JSON but does so without validation and with a different YAML parser that may produce a different JSON result than Go's YAML library that Vela uses.My particular use case is extracting the Docker tag specified in the Vela config for use in a dev env build script.
Definition of Done
The
vela validate pipeline
program takes an option--output json
when in local mode and produces a JSON version of the.vela.yml
.Impacted Personas (Optional)
Folks building tools around Vela would benefit from being able to deal with materialized JSON instead of YAML.
The text was updated successfully, but these errors were encountered: