Skip to content

Commit

Permalink
Revert "update: check return of create dsci if failed because of exis…
Browse files Browse the repository at this point in the history
…ting (#1…" (#1122)

This reverts commit d2f656a.
  • Loading branch information
zdtsw authored Jul 16, 2024
1 parent d2f656a commit 2110c05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/upgrade/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func CreateDefaultDSCI(ctx context.Context, cli client.Client, _ cluster.Platfor
case len(instances.Items) == 0:
fmt.Println("create default DSCI CR.")
err := cluster.CreateWithRetry(ctx, cli, defaultDsci, 1) // 1 min timeout
if err != nil && !k8serr.IsAlreadyExists(err) {
if err != nil {
return err
}
}
Expand Down

0 comments on commit 2110c05

Please sign in to comment.