Skip to content
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

Optimize list operations for space scoped resrouces #3673

Merged
merged 3 commits into from
Dec 20, 2024

Conversation

georgethebeatle
Copy link
Member

Is there a related GitHub Issue?

#3636

What is this change about?

  • Introduce space-guid label webhook for space-scoped objects
  • Optimize list operations for space scoped resources
  • Simplify webhooks suites

Does this PR introduce a breaking change?

No

danail-branekov and others added 3 commits December 20, 2024 14:26
The webhook
* Defaults the space-guid label
* Ensures that the label value is immutable

Co-authored-by: Georgi Sabev <[email protected]>
Co-authored-by: Danail Branekov <[email protected]>
- Separate the client factory into two separate ones: UserClientFactory
  and UserClientsetFactory. The latter is barely used
- Introdue space filtering client wrapper
- Make it possible to add wreppers to the user client returned by the
  UserClientFactory. We have retrying client and space filetering client
  wrappers as of today
- Use the new space filtering wrapper in all repositores that operate on
  spece scoped resources
- This results in optimization of resource listing as well as reduction
  in code duplication
- The wrapped client automatically filters the listed resources to the
  ones from the allowed namespaces

Co-authored-by: Danail Branekov <[email protected]>
Co-authored-by: Georgi Sabev <[email protected]>
- Generate manifests only for the webhooks we are about to test
- Do not wire in unrelated webhooks in the test suite

Co-authored-by: Georgi Sabev <[email protected]>
@georgethebeatle georgethebeatle force-pushed the issues/3636-improve-listing branch from b06cdec to 77cb45e Compare December 20, 2024 14:42
@danail-branekov danail-branekov merged commit 8a98e19 into main Dec 20, 2024
10 checks passed
@danail-branekov danail-branekov deleted the issues/3636-improve-listing branch December 20, 2024 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants