Skip to content

Commit 4573144

Browse files
authored
feat(cli): add --delete-namespace flag
1 parent c426446 commit 4573144

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/uninstall/uninstall.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ func (obj *uninstaller) UninstallBlocking(ctx context.Context, pkg ctrlpkg.Packa
4343
if err != nil {
4444
return err
4545
}
46-
} else {
47-
cliutils.ExitWithError()
46+
} else if !validateDeletion {
47+
return fmt.Errorf("Namespace deletion cannot be validated")
4848
}
4949
err = obj.delete(ctx, pkg, isDryRun)
5050
if err != nil {

0 commit comments

Comments
 (0)