openshift / openshift/oadp-operator
Add Makefile target to upgrade OLMv0 install to OLMv1 install
@kaovilai is already working on this.
Since May 5, 2026.
- Dominant language
- Go
- Stars
- 92
- Forks
- 93
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 43
Description
Overview
Add a make target (e.g., make upgrade-v0-to-olmv1) that automates upgrading an existing OADP operator installation managed by OLMv0 (Subscription/OperatorGroup) to be managed by OLMv1 (ClusterExtension).
Background
PR #2160 introduces OLMv1 lifecycle Makefile targets (test-olmv1, test-olmv1-cleanup) for fresh OLMv1 installs. However, there is no automation for the migration/upgrade scenario where an operator is already installed via OLMv0 and needs to be transitioned to OLMv1 management.
Goals
- Add a parameterized Makefile target (e.g.,
make upgrade-v0-to-olmv1) that:- Detects/removes the existing OLMv0
SubscriptionandOperatorGroupfor OADP. - Creates the necessary
ServiceAccountand RBAC (ClusterRoleBinding) for the OLMv1 installer. - Creates a
ClusterExtensionpointing to the desired package/channel/version. - Waits for the
ClusterExtensionto reachInstalled=True.
- Detects/removes the existing OLMv0
- Reuse existing
OLMV1_*Makefile variables (package, namespace, channel, version, catalog, catalog-image, service-account) introduced in PR #2160 for consistency. - Handle
inline.watchNamespace(OLMv1) vs.watchNamespaceenv var /OperatorGroupscope (OLMv0) differences.
References
- PR #2160: https://github.com/openshift/oadp-operator/pull/2160
- Related issue #2193 (test coverage for OLMv0→OLMv1 migration): https://github.com/openshift/oadp-operator/issues/2193
- OLMv0 install mode in CSV: https://github.com/openshift/oadp-operator/blob/7e53a850ffc68b183e6fd7dd3cc134170b8b7f76/config/manifests/bases/oadp-operator.clusterserviceversion.yaml#L467-L475
- OLMv0 watchNamespace config: https://github.com/openshift/oadp-operator/blob/7e53a850ffc68b183e6fd7dd3cc134170b8b7f76/config/manager/manager.yaml#L63-L66
Requested by @kaovilai on PR #2160 comment: https://github.com/openshift/oadp-operator/pull/2160
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.