generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 33
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
[Policy Assistant] Avoid unnecessary api calls to get all the pods in the namespace. #236
Comments
gabrielggg
changed the title
Extra calls to API Server in some scenarios. Ideally, we'd get all pods in the namespace only once.
[Policy Assistant] Avoid multiple calls to API Server for getting all pods in the namespace.
Jun 18, 2024
gabrielggg
changed the title
[Policy Assistant] Avoid multiple calls to API Server for getting all pods in the namespace.
[Policy Assistant] Avoid multiple calls to API Server to get all the pods in the namespace.
Jun 18, 2024
/assign |
gabrielggg
changed the title
[Policy Assistant] Avoid multiple calls to API Server to get all the pods in the namespace.
[Policy Assistant] Avoid multiple calls to the API Server to get all the pods in the namespace.
Aug 4, 2024
gabrielggg
changed the title
[Policy Assistant] Avoid multiple calls to the API Server to get all the pods in the namespace.
[Policy Assistant] Avoid unnecessary api calls to get all the pods in the namespace.
Aug 4, 2024
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
k8s-ci-robot
added
the
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
label
Nov 2, 2024
/remove-lifecycle stale |
k8s-ci-robot
removed
the
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
label
Nov 11, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When calling functions that use the translate func (for example DeploymentsToTrafficPeers func), we are getting all the pods on the namespace one time per each deployment on that specific namespace , so that is not correct. Ideally, we'd get all pods in the namespace only once.
Example code snippet from DeploymentsToTrafficPeers func to take as reference (source file: https://github.com/kubernetes-sigs/network-policy-api/blob/main/cmd/policy-assistant/pkg/matcher/traffic.go):
And inside the translate func we are doing this call:
Originally posted by @huntergregory in #227 (comment)
The text was updated successfully, but these errors were encountered: