kubescape / storage

Apache License 2.0
1 stars 6 forks source link

Updating the syft format #75

Closed dwertent closed 6 months ago

dwertent commented 7 months ago

Type

Enhancement, Tests


Description

This PR primarily focuses on enhancing the Syft format and adding cleanup tests. The main changes include:


PR changes walkthrough

Relevant files                                                                                                                                 
Tests
5 files
cleanup_test.go                                                                                         
    pkg/cleanup/cleanup_test.go

    This file is newly added and contains tests for the cleanup
    task. It includes the creation of a cleanup handler,
    starting the cleanup task, and asserting the expected files
    to delete.
+169/-0
networkpolicy_test.go                                                                             
    pkg/apis/softwarecomposition/networkpolicy/networkpolicy_test.go

    This file contains modifications to the network policy
    tests. The changes include the removal of some test cases
    and the addition of new ones, specifically for handling the
    same ports with different addresses and same ports for pod
    traffic.
+350/-39
discovery_test.go                                                                                     
    pkg/cleanup/discovery_test.go

    This file is newly added and likely contains tests related
    to resource discovery for the cleanup process. It was not
    included in the diff, so the specific changes are not
    detailed.
+25/-0
utils_test.go                                                                                             
    pkg/cleanup/utils_test.go

    This file is newly added and likely contains tests for the
    utility functions used in the cleanup process. It was not
    included in the diff, so the specific changes are not
    detailed.
+27/-0
storage_test.go                                                                                         
    pkg/registry/file/storage_test.go

    This file likely contains modifications related to tests for
    file storage. It was not included in the diff, so the
    specific changes are not detailed.
+4/-4
Enhancement
12 files
cleanup.go                                                                                                   
    pkg/cleanup/cleanup.go

    This file is newly added and contains the main cleanup
    functionality. It was not included in the diff, so the
    specific changes are not detailed.
+211/-0
discovery.go                                                                                               
    pkg/cleanup/discovery.go

    This file is newly added and likely contains functionality
    related to resource discovery for the cleanup process. It
    was not included in the diff, so the specific changes are
    not detailed.
+159/-0
utils.go                                                                                                       
    pkg/cleanup/utils.go

    This file is newly added and likely contains utility
    functions for the cleanup process. It was not included in
    the diff, so the specific changes are not detailed.
+66/-0
zz_generated.openapi.go                                                                         
    pkg/generated/openapi/zz_generated.openapi.go

    This file likely contains generated OpenAPI specifications.
    It was not included in the diff, so the specific changes are
    not detailed.
+1/-105
storage.go                                                                                                   
    pkg/registry/file/storage.go

    This file likely contains modifications related to file
    storage. It was not included in the diff, so the specific
    changes are not detailed.
+17/-17
packagemetadata.go                                                                                   
    pkg/apis/softwarecomposition/packagemetadata/packagemetadata.go

    This file likely contains modifications related to package
    metadata. It was not included in the diff, so the specific
    changes are not detailed.
+104/-6
networkpolicy.go                                                                                       
    pkg/apis/softwarecomposition/networkpolicy/networkpolicy.go

    This file likely contains modifications related to network
    policies. It was not included in the diff, so the specific
    changes are not detailed.
+141/-0
syfttypes.go                                                                                               
    pkg/apis/softwarecomposition/v1beta1/syfttypes.go

    This file likely contains modifications related to Syft
    types. It was not included in the diff, so the specific
    changes are not detailed.
+5/-24
syfttypes.go                                                                                               
    pkg/apis/softwarecomposition/syfttypes.go

    This file likely contains modifications related to Syft
    types. It was not included in the diff, so the specific
    changes are not detailed.
+5/-24
configurationscansummarystorage.go                                                   
    pkg/registry/file/configurationscansummarystorage.go

    This file likely contains modifications related to
    configuration scan summary storage. It was not included in
    the diff, so the specific changes are not detailed.
+3/-3
vulnerabilitysummarystorage.go                                                           
    pkg/registry/file/vulnerabilitysummarystorage.go

    This file likely contains modifications related to
    vulnerability summary storage. It was not included in the
    diff, so the specific changes are not detailed.
+3/-3
main.go                                                                                                         
    main.go

    This file likely contains modifications related to the main
    function of the application. It was not included in the
    diff, so the specific changes are not detailed.
+18/-0

User description

Sorry, we do not accept changes directly against this repository. Please see CONTRIBUTING.md for information on where and how to contribute instead.

github-actions[bot] commented 7 months ago

Summary:

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

PR Description updated to latest commit (https://github.com/kubescape/storage/commit/5323a413f2ddf649621e5a30ec616ae2d9fe8383)

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

PR Analysis

How to use

Instructions > To invoke the PR-Agent, add a comment using one of the following commands: > **/review**: Request a review of your Pull Request. > **/describe**: Update the PR title and description based on the contents of the PR. > **/improve [--extended]**: Suggest code improvements. Extended mode provides a higher quality feedback. > **/ask \**: Ask a question about the PR. > **/update_changelog**: Update the changelog based on the PR's contents. > **/add_docs**: Generate docstring for new components introduced in the PR. > **/generate_labels**: Generate labels for the PR based on the PR's contents. > see the [tools guide](https://github.com/Codium-ai/pr-agent/blob/main/docs/TOOLS_GUIDE.md) for more details. >To edit any configuration parameter from the [configuration.toml](https://github.com/Codium-ai/pr-agent/blob/main/pr_agent/settings/configuration.toml), add --config_path=new_value. >For example: /review --pr_reviewer.extra_instructions="focus on the file: ..." >To list the possible configuration parameters, add a **/config** comment.
github-actions[bot] commented 7 months ago

Summary:

matthyx commented 7 months ago

@dwertent can you check your commits, I see merge commits there

dwertent commented 7 months ago

@matthyx yes, I had some conflicts I needed to solve.

matthyx commented 7 months ago

@matthyx yes, I had some conflicts I needed to solve.

so please rebase or squash, this is messy

github-actions[bot] commented 6 months ago

Summary: