instrumenta / kubeval

Validate your Kubernetes configuration files, supports multiple Kubernetes versions
https://kubeval.com
Other
3.16k stars 229 forks source link

Adds support for junit output #317

Closed goober closed 2 years ago

goober commented 2 years ago

This pull request aims to add support for outputing the result in a junit xml compatible format and hence fix #289

It is currently heavily inspired by the implementation done in kubeconform and are still a work in progress. However, I wanted to open a draft to get the discussion started.

It can be tested by adding the -o junit to the kubeval command

I needed to change the error log output to print to stderr to not poison the resulting xml when piping stdout to a file. However, it would be preferable to add the errors to the result and let the outputManager decide how to print those errors as well.

hron84 commented 2 years ago

AFAIK JUnit format has some directives for containing an error message (exception) separated from failure messages.

galshi commented 2 years ago

Hi, any updates on this?

goober commented 2 years ago

@galshi No updates from my side unfortunately. However, we went forward with switching to kubeconform instead to get this functionality.