-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add known servers #72
Conversation
Signed-off-by: Daniel Grunberger <danielgrunberger@armosec.io>
Signed-off-by: Daniel Grunberger <danielgrunberger@armosec.io>
Signed-off-by: Daniel Grunberger <danielgrunberger@armosec.io>
PR Description updated to latest commit (900b24a) |
PR Analysis
PR Feedback
How to useInstructions
|
Summary:
|
Type
Enhancement
Description
This PR enhances the functionality of the application by implementing the retrieval of known servers from storage. The changes include:
knownServersResource
in thegeneratednetworkpolicy.go
file.Get
andGetList
methods in thegeneratednetworkpolicy.go
file to fetch known servers from the real store and use them in generating network policies.GetClusterScopedResource
in thestorage.go
file to fetch all objects in a given cluster, given their API version and kind.PR changes walkthrough
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.
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.