You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When targeting OCP clusters with the default namespace (openshift-operators), the operator ManifestWork only contains the Subscription since the namespace and OperatorGroup already exist.
When the ManifestWork is deleted, the work agent deletes the Subscription but OLM does not delete the CSV.
The CSV stays with the operator deployment still running.
If a new mesh is created for the same cluster, the new Subscription fails to resolve: constraints not satisfiable: @existing/<ns>//<csv> and <catalog>/<channel>/<csv> provide <API>
When using a custom operator namespace, the MW includes the Namespace resource and its deletion cascades to everything inside it.
We need to either explicitly delete the CSV during operator cleanup, or change the OCP default to a dedicated namespace so the MW owns the full lifecycle.
Options:
Change the default operator namespace to a dedicated one (e.g. multicluster-mesh-operator) for all platforms. This simplifies the CRD (one default instead of platform-specific defaults) and the controller code (no special-casing for openshift-operators). Tradeoff: on OCP, operators in openshift-operators appear in the console's "Installed Operators" view by default, a custom namespace might require an extra click.
Delete the CSV as a separate cleanup step before deleting the operator ManifestWork.
When targeting OCP clusters with the default namespace (
openshift-operators), the operator ManifestWork only contains the Subscription since the namespace and OperatorGroup already exist.When the ManifestWork is deleted, the work agent deletes the Subscription but OLM does not delete the CSV.
The CSV stays with the operator deployment still running.
If a new mesh is created for the same cluster, the new Subscription fails to resolve:
constraints not satisfiable: @existing/<ns>//<csv> and <catalog>/<channel>/<csv> provide <API>When using a custom operator namespace, the MW includes the Namespace resource and its deletion cascades to everything inside it.
We need to either explicitly delete the CSV during operator cleanup, or change the OCP default to a dedicated namespace so the MW owns the full lifecycle.
Options:
multicluster-mesh-operator) for all platforms. This simplifies the CRD (one default instead of platform-specific defaults) and the controller code (no special-casing foropenshift-operators). Tradeoff: on OCP, operators inopenshift-operatorsappear in the console's "Installed Operators" view by default, a custom namespace might require an extra click.Related: #115 (simplify operator config)
Ref: https://olm.operatorframework.io/docs/tasks/uninstall-operator/