-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
tools/bug-report: Reduce k8s API calls via "get" not "describe" #47918
tools/bug-report: Reduce k8s API calls via "get" not "describe" #47918
Conversation
Signed-off-by: Tony Allen <tony@allen.gg>
Signed-off-by: Tony Allen <tony@allen.gg>
// GetDescribePods returns describe pods for istioNamespace. | ||
func GetDescribePods(p *Params) (map[string]string, error) { | ||
// GetPodInfo returns pod details for istioNamespace. | ||
func GetPodInfo(p *Params) (map[string]string, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think GetK8sResources already includes pods. We can add nodes
there as well?
Confusingly, all
doesn't mean all. It includes pods, but not nodes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I put a hold if you have a chance to address the other comment.
Thanks!
Signed-off-by: Tony Allen <tony@allen.gg>
In response to a cherrypick label: new pull request created: #48216 |
The
istioctl bug-report
will use theget pods
andget nodes
commands for the report instead ofdescribe ...
. This reduces the amount of calls made to the k8s API and speeds up the generation of the bug report tool.