kubernetes-sigs / gateway-api

Repository for the next iteration of composite service (e.g. Ingress) and load balancing APIs.
https://gateway-api.sigs.k8s.io
Apache License 2.0
1.67k stars 437 forks source link

gwctl performance improvements #3145

Closed gauravkghildiyal closed 2 weeks ago

gauravkghildiyal commented 2 weeks ago

What type of PR is this? /kind feature

What this PR does / why we need it: Summary of changes (details available in commit logs):

  1. Prioritize fetching resources in bulk rather than individually to reduce API call overhead. (Some simple performance tests with large number of resources indicated this provides the better overall UX)

  2. Fetch events associated with resources on-demand when printing, enhancing responsiveness and minimizing unnecessary API calls (since events are not required in GET output)

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

NONE

/assign @mlavacca

k8s-ci-robot commented 2 weeks ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gauravkghildiyal, mlavacca

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[gwctl/OWNERS](https://github.com/kubernetes-sigs/gateway-api/blob/main/gwctl/OWNERS)~~ [gauravkghildiyal] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment