What would you like to be added:
There are several places where controllers need to know which services are installed on an MCP. Getting this information is a two-step process:
- Fetch all
ServiceProvider resources from the platform cluster and gather their exposed resource GVKs.
- For each GVK found this way, check if it exists with the same name and namespace as the given MCP on the onboarding cluster.
Since this is required in multiple places, it would make sense to add functions for both steps to the openmcp-operator lib module.
An example implementation of gathering the GVKs can be found here (note that the code there includes fetching the corresponding CRDs).
What would you like to be added:
There are several places where controllers need to know which services are installed on an MCP. Getting this information is a two-step process:
ServiceProviderresources from the platform cluster and gather their exposed resource GVKs.Since this is required in multiple places, it would make sense to add functions for both steps to the openmcp-operator
libmodule.An example implementation of gathering the GVKs can be found here (note that the code there includes fetching the corresponding CRDs).
ServiceProviderresources in theirstatus.resourcesfield