File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package processors
3
3
import (
4
4
"context"
5
5
"errors"
6
+ "fmt"
6
7
"net/url"
7
8
"path/filepath"
8
9
"time"
@@ -116,6 +117,14 @@ func (p *stepProcessor) Run(ctx context.Context, namespacer namespacer.Namespace
116
117
cleaner := cleaner .New (p .timeouts .Cleanup .Duration , p .delayBeforeCleanup , p .deletionPropagationPolicy )
117
118
t .Cleanup (func () {
118
119
if ! cleaner .Empty () || len (p .step .Cleanup ) != 0 {
120
+ report := & model.StepReport {
121
+ Name : fmt .Sprintf ("clenaup (%s)" , report .Name ),
122
+ StartTime : time .Now (),
123
+ }
124
+ defer func () {
125
+ report .EndTime = time .Now ()
126
+ p .report .Add (report )
127
+ }()
119
128
logger .Log (logging .Cleanup , logging .BeginStatus , color .BoldFgCyan )
120
129
defer func () {
121
130
logger .Log (logging .Cleanup , logging .EndStatus , color .BoldFgCyan )
You can’t perform that action at this time.
0 commit comments