Skip to content

Commit

Permalink
Fix controller problematic log output
Browse files Browse the repository at this point in the history
Signed-off-by: Ming <mqiu@vmware.com>
  • Loading branch information
qiuming-best committed Nov 9, 2022
1 parent bd646b1 commit 09c85de
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/util/kube/periodical_enqueue_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package kube

import (
"context"
"fmt"
"reflect"
"time"

Expand Down Expand Up @@ -96,3 +97,10 @@ func (p *PeriodicalEnqueueSource) Start(ctx context.Context, h handler.EventHand

return nil
}

func (p *PeriodicalEnqueueSource) String() string {
if p.objList != nil {
return fmt.Sprintf("kind source: %T", p.objList)
}
return "kind source: unknown type"
}

0 comments on commit 09c85de

Please sign in to comment.