kubescape / storage

Apache License 2.0
1 stars 6 forks source link

Add known servers #72

Closed Daniel-GrunbergerCA closed 8 months ago

Daniel-GrunbergerCA commented 8 months ago

Type

Enhancement


Description

This PR enhances the functionality of the application by implementing the retrieval of known servers from storage. The changes include:


PR changes walkthrough

Relevant files                                                                                                                                 
Enhancement
2 files
generatednetworkpolicy.go                                                                     
    pkg/registry/file/generatednetworkpolicy.go

    The `Get` and `GetList` methods were modified to fetch known
    servers from the real store and use them in generating
    network policies. A new constant `knownServersResource` was
    also added.
+15/-3
storage.go                                                                                                   
    pkg/registry/file/storage.go

    A new method `GetClusterScopedResource` was added to fetch
    all objects in a given cluster, given their API version and
    kind.
+48/-0

User description

retrieve known servers from real storage

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

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

codiumai-pr-agent[bot] commented 8 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 8 months ago

Summary: