Skip to content

Commit

Permalink
Update pkg/upgrade/upgrade.go
Browse files Browse the repository at this point in the history
Co-authored-by: Wen Zhou <[email protected]>
  • Loading branch information
VaishnaviHire and zdtsw authored Apr 17, 2024
1 parent 03a1b01 commit 386b2f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/upgrade/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,8 @@ func deleteDeprecatedNamespace(ctx context.Context, cli client.Client, namespace
return fmt.Errorf("error getting pods from namespace %s: %w", namespace, err)
}
if len(podList.Items) != 0 {
return nil
fmt.Printf("Skip deletion of namespace %s due to running Pods in it\n", namespace)
return nil
}

// Delete namespace if no pods found
Expand Down

0 comments on commit 386b2f1

Please sign in to comment.