-
Story
-
Resolution: Done
-
Normal
-
None
-
None
-
None
-
Strategic Product Work
-
3
-
False
-
None
-
False
-
OCPSTRAT-1347 - [GA release] Next-gen OLM (OLM v1)
-
-
-
Arbok OLM Sprint 261
Typically, any non-deployment resource managed by cluster-olm-operator would be handled by a StaticResourceController (usage ref). Unfortunately, the StaticResourceController only knows how to handle specific types, as seen by the usage of the ApplyDirectly function in the StaticResourceController.Sync method. Due to the ApplyDirectly function only handling a set of known resources, the ClusterCatalog resource would likely not be handled the same as other static manifests currently managed by cluster-olm-operator.
In order to enable cluster-olm-operator to properly manage ClusterCatalog resources, it is proposed that we implement a custom factory.Controller that knows how to appropriately apply and manage ClusterCatalog resources such that:
- Changes to any fields specified in the default ClusterCatalog resources are reverted to the default values
- Changes to fields not specified in the default ClusterCatalog resources are left untouched
The openshift/library-go project has a lot of packages that will likely make this implementation pretty straightforward. The custom controller implementation will likely also require implementation of some pre-condition logic that ensures the ClusterCatalog API is available on the cluster before attempting to use it.
- blocks
-
OPRUN-3572 [Downstream] Add default ClusterCatalog resources to the catalogd OpenShift kustomize overlays
- Closed
- links to