openshift / openshift/oadp-operator

Add Makefile target to upgrade OLMv0 install to OLMv1 install

Open
#2,194 2 comments 0 reactions 1 assignee View on GitHub

@kaovilai is already working on this.

Since May 5, 2026.

lifecycle/rotten
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:
    1. Detects/removes the existing OLMv0 Subscription and OperatorGroup for OADP.
    2. Creates the necessary ServiceAccount and RBAC (ClusterRoleBinding) for the OLMv1 installer.
    3. Creates a ClusterExtension pointing to the desired package/channel/version.
    4. Waits for the ClusterExtension to reach Installed=True.
  • 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. watchNamespace env var / OperatorGroup scope (OLMv0) differences.

References

Requested by @kaovilai on PR #2160 comment: https://github.com/openshift/oadp-operator/pull/2160

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.