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

Make topology implement the API client interface #32

Open
guicassolato opened this issue Sep 10, 2024 · 0 comments
Open

Make topology implement the API client interface #32

guicassolato opened this issue Sep 10, 2024 · 0 comments
Labels
area/machinery enhancement New feature or request

Comments

@guicassolato
Copy link
Contributor

For convenience when navigating a topology to find or list resources, the Topology struct, as well as the collection type, could implement a more widely known Client interface for reading resources otherwise from the API server.

controller-runtime's Reader can be a good candidate for this. client-go's ResourceInterface and NamespaceableResourceInterface can be alternatives although these are less specific.

This capability would be especially useful to adapting existing logic to work with the Policy Machinery.

Suggested by @philbrookes

@guicassolato guicassolato added enhancement New feature or request area/machinery labels Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/machinery enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant