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
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 Subscription and OperatorGroup for OADP.
Creates the necessary ServiceAccount and RBAC (ClusterRoleBinding) for the OLMv1 installer.
Creates a ClusterExtension pointing to the desired package/channel/version.
Waits for the ClusterExtension to reach Installed=True.
Overview
Add a
maketarget (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
make upgrade-v0-to-olmv1) that:SubscriptionandOperatorGroupfor OADP.ServiceAccountand RBAC (ClusterRoleBinding) for the OLMv1 installer.ClusterExtensionpointing to the desired package/channel/version.ClusterExtensionto reachInstalled=True.OLMV1_*Makefile variables (package, namespace, channel, version, catalog, catalog-image, service-account) introduced in PR feat: OLMv1 lifecycle — fresh install tests + OLMv0→OLMv1 migration target #2160 for consistency.inline.watchNamespace(OLMv1) vs.watchNamespaceenv var /OperatorGroupscope (OLMv0) differences.References
oadp-operator/config/manifests/bases/oadp-operator.clusterserviceversion.yaml
Lines 467 to 475 in 7e53a85
oadp-operator/config/manager/manager.yaml
Lines 63 to 66 in 7e53a85
Requested by
@kaovilaion PR #2160 comment: #2160