kubescape / storage

Apache License 2.0
1 stars 6 forks source link

feat: add filtered SBOMs #3

Closed vladklokun closed 1 year ago

vladklokun commented 1 year ago

What this PR changes?

This PR defines types and adds the backing storage for the Filtered SPDX SBOMs custom resource.

Notes for the Reviewer

Note that zz_generated.*.go and pkg/generated are autogenerated files, so the pull request’s size is manageable.

vladklokun commented 1 year ago

@dwertent

You mean unit tests? There are unit tests, they are quite clever, and are run twice: on the whole schema and on a specific API group.

Type definitions are registered to the API Schema, and the API Schema is tested with fuzzy round trip tests in pkg/apis/softwarecomposition/install/roundtrip_test.go