diff --git a/pkg/upgrade/uninstallation.go b/pkg/upgrade/uninstallation.go index e409e4966e8..663da84475b 100644 --- a/pkg/upgrade/uninstallation.go +++ b/pkg/upgrade/uninstallation.go @@ -79,11 +79,11 @@ func OperatorUninstall(ctx context.Context, cli client.Client) error { subsName := "opendatahub-operator" if platform == cluster.SelfManagedRhods { subsName = "rhods-operator" - } else if platform == cluster.ManagedRhods { - subsName = "addon-managed-odh" } - if err := DeleteExistingSubscription(cli, operatorNs, subsName); err != nil { - return err + if platform != cluster.ManagedRhods { + if err := DeleteExistingSubscription(cli, operatorNs, subsName); err != nil { + return err + } } fmt.Printf("Removing the operator CSV in turn remove operator deployment\n")