Skip to content

Commit

Permalink
Fix dry-run deletePods
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-zinnatullin authored and lwolf committed Jun 4, 2020
1 parent 2a160c4 commit 9366e14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ func (c *Kleaner) deleteJobs(job *batchv1.Job) {
func (c *Kleaner) deletePods(pod *corev1.Pod) {
if c.dryRun {
log.Printf("dry-run: Pod '%s:%s' would have been deleted", pod.Namespace, pod.Name)
return
}
log.Printf("Deleting pod '%s:%s'", pod.Namespace, pod.Name)
var po metav1.DeleteOptions
Expand Down

0 comments on commit 9366e14

Please sign in to comment.