kubescape / storage

Apache License 2.0
1 stars 6 forks source link

Feat syft sboms #68

Closed vladklokun closed 9 months ago

vladklokun commented 9 months ago

PR Type:

Enhancement


PR Description:

This PR introduces changes to migrate from SPDX to Syft Software Bill of Materials (SBOMs). The main changes include:


PR Main Files Walkthrough:

files: - `pkg/apis/softwarecomposition/v1beta1/zz_generated.deepcopy.go`: Updated the autogenerated deepcopy functions to include the new Syft types. - `pkg/registry/softwarecomposition/sbomsyfts/strategy.go`: Introduced a new strategy for SBOMSyft, including functions for object validation, preparation for create/update, and other necessary operations. - `pkg/apis/softwarecomposition/v1beta1/syfttypes.go`: Added new Syft types to the software composition API. - `pkg/generated/clientset/versioned/typed/softwarecomposition/v1beta1/sbomsyft.go`: Generated clientset for the new SBOMSyft type. - `pkg/generated/listers/softwarecomposition/v1beta1/sbomsyft.go`: Generated listers for the new SBOMSyft type. - `pkg/generated/informers/externalversions/softwarecomposition/v1beta1/sbomsyft.go`: Generated informers for the new SBOMSyft type. - `pkg/apis/softwarecomposition/packagemetadata/packagemetadata.go`: Updated the package metadata to accommodate the new Syft types. - `pkg/registry/softwarecomposition/sbomsyfts/etcd.go`: Added new functions to handle SBOMSyft objects in etcd storage. - `pkg/apiserver/apiserver.go`: Updated the API server to handle requests related to the new SBOMSyft type. - `pkg/cmd/server/start.go`: Updated the server start command to include the new SBOMSyft type.

User Description:

What this PR changes?

This PR adds Custom Resources needed to migrate from SPDX to Syft SBOMs.

codiumai-pr-agent[bot] commented 9 months ago

PR Analysis

How to use

To invoke the PR-Agent, add a comment using one of the following commands: /review [-i]: Request a review of your Pull Request. For an incremental review, which only considers changes since the last review, include the '-i' option. /describe: Modify the PR title and description based on the contents of the PR. /improve [--extended]: Suggest improvements to the code in the PR. Extended mode employs several calls, and provides a more thorough feedback. /ask \<QUESTION>: Pose a question about the PR. /update_changelog: Update the changelog based on the PR's contents.

To edit any configuration parameter from configuration.toml, add --config_path=new_value For example: /review --pr_reviewer.extra_instructions="focus on the file: ..." To list the possible configuration parameters, use the /config command.

github-actions[bot] commented 9 months ago

Summary:

github-actions[bot] commented 9 months ago

Summary: