zegl / kube-score

Kubernetes object analysis with recommendations for improved reliability and security. kube-score actively prevents downtime and bugs in your Kubernetes YAML and Charts. Static code analysis for Kubernetes.
https://kube-score.com
MIT License
2.75k stars 177 forks source link

render/junit: add new output #603

Closed sebhoss closed 2 months ago

sebhoss commented 3 months ago

This produces JUnit XML compatible output when the 'junit' output format is specified.

Fixes #459

RELNOTE: Add JUnit output format option
zegl commented 3 months ago

Thanks for the PR! I'll take a look at it over the weekend.

sebhoss commented 3 months ago

thanks a lot! I wasn't really sure about the data structures used by kube-scoren, so I'm happy to change all code in this PR to whatever works best for you 👍

gruzchik commented 2 months ago

Hey guys! @zegl , @sebhoss could you please let us know when you merge and update this feature. We are using Gitlab and I have proposed to use kube-score for validation, it would be nice to be able to use JUnit to implement kube-score

zegl commented 2 months ago

I found that the output format was not added to main.go (and was not considered a valid option), other than that, looks good!

sebhoss commented 2 months ago

This is really cool - thanks a lot @zegl!

gruzchik commented 2 months ago

@sebhoss , @zegl very appreciated for your work! I'm looking forward to adding this update to the release, it would be nice to have opportunity to use this as an official stable version