Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ var (
type Controller interface {
// Run runs the controller and blocks until the context is `Done`.
Run(ctx context.Context) error
// GetIndexer returns the indexer for the controller to allow access of the underlying object store.
GetIndexer() cache.Indexer
}

// Config is the controller configuration.
Expand Down Expand Up @@ -316,3 +318,7 @@ func (g *generic) processNextJob() bool {

return false
}

func (g *generic) GetIndexer() cache.Indexer {
return g.informer.GetIndexer()
}