Skip to content

Commit

Permalink
Added continue for dry run
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin Khramtsov committed Sep 25, 2023
1 parent 9c0d4a7 commit 3b991f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/deleteobjects/deleteobjects.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func DeleteOldHelmReleases(
log.Printf("Helm release %s is older than 24 hours and will be deleted\n", secret.Labels["name"])
if IsDryRun {
log.Printf("The variable IsDryRun is set to %t, skipping deletion of %s\n", IsDryRun, secret.Labels["name"])
continue
}
DeleteObjectsWithCommonName(ctx, clientset, namespace, secret.Labels["name"], IsDryRun)
}
Expand Down

0 comments on commit 3b991f7

Please sign in to comment.