Skip to content

Commit

Permalink
fix(managed): do not delete subscription on Managed offering (opendat…
Browse files Browse the repository at this point in the history
…ahub-io#993)

Signed-off-by: Wen Zhou <[email protected]>
  • Loading branch information
zdtsw authored May 7, 2024
1 parent 6f90d70 commit 89a98fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/upgrade/uninstallation.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 89a98fa

Please sign in to comment.